Sign Up

Sign Up to our social questions and Answers Engine to ask questions, answer people’s questions, and connect with other people.

Have an account? Sign In

Have an account? Sign In Now

Sign In

Login to our social questions & Answers Engine to ask questions answer people’s questions & connect with other people.

Sign Up Here

Forgot Password?

Don't have account, Sign Up Here

Forgot Password

Lost your password? Please enter your email address. You will receive a link and will create a new password via email.

Have an account? Sign In Now

You must login to ask a question.

Forgot Password?

Need An Account, Sign Up Here

Please briefly explain why you feel this question should be reported.

Please briefly explain why you feel this answer should be reported.

Please briefly explain why you feel this user should be reported.

Sign InSign Up

The Archive Base

The Archive Base Logo The Archive Base Logo

The Archive Base Navigation

  • Home
  • SEARCH
  • About Us
  • Blog
  • Contact Us
Search
Ask A Question

Mobile menu

Close
Ask a Question
  • Home
  • Add group
  • Groups page
  • Feed
  • User Profile
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Buy Points
  • Users
  • Help
  • Buy Theme
  • SEARCH
Home/ Questions/Q 4565670
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: May 21, 20262026-05-21T18:40:36+00:00 2026-05-21T18:40:36+00:00

I have a custom font that won’t seem to load on Android. Specifically I

  • 0

I have a custom font that won’t seem to load on Android.
Specifically I load it in the normal manner from an Activity, and then set it on a TextView:

AssetManager assetManager = getAssets();
Typeface tf = Typeface.createFromAsset(assetManager, "euro.ttf");      
textView.setTypeface(tf);

What I get doesn’t match the custom font at all, and there don’t seem to be any errors (I’ve looked through logcat and didn’t notice anything).

I’ve read an old article that says Android has issues with some fonts and silently fails over to Droid Sans.

Note that Android does not seem to
like all TrueType fonts. I spent a lot
of time trying to figure out what I
was doing wrong with this sample,
before switching to a different font,
and everything “just worked”. When
Android dislikes a custom font, rather
than raise an Exception, it seems to
substitute Droid Sans (“sans”)
quietly. So, if you try to use a
different font and it does not seem to
be working, it may be that the font in
question is incompatible with Android,
for whatever reason.

So my question is, does anybody know how I can troubleshoot this further. Or what the “whatever reason” may be? I’ve tried different names for the font file, and even different copies of it. The font file seems to work fine on my desktop (I can open it with OS X and see the characters, they look correct). Also, using a different ttf file for another font does seem to work (so it doesn’t seem to be setup/code related, rather it must be something with the file itself).

  • 1 1 Answer
  • 0 Views
  • 0 Followers
  • 0
Share
  • Facebook
  • Report

Leave an answer
Cancel reply

You must login to add an answer.

Forgot Password?

Need An Account, Sign Up Here

1 Answer

  • Voted
  • Oldest
  • Recent
  • Random
  1. Editorial Team
    Editorial Team
    2026-05-21T18:40:37+00:00Added an answer on May 21, 2026 at 6:40 pm

    Sorry, I haven’t run into anything more on this since I wrote that post nearly (gasp!) three years ago.

    If you have access to a font editor, you might consider opening the font file and re-saving it, to see if that clears up whatever issues may be in there.

    Or, if there’s some utility floating around that basically does a “glyph diff” — reporting which glyphs are in font A and not font B — you might see if there’s something interesting missing in the font you’re trying. From what I’ve seen, a missing glyph normally just results in a garbage character (e.g., empty square), but maybe there’s something special Android depends upon that your desired font does not have.

    Push come to proverbial shove, if you have access to a font editor, you could try copying glyphs from the failing font file to a new font file and see if you wind up with something that works.

    :: insert obligatory watch-for-font-licensing-issues blurb here ::

    I seem to recall it took me a few tries to find a free font that worked, back in ’08.

    • 0
    • Reply
    • Share
      Share
      • Share on Facebook
      • Share on Twitter
      • Share on LinkedIn
      • Share on WhatsApp
      • Report

Sidebar

Related Questions

I have a few models that need to have custom find conditions placed on
I have a custom control that implements IPostBackEventHandler. Some client-side events invoke __doPostBack(controlID, eventArgs).
I have a custom installer action that updates the PATH environment, and creates an
We have a custom-built Flash-based video player that I maintain, and it needs to
I have an app that contains a custom view, and in it I want
I have a custom Table View Cell that displays the details of a Conference
I have a custom ClockFace UserControl which has properties to allow colors, font and
I have implemented a custom UITableViewCell which includes a UITextView that auto-resizes as the
I have custom coded several enterprise applications for mid to large organizations to use
I have custom errors configured in my web.config, but IIS 6.0 is returning the

Explore

  • Home
  • Add group
  • Groups page
  • Communities
  • Questions
    • New Questions
    • Trending Questions
    • Must read Questions
    • Hot Questions
  • Polls
  • Tags
  • Badges
  • Users
  • Help
  • SEARCH

Footer

© 2021 The Archive Base. All Rights Reserved
With Love by The Archive Base

Insert/edit link

Enter the destination URL

Or link to existing content

    No search term specified. Showing recent items. Search or use up and down arrow keys to select an item.