Skip to main content
Participant
October 1, 2011
Question

Air htmlloader font Antialiasing (on windows)

  • October 1, 2011
  • 3 replies
  • 1758 views

Hi,

  we are developing an air application using html+js which use embedded font (using css @11220649-face). On the Mac the fonts looks great with antialiasing enabled. On all windows (we tested both xp and vista) the fonts instead look very crappy, is there any way to enable antialiasing in webkit also on windows ?

David

This topic has been closed for replies.

3 replies

Participant
November 4, 2012

Facing the exact same problem, rendering of @font-face fonts in Air on Windows gives very different results from what you would expect. Did you find a solution to this?

lisachao
Adobe Employee
Adobe Employee
October 3, 2011
davide_f1Author
Participant
October 3, 2011

Thank for your answer, in Flex/AS it works just fine.

The issue is related to font loaded with @font-face inside an htmlloader/main air content. We have just  an index.htm file (added in the application descriptor file) and a css:

index.htm:

<html><head>

<link rel="stylesheet" href="style.css" type="text/css" media="screen" title="style" charset="utf-8"/>

</head>

<body><h1>Test</h1></body>

</html>

style.css:

@font-face {

    font-family: CustomFont;

    src: url('mycustomfont.otf');

}

h1 {

    font-size: 11px;

    font-family: "CustomFont";

}

David