Пользовательский шрифт не работает на Android
Я делаю ниже. Все, что я получаю, это основной шрифт, а не мой собственный шрифт символа.
Есть идеи?
Paint pnt = new Paint();
// SymbolNo is 38. Returns string "&" which is correct in normal font.
String symbolText = Character.toString((char)SymbolNo);
// Should adopt a symbol font and draw symbol to screen instead. But I just see "&"
Typeface tf = Typeface.createFromAsset(m_context.getAssets(), "fonts/myFont.TTF" );
pnt.setTypeface(tf);
m_canvas.drawText(symbolText,x, y, pnt);
мой шрифт вassets/fonts/myFont.TTF