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

jing zhe shan commented on FLEX-31:
-----------------------------------

Code snippet:

<?xml version="1.0" encoding="utf-8"?>
<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">
        
        <fx:Style>
                /* CSS file */
                @namespace s "library://ns.adobe.com/flex/spark";
                @namespace mx "library://ns.adobe.com/flex/mx";
                
                @font-face 
                {
                        embedAsCFF: true;
                        src:url(assets/SEGOEUI.TTF);
                        font-family: "SegoeUI";
                        font-weight: normal;
                }
                
                @font-face 
                {
                        embedAsCFF: true;
                        src:url(assets/SEGUISB.TTF);
                        font-family: "SegoeUI";
                        font-weight: bold; 
                }
                
        </fx:Style>
        
        <s:VGroup width="500" height="400" fontSize="15" paddingLeft="2" 
paddingTop="2">
                <s:Label fontFamily="SegoeUI" text="Normal"/>
                <s:Label fontFamily="SegoeUI" fontWeight="bold" text="Bold"/>
        </s:VGroup>
        
</s:Application>

----------------------------------------------------------------------------------------------------------------------------------------------------

warning: incompatible embedded font 'SegoeUI' specified for 
spark.components::Label (Label7) . This component requires that the embedded 
font be declared with embedAsCFF=true.
warning: incompatible embedded font 'SegoeUI' specified for 
spark.components::Label (Label6) . This component requires that the embedded 
font be declared with embedAsCFF=true.
                
> Flex SDK 4.5.1A font compile issue
> ----------------------------------
>
>                 Key: FLEX-31
>                 URL: https://issues.apache.org/jira/browse/FLEX-31
>             Project: Apache Flex
>          Issue Type: Bug
>            Reporter: jing zhe shan
>            Assignee: Bertrand Delacretaz
>
> In style sheet, declared embedAsCff = true,  however when running the 
> application still give me the warning 
> "warning: incompatible embedded font 'SegoeUI' specified for 
> spark.components::Label (Label7) . This component requires that the embedded 
> font be declared with embedAsCFF=true."
> @font-face 
> {
>       embedAsCFF: true;
>       src:url(assets/SEGOEUI.TTF);
>       font-family: "SegoeUI";
>       font-weight: normal;
> }
> Tried with SDK 4.5.1 and SDK 4.6 both are working fine.

--
This message is automatically generated by JIRA.
If you think it was sent incorrectly, please contact your JIRA administrators: 
https://issues.apache.org/jira/secure/ContactAdministrators!default.jspa
For more information on JIRA, see: http://www.atlassian.com/software/jira

        

Reply via email to