Search code examples
cssutf-8fontswebfonts

Can webfonts be non-utf compatible?


I'm not sure what else to blame... But I've tried everything, including reconverting original tff to web fonts using squirrel converter.

The font in question is this: http://www.fonts2u.com/bolnisi.font The description it says: Unicode BMP only whatever this means :)

On the demo, I see that text in html had been entered in latin characters. When I use Georgian utf letters: ქართული. This font never applies!

Example: http://mac.idev.ge:800/breakmedia/ Look at the header, only numbers are transformed into this font. Rest is normal serif.

CSS:

@font-face {
    font-family: 'bolnisiregular';
    src: url('font/bolnisi-webfont.eot');
    src: url('font/bolnisi-webfont.eot?#iefix') format('embedded-opentype'),
         url('font/bolnisi-webfont.woff') format('woff'),
         url('font/bolnisi-webfont.ttf') format('truetype'),
         url('font/bolnisi-webfont.svg#bolnisiregular') format('svg');
    font-weight: normal;
    font-style: normal;
}

html *
{
   font-family: 'bolnisiregular' !important;
}

What is happening here? any ideas?


Solution

  • That's a typical "hack" font. As you can see on the font page you link to, the glyphs are not at the character code they're supposed to belong to. The glyph at the code point for "i" is "ი". That's not the correct glyph for "i". The glyph for "i" is supposed look like "i". The glyph "ი" belongs at code point U+10D8, the code point for the Georgian letter "IN".

    Such font hacks are/were used before the code points for that language became officially ratified in the Unicode standard, and/or for software in that language which does not (yet) support Unicode. I.e., sometime in the dark ages there existed no official encoding for the Georgian language, yet people in Georgia wanted to see Georgian glyphs on their screens. So arbitrary ASCII code points were overloaded with Georgian glyphs. Strictly speaking, that font is broken.