You are viewing a plain text version of this content. The canonical link for it is here.
Posted to issues@flex.apache.org by "Alex Harui (JIRA)" <ji...@apache.org> on 2015/11/25 00:23:11 UTC

[jira] [Commented] (FLEX-34909) Embedded fonts not working on charts

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

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

 The current fix in http://git-wip-us.apache.org/repos/asf/flex-sdk/commit/63685908 looks like it makes mx:Label the default label for axis labels and eliminates the attempt to use Spark Label.  This might cause issues for folks such as:

- I don't know if using Charts already required mx.swc, but if not, folks using Charts may no longer be able to have Spark-only configurations in their project
- Folks with Spark projects wanting to use embedded fonts in the axis labels must now embed the font twice for both embedAsCFF options
- There might be subtle glyph positioning changes as TextField and TextLine choose slightly different pixels when rendering text.

It could be that using Spark Label with embedded fonts in Charts never worked, so unclear on customer impact.  I still think the right fix is to handle Spark Label correctly, but we'll see what feedback we get.

> 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)