Serialize unquoted font-family without quote

This commit is contained in:
Nazım Can Altınova 2017-03-28 01:10:27 +03:00
parent 54e2b7b2d5
commit 9991c496b3
No known key found for this signature in database
GPG key ID: AF9BCD7CE6449954
8 changed files with 53 additions and 24 deletions

View file

@ -282,7 +282,10 @@ macro_rules! font_face_descriptors {
font_face_descriptors! {
mandatory descriptors = [
/// The name of this font face
"font-family" family: FamilyName = FamilyName(atom!("")),
"font-family" family: FamilyName = FamilyName {
name: atom!(""),
quoted: true,
},
/// The alternative sources for this font face.
"src" sources: Vec<Source> = Vec::new(),
@ -308,7 +311,10 @@ font_face_descriptors! {
font_face_descriptors! {
mandatory descriptors = [
/// The name of this font face
"font-family" family: FamilyName = FamilyName(atom!("")),
"font-family" family: FamilyName = FamilyName {
name: atom!(""),
quoted: true,
},
/// The alternative sources for this font face.
"src" sources: Vec<Source> = Vec::new(),