Adobe AIR 2.x  -  Bug 2955444

Created on Tuesday, August 30, 2011

Login for more options

Title

[Platform_Windows]Device font looks different in Flash player & AIR

Description

Problem Description:
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.

Steps to Reproduce:
Compile & run following code in Flash Player and Air.

main.xml file (on AIR, use s:WindowedApplication instead of s:Application)
<?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 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;
}

Actual Result:
The label displays much worse on AIR. You can see on the attached image (AIR version at top, Flash version at bottom).

Expected Result:
Label on AIR should display exactly the same as in Flash Player.

Any Workarounds:
Unfortunately no :-( Maybe embed fonts would do, but I don't want to embed.

Test Configuration

AIR: 2.7.1.19610
FlashPlayer: 10,3,181,34

App Language(s) English
OS Language(s) English
Platform(s) Windows 7
Browser(s) Unspecified

Notes (6)

  • Ef Zet

    2:30:29 AM GMT+00:00 Sep 5, 2011

    I've made a simple workaround (see LabelWorkaround.as), based on fact, that font is drawn properly on bitmap.

  • Ef Zet

    6:53:53 AM GMT+00:00 Sep 2, 2011

    HINT:
    The font in AIR environment looks exactly the same like the same one in FlashPlayer, but with cacheAsBitmap = true.

  • Yuzhong Cao

    2:09:27 AM GMT+00:00 Sep 2, 2011

    We reproduced the issue using the latest Flash Player. We appreciate that anyone affected by this issue could leave vote notes about how it impacts you.

  • Ef Zet

    8:03:20 AM GMT+00:00 Aug 31, 2011

    Hi, I've added fontTest.zip with two projects (the code is nearly the same as provided above).

  • Yuzhong Cao

    1:19:08 AM GMT+00:00 Aug 31, 2011

    Hi Ef Zet,
    Thank you for your report to Adobe. Could you please provide detailed info such as the sample code that can be compiled successful to us if possible? We will be happy to follow up when we received additional information from you. Apologize for any inconvenience we caused.
    Thanks,
    Yuzhong Cao

  • Ef Zet

    9:45:21 AM GMT+00:00 Aug 30, 2011

    I really need this to work, without that, my app is unreadable on AIR.

Duplicate ID
Reported By Ef Zet

Status

State Open
Status ToTrack
Reason

Importance

Priority 3-High
Frequency All users will encounter
Failure Type Incorrectly Functioning
Product Area AIR Runtime

Build

Found In Build 2.7.1
Fixed In Build

Votes (1)

  • Pienkowski

    8:10:33 AM GMT+00:00 Aug 31, 2011

    Can't sell my AIR app, because it looks ugly!

Your session has expired! Click to login
Current form data will be preserved

Cancel