Benutzerdefinierte Schrift funktioniert nicht auf Android
Ich mache das unten. Ich erhalte nur die Grundschrift, nicht meine benutzerdefinierte Symbolschrift.
Irgendwelche Ideen?
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);
Meine Schrift ist inassets/fonts/myFont.TTF