EDIT:
It looks like a bug in AIR.
I've reported it here: https://bugbase.adobe.com/index.cfm?event=bug&id=2955444
please vote on it ↑
Problem:
I've tried to display white text on a colored background in FlashPlayer & AIR runtime. Unfortunately, the text displayed in the AIR runtime looks much worse, than FlashPlayer one.
Here is how does it look (AIR version at top, FlashPlayer at bottom):
IMG: http://imageshack.us/photo/my-images/710/fontcomparison.png/
So, the question is,
- why there is such a difference?
- how to resolve this issue, so the text in AIR looks exactly like FlashPlayer one (without font embedding)?
code: main.mxml:
<?xml version="1.0" encoding="utf-8"?>
<s:Application xmlns:fx="http://ns.adobe.com/mxml/2009"
xmlns:s="library://ns.adobe.com/flex/spark"
xmlns:mx="library://ns.adobe.com/flex/mx" minWidth="955" minHeight="600">
<fx:Style source="style.css" />
<s:Label text="() sample text ()" styleName="test" />
</s:Application>
style.css:
/* style.css CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
.test {
font-family: Arial;
font-size: 10;
font-weight: bold;
color: white;
background-color: #BC2C49;
paddingBottom:10px;
paddingLeft:10px;
paddingRight:10px;
paddingTop:10px;
}