You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Thanks for the great crate, I used this to load system fonts for my crate Plotters. Recently we've added a feature that supports generic font families like serif, serif-sans and monospace.
On Linux, query a generic font family will return expected result. But On MacOS, it seems font-loader doesn't have a way to load generic font family and querying "serif" will directly return FontNotFound.
I believe CTFontStylisticClass should be one way to query the generic font class.
Also there's a behavior difference on MacOS and Linux when font is not found. On Linux it returns the default font, on MacOS it returns an error.
Could you please give some guidance on this stuff ?
Thanks!
Update, just tried windows it seems it constantly return arial font if the requested font is not exists. Including requesting the general font families
The text was updated successfully, but these errors were encountered:
I can't really comment on the MacOS implementation, i don't own a mac device / don't have access. If you time to spare, feel free to do so :)
IIRC some servo engineers provided the original implementation. They since wrote their own implementation, called font-kit. You should check if it suits your needs!
Hi,
Thanks for the great crate, I used this to load system fonts for my crate Plotters. Recently we've added a feature that supports generic font families like serif, serif-sans and monospace.
On Linux, query a generic font family will return expected result. But On MacOS, it seems font-loader doesn't have a way to load generic font family and querying
"serif"
will directly returnFontNotFound
.I believe
CTFontStylisticClass
should be one way to query the generic font class.Also there's a behavior difference on MacOS and Linux when font is not found. On Linux it returns the default font, on MacOS it returns an error.
Could you please give some guidance on this stuff ?
Thanks!
Update, just tried windows it seems it constantly return arial font if the requested font is not exists. Including requesting the general font families
The text was updated successfully, but these errors were encountered: