Vinícius Felipe
unread,Jun 14, 2022, 1:07:40 PM6/14/22Sign in to reply to author
Sign in to forward
You do not have permission to delete messages in this group
Sign in to report message
Either email addresses are anonymous for this group or you need the view member email addresses permission to view the original message
to skia-discuss
Skia's text rendering, especially SkParagraph that I use, doesn't use the system's default font family. This is acceptable on most platforms as we can get the system default font family using the platform apis before calling Skia's apis, but not on Android.
On Android there is no official api to get the system default font family. I think that the correct way to build SkParagraph would be informing the font-family null or "sans-serif" or even SkTypeface::MakeDefault()->getFamilyName(&defaultFamily), to result in a text with the system default font, and not Roboto, as always happens.
Is there any configuration to make Skia's default font match with system's default font?