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

Alex Harui commented on FLEX-33876:
-----------------------------------

This is the content of my ApplicationStyles.css.  AFAICT, the embedding is 
working in Alert.  Please provide more details as to how you can tell it isn't. 
 There should be any reason to set fontWeight in the Alert's CSS.  The bold 
font works for Spark text so the Alert's title bar should show up in bold with 
the embedded font.


/* CSS file */
@namespace s "library://ns.adobe.com/flex/spark";
@namespace mx "library://ns.adobe.com/flex/mx";
@namespace sparkComponents "spark.components.*"; 

s|WindowedApplication
{
        backgroundColor : rgb(243,247,250);
}

s|TabBar
{
        chromeColor : rgb(192,224,249);
        cornerRadius : 5;    
}

s|Form
{
        fontFamily : defaultFont;
}

s|TextInput
{
    fontFamily : defaultFont;
}

s|BorderContainer
{
        borderWeight : 1;
        cornerRadius : 4;
        borderStyle : inset;
        borderColor : rgb(192,224,249);
}

@font-face
{
        src: url("SofiaProLight.otf");
        fontFamily: defaultFont;
        embedAsCFF : true;
}


@font-face
{
        src: url("SofiaProBold.otf");
        fontFamily: defaultFont;
    fontWeight: bold;
        embedAsCFF : true;
}

@font-face
{
        src: url("SofiaProLight.otf");
        fontFamily: defaultMXFont;
        embedAsCFF : false;
}

/*
@font-face
{
        src: url("SofiaProBold.otf");
        fontFamily: defaultMXFont;
    fontWeight: bold;
        embedAsCFF : false;
}
*/

s|Label
{
        fontFamily : defaultFont;
}

sparkComponents|Alert
{
        fontFamily: defaultFont;
}
        
mx|DataTip
{
    fontFamily: defaultMXFont;
}

.fontWithCFF
{
        fontFamily : defaultFont;
}

.fontWithoutCFF
{
        fontFamily : defaultMXFont;
}



> 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: ApplicationStyles.css, FontStyleTest.fxp, Mostardesign - 
> Sofia Pro Bold.otf, 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