You are viewing a plain text version of this content. The canonical link for it is here.
Posted to users@flex.apache.org by mikimik <mi...@tradency.com> on 2013/09/16 08:54:01 UTC

Can't embed font in flex 4.10 using external stylesheet

hi,
I moved from flex 4.5 using EmbedAsCFF= true for an embed font.
the css is being loaded on runtime.
before upgrading (Ive had the same issue on 4.9.1) - the embed font is
shown.
after upgrade- not.
on the installer i have checked the Adobe font library support.
Miki



--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Can-t-embed-font-in-flex-4-10-using-external-stylesheet-tp2718.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Can't embed font in flex 4.10 using external stylesheet

Posted by Alex Harui <ah...@adobe.com>.
Please file a bug with a simple test case and attach the SWFs.  We can see
if the font made it into the SWF or not.

-Alex

On 9/16/13 12:21 AM, "mikimik" <mi...@tradency.com> wrote:

>Hi,
>Its compiled to SWF. Loaded by StyleManager (loadStyleDeclarations).
>Sample of CSS:
>global
>{
>       fontFamily: VerdanaCff;
>       fontSize: 12;
>       focusAlpha:0;
>}
>
>@font-face
>{
>       src: url("/VERDANA.TTF");
>       fontFamily: "VerdanaCff";
>       embedAsCFF: true;
>}
>@font-face
>{
>       src: url("/verdanab.ttf");
>       fontWeight: bold;
>       fontFamily: "VerdanaCff";
>       embedAsCFF: true;
>}
>
>@font-face
>{
>       src: url("/VERDANA.TTF");
>       fontFamily: "VerdanaNoCff";
>       embedAsCFF: false;
>}
>@font-face
>{
>       src: url("/verdanab.ttf");
>       fontWeight: bold;
>       fontFamily: "VerdanaNoCff";
>       embedAsCFF: false;
>}
>@font-face
>{
>       src: url("/verdanai.ttf");
>       fontFamily: "VerdanaCff";
>       fontStyle: italic;
>       embedAsCFF: true;
>}
>
>@font-face
>{
>       src: url("/verdanai.ttf");
>       fontFamily: "VerdanaNoCff";
>       fontStyle: italic;
>       embedAsCFF: false;
>}
>
>s|Label
>{
>       fontFamily: "VerdanaCff";
>}
>From: jmclean [via Apache Flex Users]
>[mailto:ml-node+s2333346n2719h25@n4.nabble.com]
>Sent: Monday, September 16, 2013 9:11 AM
>To: Miki Lior
>Subject: Re: Can't embed font in flex 4.10 using external stylesheet
>
>Hi,
>
>> I moved from flex 4.5 using EmbedAsCFF= true for an embed font.
>> the css is being loaded on runtime.
>How is the CSS being loaded at run time? I assume it's been compiled into
>a swf? Can you share thw code showing how that swf is loaded?
>
>Thanks,
>Justin
>
>
>________________________________
>If you reply to this email, your message will be added to the discussion
>below:
>http://apache-flex-users.2333346.n4.nabble.com/Can-t-embed-font-in-flex-4-
>10-using-external-stylesheet-tp2718p2719.html
>To unsubscribe from Can't embed font in flex 4.10 using external
>stylesheet, click 
>here<http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.j
>tp?macro=unsubscribe_by_code&node=2718&code=bWlraS5saW9yQHRyYWRlbmN5LmNvbX
>wyNzE4fDE3OTQ5OTY4Mjk=>.
>NAML<http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.j
>tp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.na
>ml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabb
>le.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble
>%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21na
>bble%3Aemail.naml>
>
>
>Email secured by Check Point
>
>
>
>
>--
>View this message in context:
>http://apache-flex-users.2333346.n4.nabble.com/Can-t-embed-font-in-flex-4-
>10-using-external-stylesheet-tp2718p2720.html
>Sent from the Apache Flex Users mailing list archive at Nabble.com.


RE: Can't embed font in flex 4.10 using external stylesheet

Posted by mikimik <mi...@tradency.com>.
Hi,
Its compiled to SWF. Loaded by StyleManager (loadStyleDeclarations).
Sample of CSS:
global
{
       fontFamily: VerdanaCff;
       fontSize: 12;
       focusAlpha:0;
}

@font-face
{
       src: url("/VERDANA.TTF");
       fontFamily: "VerdanaCff";
       embedAsCFF: true;
}
@font-face
{
       src: url("/verdanab.ttf");
       fontWeight: bold;
       fontFamily: "VerdanaCff";
       embedAsCFF: true;
}

@font-face
{
       src: url("/VERDANA.TTF");
       fontFamily: "VerdanaNoCff";
       embedAsCFF: false;
}
@font-face
{
       src: url("/verdanab.ttf");
       fontWeight: bold;
       fontFamily: "VerdanaNoCff";
       embedAsCFF: false;
}
@font-face
{
       src: url("/verdanai.ttf");
       fontFamily: "VerdanaCff";
       fontStyle: italic;
       embedAsCFF: true;
}

@font-face
{
       src: url("/verdanai.ttf");
       fontFamily: "VerdanaNoCff";
       fontStyle: italic;
       embedAsCFF: false;
}

s|Label
{
       fontFamily: "VerdanaCff";
}
From: jmclean [via Apache Flex Users] [mailto:ml-node+s2333346n2719h25@n4.nabble.com]
Sent: Monday, September 16, 2013 9:11 AM
To: Miki Lior
Subject: Re: Can't embed font in flex 4.10 using external stylesheet

Hi,

> I moved from flex 4.5 using EmbedAsCFF= true for an embed font.
> the css is being loaded on runtime.
How is the CSS being loaded at run time? I assume it's been compiled into a swf? Can you share thw code showing how that swf is loaded?

Thanks,
Justin


________________________________
If you reply to this email, your message will be added to the discussion below:
http://apache-flex-users.2333346.n4.nabble.com/Can-t-embed-font-in-flex-4-10-using-external-stylesheet-tp2718p2719.html
To unsubscribe from Can't embed font in flex 4.10 using external stylesheet, click here<http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=unsubscribe_by_code&node=2718&code=bWlraS5saW9yQHRyYWRlbmN5LmNvbXwyNzE4fDE3OTQ5OTY4Mjk=>.
NAML<http://apache-flex-users.2333346.n4.nabble.com/template/NamlServlet.jtp?macro=macro_viewer&id=instant_html%21nabble%3Aemail.naml&base=nabble.naml.namespaces.BasicNamespace-nabble.view.web.template.NabbleNamespace-nabble.view.web.template.NodeNamespace&breadcrumbs=notify_subscribers%21nabble%3Aemail.naml-instant_emails%21nabble%3Aemail.naml-send_instant_email%21nabble%3Aemail.naml>


Email secured by Check Point




--
View this message in context: http://apache-flex-users.2333346.n4.nabble.com/Can-t-embed-font-in-flex-4-10-using-external-stylesheet-tp2718p2720.html
Sent from the Apache Flex Users mailing list archive at Nabble.com.

Re: Can't embed font in flex 4.10 using external stylesheet

Posted by Justin Mclean <ju...@classsoftware.com>.
Hi,

> I moved from flex 4.5 using EmbedAsCFF= true for an embed font.
> the css is being loaded on runtime.
How is the CSS being loaded at run time? I assume it's been compiled into a swf? Can you share thw code showing how that swf is loaded?

Thanks,
Justin