1. Are you ready for the Galaxy S20? Here is everything we know so far!

Custom fonts for Android

Discussion in 'Android Lounge' started by rowan_bradley, Mar 14, 2019.

  1. rowan_bradley

    rowan_bradley Lurker
    Thread Starter

    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
     


  2. Android uses the droid sans font file
     
Loading...

Share This Page

Loading...