Here is a simple app that shows this problem.  I'd be glad to send you
my TTF file if you need it in order to reproduce the problem.

<?xml version="1.0" encoding="utf-8"?>
<mx:Application xmlns:mx="http://www.adobe.com/2006/mxml";
layout="absolute" creationComplete="init()">
        <mx:Style>
        @font-face 
        {
            src: url("../assets/Barbedor-Regular.ttf");
            fontFamily: "Barbedor";
        }
        .myFont{fontFamily:"Barbedor";}
    </mx:Style>
        <mx:Script>
                <![CDATA[
                        private function init():void
                        {
                                txt.htmlText="<FONT FACE='Barbedor' 
SIZE='72'>Éloïse</FONT>";
                        }                       
                ]]>
        </mx:Script>
        <mx:TextArea styleName="myFont" id="txt" top="25" left="0"
width="500" height="500" editable="false" selectable="false"
verticalScrollPolicy="off" horizontalScrollPolicy="off"/>
</mx:Application>






--- In [email protected], "Alex Harui" <[EMAIL PROTECTED]> wrote:
>
> Can you create a simple test case?
> 
>  
> 
> ________________________________
> 
> From: [email protected] [mailto:[EMAIL PROTECTED]
On Behalf Of toofah_gm
> Sent: Thursday, November 01, 2007 8:49 AM
> To: [email protected]
> Subject: [flexcoders] Problems with European characters in embedded
fonts
> 
>  
> 
> I am embedding TTF fonts into my application. We have included most
> of the European character sets in these fonts.
> 
> Now the problem. The fonts show up correctly in MS Office and other
> windows applications. But when some of the European characters are
> typed into my Flex application, the "top" portion of some of the
> European characters is shifted to the right. I wish I could show a
> picture of this. This includes things like Diaeresis, Acute,
> Circumflex, etc. 
> 
> An example word is: Éloïse
> In this word, the marks above the "É" and the "ï" are shifted to the
> right so that the markings end up almost above the "l" and the "s"
> characters.
> 
> This only seems to be a problem with the Flex app. The problem is not
> seen with the same TTF files in all other apps.
> 
> Does anybody know what might be happening here? Am I missing some
> simple option when embedding the fonts into my app? My embed
> statements look like this:
> [Embed(source="assets/Opus-BoldItalic.ttf", fontName="Opus",
> fontWeight="bold", fontStyle="italic")]
> 
> Could there be a problem with the TTF files themselves? Is there a
> setting that might be causing this?
> 
> Thanks for your help!
>


Reply via email to