Introduce a FamilyName type, like FontFamily but not a generic family.

This commit is contained in:
Simon Sapin 2017-02-02 18:30:36 +01:00
parent 44f6c60d91
commit 52aa2431a9
3 changed files with 35 additions and 15 deletions

View file

@ -944,7 +944,7 @@ fn static_assert() {
for family in &v.0 {
match *family {
FontFamily::FamilyName(ref name) => {
unsafe { Gecko_FontFamilyList_AppendNamed(list, name.as_ptr()); }
unsafe { Gecko_FontFamilyList_AppendNamed(list, name.0.as_ptr()); }
}
FontFamily::Generic(ref name) => {
let family_type =