1

How to add TrueType font to Android skia library for font rendering?

view story
linux-howto

http://serverfault.com – I am not developer but I just want to get Khmer Unicode display correctly on Android ICS. I did some research how to modified Skia library for font rendering but I got stuck on modifying "external/skia/src/ports/SkFontHost_android.cpp file. the font suppose to be added like this static const FontInitRec gSystemFonts[] = { { "DroidSans.ttf", gSansNames }, { "DroidSans-Bold.ttf", NULL }, { "DroidSerif-Regular.ttf", gSerifNames }, { "DroidSerif-Bold.ttf", NULL }, { "DroidSerif-Italic.ttf", NULL }, { "DroidSerif-BoldItalic.ttf", NULL (HowTos)