Maybe create a Bitmap font? I use a program called bmGlyph to make bitmap fonts for Android.
On Tuesday, August 14, 2012 7:18:46 AM UTC-5, Simon Giddings wrote: > > Thanks Mark, > > I had created a very simple project to try this out. > So, it would appear that I will have to look at a different method for > drawing symbols. > > Thanks again > > On Tuesday, 14 August 2012 12:09:18 UTC+2, Mark Murphy (a Commons Guy) > wrote: >> >> On Tue, Aug 14, 2012 at 5:46 AM, Simon Giddings <[email protected]> >> wrote: >> > I have seen that it is possible to use custom fonts within our Android >> apps. >> > I am starting to build an app for tablets and need to use a specific >> symbol >> > font. >> > >> > I place it in a "font" directory under "assets" and load it via the >> > Typeface.createFromAsset method. >> > I get back a Typeface object and assign it to my Paint object and then >> paint >> > it out onto the canvas. >> > >> > However, instead of getting the symbols, I get normal text. >> > >> > Is there a special step necessary to get symbol fonts to output >> correctly ? >> >> Android does not honor all custom fonts, substituting the default font >> silently. >> >> I'd start with a font that is known to work, such as the one in this >> sample project: >> >> https://github.com/commonsguy/cw-omnibus/tree/master/Fonts/FontSampler >> >> If that fails, then there is something wrong with the application >> logic (or that font has started failing on devices, where it has >> worked for years). If that font succeeds and your symbol font fails... >> you will need to find another symbol font, or perhaps try slightly >> modifying that symbol font in some font editor in hopes that the >> newly-saved font will work with Android. >> >> -- >> Mark Murphy (a Commons Guy) >> http://commonsware.com | http://github.com/commonsguy >> http://commonsware.com/blog | http://twitter.com/commonsguy >> >> _The Busy Coder's Guide to Android Development_ Version 4.0 Available! >> > -- You received this message because you are subscribed to the Google Groups "Android Developers" group. To post to this group, send email to [email protected] To unsubscribe from this group, send email to [email protected] For more options, visit this group at http://groups.google.com/group/android-developers?hl=en

