Reputation: 2026
Is there any standard monospaced serif font on Android? I can find a monospaced sans-serif, but no luck with a serif.
If there is one, what is it?
Upvotes: 2
Views: 4933
Reputation: 4275
You can always choose to use your own font. Just place the font file in the assets folder, and use the following code
Typeface requestedTypeface = Typeface.createFromAsset(context.getAssets(), fontFileName);
For HTML5 app
You can use Google Web Font API to render across browsers. Droid Serif font is available in Google Web Fonts API.
Upvotes: 3
Reputation: 16228
Answer is no, I believe Droid Sans Mono is the only monospaced font available in the platform. See:
android-sdk-linux/platforms/android-17/data/fonts/system_fonts.xml
And
android-sdk-linux/platforms/android-17/data/fonts/fonts.mk
You can, of course, roll your own.
Upvotes: 4