[ 
https://issues.apache.org/jira/browse/FLEX-33876?page=com.atlassian.jira.plugin.system.issuetabpanels:all-tabpanel
 ]

Dylan Randall updated FLEX-33876:
---------------------------------

    Attachment: FontStyleTest.fxp

I have attached a sample project to test with. 

In the sample project the PieChart had more of the font style applied than my 
original post however many of the other components still have the problem.

The font style couldnt be applied to the column chart because if i try to use a 
font where embedAsCFF = false then i get the following:: warning: incompatible 
embedded font 'defaultMXFont' specified for spark.components::Label (Label100) 
. This component requires that the embedded font be declared with 
embedAsCFF=true.

If i change the font to embedAsCFF=true I get these:: warning: incompatible 
embedded font 'defaultFont' specified for mx.charts.series::ColumnSeries 
(ColumnSeries39) . This component requires that the embedded font be declared 
with embedAsCFF=false.
warning: incompatible embedded font 'defaultFont' specified for 
mx.core::UITextField (UITextField74) . This component requires that the 
embedded font be declared with embedAsCFF=false.
warning: incompatible embedded font 'defaultFont' specified for 
mx.charts::AxisRenderer (AxisRenderer71) . This component requires that the 
embedded font be declared with embedAsCFF=false.

However if I put the following in the CSS file 
s|Label
{
        fontFamily:defaultFont;
}

The column chart has the font applied to it but not on the callouts. Seems like 
some spark components are being used in MX components.

I hope this is enough information for you.

Thanks in advance.

Dylan

> Font Styles not taking effect on mx:PieCharts, mx:ColumnCharts, mx:Legends, 
> s:Form and s:Alert
> ----------------------------------------------------------------------------------------------
>
>                 Key: FLEX-33876
>                 URL: https://issues.apache.org/jira/browse/FLEX-33876
>             Project: Apache Flex
>          Issue Type: Bug
>    Affects Versions: Apache Flex 4.9.0, Apache Flex 4.10.0, Apache Flex 4.11.0
>         Environment: Windows 7 Professional SP1 64Bit running on MacBook Pro 
> (mid 2010) OSX 10.9 Bootcamp.
> Apache Flex SDK 4.11 running on FlashBuilder 4.7 Standard.
>            Reporter: Dylan Randall
>            Priority: Critical
>         Attachments: FontStyleTest.fxp, SofiaProLight.otf
>
>
> When I try to apply a css style that lives in the main application onto a sub 
> application loaded into the main application via a SWFLoader some styles are 
> not set. Instances like s:Label have the style applied however mx:PieChart, 
> mx:ColumnChart and mx:Legend the style is not applied. I am only trying to 
> apply a font to the text of these components. Things like the callouts and 
> the text on the legends do not get the style applied to them. The same goes 
> for s:Form the font style isn't applied to the component. The same font style 
> is also not being applied to the title string of the s:Alert component but 
> the body or message string the font is being applied correctly.



--
This message was sent by Atlassian JIRA
(v6.1#6144)

Reply via email to