JohnGB
JohnGB

Reputation: 2026

Monospaced serif font on Android

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

Answers (2)

Abhishek Nandi
Abhishek Nandi

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

davidcesarino
davidcesarino

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

Related Questions