0

I am trying to load a font that works fine everywhere but not on blackberry OS 7

@font-face {font-family: 'CCDoohickeyOpen';src: url('webfonts/244FAC_0_0.eot');
src:     url('webfonts/244FAC_0_0.eot?#iefix') 
format('embedded-opentype'),url('webfonts/244FAC_0_0.woff') f
ormat('woff'),url('webfonts/244FAC_0_0.ttf')
format('truetype'),url('webfonts/244fac_0_0-webfont.svg#CCDoohickeyOpen') 
format('svg');}

the page is at http://lisp.li what am I doing wrong? Ironically other web fonts from other sites seems to work fine on bb 7. thanks in advance David

Pavlo
  • 43,301
  • 14
  • 77
  • 113
devnull
  • 2,752
  • 1
  • 21
  • 38

1 Answers1

2

BB supports only SVG Files

The Blackberry browser on BB OS5, 6 and 7 only supports SVG font files (you can use fontsquirrel to convert from other formats).

@font-face {
    font-family: 'CCDoohickeyOpen';
    src: url('webfonts/244fac_0_0-webfont.svg#CCDoohickeyOpen') format('svg');
    font-weight: normal;
    font-style: normal;
}
Community
  • 1
  • 1
Praveen Kumar Purushothaman
  • 164,888
  • 24
  • 203
  • 252
  • The code in the question has an SVG version of the font, too. And it seems to be OK as such; I tested with code that refers to that SVG version only, and it works on Chrome. – Jukka K. Korpela Oct 08 '12 at 11:30
  • 1
    the problem was that font squirrel does not rename the svg so, to other people, be sure to check the svg first line that has to match the font family name :) this is solved and works now thanks!! – devnull Oct 08 '12 at 15:36
  • To further clarify this, the `id` of the `font` element in the SVG file (can be named whatever) needs to match the `font-family` attribute in the `@font-face`, as well as referenced in the `src` attribute as above (i.e. appended with `#CCDoohickeyOpen`). – euxneks Jun 28 '13 at 22:33