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

  • SEARCH
  • Home
  • 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 8487669
In Process

The Archive Base Latest Questions

Editorial Team
  • 0
Editorial Team
Asked: June 10, 20262026-06-10T21:18:49+00:00 2026-06-10T21:18:49+00:00

I am using an embedded ttf font using @font-face in my webpage. The problem

  • 0

I am using an embedded ttf font using @font-face in my webpage.

The problem is that whenever I use it to display items or options in a select tag, everything except the currently selected item is shown as gibberish in Android browser. When I try it in a desktop browser like Chrome, it is displayed properly.

Screenshots :

Properly displayed in desktop Chrome :

Properly displayed in desktop Chrome http://img339.imageshack.us/img339/8676/pro1n.jpg

Inactive select displayed properly in Android browser :

inactive select android browser http://img59.imageshack.us/img59/4025/pro2d.jpg

Gibberish displayed when I click on the select in Android browser :

inactive select android browser http://img833.imageshack.us/img833/1461/pro3d.png

I am using the following CSS for embedding the font :

@font-face{
font-family: "MyFont";
src: url('../fonts/MyFont.ttf')  format('truetype');
}

and the following CSS rule for applying the font to the select tag :

select{
font-family: MyFont !important;
font-size: 16px;
}

select option{
font-family: MyFont !important;
font-size: 16px;
}

I have used the same font throughout the webpage and it is working properly everywhere except the select tag.
How can I solve this problem ?

  • 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-06-10T21:18:50+00:00Added an answer on June 10, 2026 at 9:18 pm

    You can’t. The browser is trying to do the right thing I guess, but the native control doesn’t use an other font other than the default system one.

    Perhaps this is fixed in newer versions of Android, or in other browsers on Android (e.g. Chrome).

    You’ll need to make your own select tag copy in JS that uses HTML to make the control up.

    Something like http://harvesthq.github.com/chosen/ will do what you need, though it’s a shame, as the native controls are usually better in many ways (other than this problem!)

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

Sidebar

Related Questions

My problem is that custom fonts do not display when using @font-face . My
I have a project that's been using font-face without problem for some time. Today
Im using an embedded webview to display a webpage which is made up of
I'm using custom fonts on my webpage using the following code: @font-face { font-family:
I am using an embedded typeface using the following code: @font-face {font-family: 'PFDinTextPro-Regular';src: url('../webfonts/15B214_0.eot');src:
I’m using @font-face for embedded fonts (thanks Paul Irish ). In trying to fix
I've encountered a problem using @font-face while building a website. The font's installed on
I'm developing on an embedded device using OpenWRT. Whenever I try to use fswebcam
I am using FontSquirrel font generator to try to generate the embedded font files
I'm having trouble using the following @font-face declaration to work with my Rails 3.1

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.