Greetings of the day.
Generally, the system fonts files (
Typefaces ) are available like
""""
./system/fonts/CarroisGothicSC-Regular.ttf
./system/fonts/ComingSoon.ttf
./system/fonts/CutiveMono.ttf
./system/fonts/DancingScript-Bold.ttf
./system/fonts/DancingScript-Regular.ttf
./system/fonts/DroidSans-Bold.ttf
./system/fonts/DroidSans.ttf
./system/fonts/DroidSansMono.ttf
./system/fonts/NotoColorEmoji.ttf
./system/fonts/NotoColorEmojiFlags.ttf
./system/fonts/NotoNaskhArabic-Bold.ttf
""""
I have not seen anywhere in skia code searches for path " /system/fonts" to get system fonts.
even Android provides fonts
""''
/data/data/com.google.android.gms/files/fonts/opentype/Google_Sans-400-100_0-0_0.ttf
./data/data/com.google.android.gms/files/fonts/opentype/Google_Sans-500-100_0-0_0.ttf
./data/data/com.google.android.gms/files/fonts/opentype/Google_Sans_Display-400-100_0-0_0.ttf
./data/data/com.google.android.gms/files/fonts/opentype/Google_Sans_Text-400-100_0-0_0.ttf
./data/data/com.google.android.gms/files/fonts/opentype/Google_Sans_Text-500-100_0-0_0.ttf
./data/data/com.google.android.gms/files/fonts/opentype/Google_Sans_Text-700-100_0-0_0.ttf
./data/data/com.google.android.gms/files/fonts/opentype/Google_Sans-700-100_0-0_0.ttf
./data/user/0/com.google.android.gms/files/fonts/opentype/Google_Sans-400-100_0-0_0.ttf
./data/user/0/com.google.android.gms/files/fonts/opentype/Google_Sans-500-100_0-0_0.ttf
./data/user/0/com.google.android.gms/files/fonts/opentype/Google_Sans_Display-400-100_0-0_0.ttf
./data/user/0/com.google.android.gms/files/fonts/opentype/Google_Sans_Text-400-100_0-0_0.ttf
./data/user/0/com.google.android.gms/files/fonts/opentype/Google_Sans_Text-500-100_0-0_0.ttf
./data/user/0/com.google.android.gms/files/fonts/opentype/Google_Sans_Text-700-100_0-0_0.ttf
./data/user/0/com.google.android.gms/files/fonts/opentype/Google_Sans-700-100_0-0_0.ttf
"""""""
""
const char fp[] = "/system_ext/etc/mmi/fonts.ttf";
sk_sp<SkTypeface> tf = typeface->MakeFromFile(fp);
"font.setTypeface(tf);
""
Thanks and Regards
Javaid