Quantcast
Channel: Adobe Community : Popular Discussions - Archived Discussions
Viewing all articles
Browse latest Browse all 21156

Custom fonts with AIR 2.0

$
0
0

Hi all,

 

Dunno whether this is a Webkit specific change, or if this is related to AIR 2.0, but my application is not rendering custom fonts with the 2.0.3 version of the runtime. Previously, the 1.5.3 version of AIR was able to use the following CSS declaration:

 

@font-face {

src:url("../fonts/UniversBold.otf");

font-family:Univers;

advancedAntiAliasing: true;

}

 

h1 {

font-family:Univers;

}

 

I had a fonts directory that I included in the application which included the .otf file. With AIR 2.0.3, the h1 style is not getting the correct font-family rule and as a result, my h1s in the application are using the default font.

 

I tried using the CSS rules I outlined above in a regular HTML page on Google Chrome and Safari and both rendered the font without any issues which leads me to believe that this is an AIR specific bug.

 

Any ideas on what I could do to remedy this change when migrating to AIR 2.0.3 from 1.5.3?


Sean


Viewing all articles
Browse latest Browse all 21156

Trending Articles



<script src="https://jsc.adskeeper.com/r/s/rssing.com.1596347.js" async> </script>