views:

269

answers:

2

Hello, everyone!

Here's another issue with HTML-based Adobe Air application I am developing at the moment. The question is whether I can embed custom font into my application. If it is possible, then, how do I do this?

I have my custom font file in app:/fonts directory, Firefox displays text correctly using this font when I'm viewing the page in it. But when I start AIR application everything is broken - I see only default font.

I've been searching all over the Internet, but found only some outdated links on how to embed font in CSS, though it works only for IE.

Thanks in advance, Mike.

A: 

have you tried cufon or font-face?

antpaw
Could you tell me what is cufon?
Mikhail
And `@font-face` doesn't work for me. Here's some code from my CSS (it's located in /css/main.css):`@font-face{font-family: "Markerfelt";src: url("../fonts/markerfeltthinplain.ttf");}`
Mikhail
http://wiki.github.com/sorccu/cufon/
antpaw
A: 

Embedding fonts in this way is not currently supported. Any fonts used must be installed on the user's computer.

vahid
Anyway, cufon helped me much with this trouble. The only curious detail with cufon is that you have to make an element visible before you apply cufon to it
Mikhail