Default font doesn't match with OS

78 views
Skip to first unread message

Vinícius Felipe

unread,
Jun 14, 2022, 1:07:40 PM6/14/22
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?
Reply all
Reply to author
Forward
0 new messages