• After 15+ years, we've made a big change: Android Forums is now Early Bird Club. Learn more here.

Custom fonts for Android

I have developed a web app that uses a custom font in a select element. It displays correctly on all browsers that I have tried (IE, Firefox, Desktop Chrome), but on Android phones, instead of displaying the special characters that I have designed, it displays the square block "unknown character" symbol. How do I get it to display the custom characters on Android?

What type of font file does Android use?

How does the correct font file get from the server to the browser? Does the browser request the correct file type (e.g. TTF, SVG, WOFF, EOT), or does the server work out which file to send depending on the User Agent header? If the latter, what are the rules it uses? Or does it happen somehow else?

Thanks - Rowan
 

BEST TECH IN 2023

We've been tracking upcoming products and ranking the best tech since 2007. Thanks for trusting our opinion: we get rewarded through affiliate links that earn us a commission and we invite you to learn more about us.

Smartphones