[ 
https://issues.apache.org/jira/browse/FLEX-34909?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14738176#comment-14738176
 ] 

Alex Harui commented on FLEX-34909:
-----------------------------------

I looked into the Japanese character issue.  The copy of Tahoma on my Mac 
doesn't have Japanese characters in it.  You can test by adding a 
creationComplete handler to the app:

<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" creationComplete="glyphtest()">

Then run a test like:

            private function glyphtest():void
            {
                var fonts:Array = Font.enumerateFonts();
                var myFont:Font = fonts[0];
                trace(myFont.hasGlyphs("愛甲郡愛川町"));
                trace(myFont.hasGlyphs("ABCDE"));
            }

For me, the first hasGlyphs returns false and the second return true.

Fonts with Asian characters are really big.  You'll see the SWF size jump 
significantly when you embed one.  IIRC, when you don't embed, the runtime and 
the OS approximate the characters from other fonts on the system.

> Embedded fonts not working on charts
> ------------------------------------
>
>                 Key: FLEX-34909
>                 URL: https://issues.apache.org/jira/browse/FLEX-34909
>             Project: Apache Flex
>          Issue Type: Bug
>          Components: Charts
>    Affects Versions: Apache Flex 4.14.0
>         Environment: Windows 7, 64 bit. 
>            Reporter: Deepak MS
>            Assignee: OmPrakash Muppirala
>         Attachments: SampleChart.mxml, SampleChart.zip
>
>
> I'm try to use my own font for the charts. But if I do so, all labels for X 
> and Y axes shows up as blank.
> This is what I am trying:
> @font-face
> {
>     src: url("assets/fonts/CALIBRIL.TTF");
>     fontFamily: myFont;
>     fontStyle: normal;
>     fontWeight: normal;
>     embedAsCFF: true;
>     advancedAntiAliasing: true;
> }
> <mx:ColumnChart id="column" fontFamily='myFont' 
> click="column_clickHandler(event)"
>                         height="100%" showDataTips="true"
>                         width="50%"
>                         seriesFilters="{[]}"
>                         >  
> But if I use system fonts like  Arial, Times etc, they all seem to work fine.
> Version: Flex 4.14 AIR 16, FP 16      
> More Details and work around can be found here:
> http://apache-flex-users.2333346.n4.nabble.com/Embedded-font-for-Charts-td10793.html



--
This message was sent by Atlassian JIRA
(v6.3.4#6332)

Reply via email to