Unable to find Embedded CFF Font

classic Classic list List threaded Threaded
4 messages Options
Reply | Threaded
Open this post in threaded view
|

Unable to find Embedded CFF Font

Alex P
Migrating from Adobe Flex 4.6 to Apache Flex 4.16 I have lost the ability for
find Embedded CFF fonts. In my mxml file I have load the same font twice,
once as CFF
<fx:Style>
                @namespace s "library://ns.adobe.com/flex/spark";
                @namespace mx "library://ns.adobe.com/flex/mx";
                @font-face {
                        src: url("C:\Users\...\src\fonts\Maretron.ttf");
                        fontFamily: "Maretron";
                        fontStyle: normal;
                        fontWeight: bold;
                        advancedAntiAliasing: false;
                        embedAsCFF:false;
                }
               
                @font-face {
                        src: url("C:\Users\...\src\fonts\Maretron.ttf");
                        fontFamily: "Maretron Embedded";
                        fontStyle: normal;
                        fontWeight: bold;
                        advancedAntiAliasing: false;
                        embedAsCFF:true;
                }
    </fx:Style>

In my code I go looking for the fonts using Font.enumerateFonts(false), and
get
   Font name:'Maretron', style: 'bold', type: 'embedded'
   Font name:'Maretron Embedded', style: 'bold', type: 'embedded'

Previously the font type of the second was 'embeddedCFF'.
Is there something I need to include to recognize CFF fonts?





--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Unable to find Embedded CFF Font

Alex Harui-2
Embedded Font support is optional in Apache Flex because the code that
supports it is Adobe proprietary and not open source.  The installer.xml
Ant scripts and/or the Apache Flex Installer should give you the option of
downloading the Adobe font libraries.

You can see if the embedded font libraries are in your Apache Flex SDK by
looking for these four files:
lib/external/optional/afe.jar
lib/external/optional/aglj40.jar
lib/external/optional/flex-fontkit.jar
lib/external/optional/rideau.jar


If you want to install them manually, you can find the same four files in
the lib folder of an Adobe Flex 4.6 SDK.  Just make sure you copy them to
lib/external/optional in the Apache Flex SDK.

HTH,
-Alex

On 4/12/18, 4:15 PM, "Alex P" <[hidden email]> wrote:

>Migrating from Adobe Flex 4.6 to Apache Flex 4.16 I have lost the ability
>for
>find Embedded CFF fonts. In my mxml file I have load the same font twice,
>once as CFF
><fx:Style>
> @namespace s "library://ns.adobe.com/flex/spark";
> @namespace mx "library://ns.adobe.com/flex/mx";
> @font-face {
> src: url("C:\Users\...\src\fonts\Maretron.ttf");
> fontFamily: "Maretron";
> fontStyle: normal;
> fontWeight: bold;
> advancedAntiAliasing: false;
> embedAsCFF:false;
> }
>
> @font-face {
> src: url("C:\Users\...\src\fonts\Maretron.ttf");
> fontFamily: "Maretron Embedded";
> fontStyle: normal;
> fontWeight: bold;
> advancedAntiAliasing: false;
> embedAsCFF:true;
> }
>    </fx:Style>
>
>In my code I go looking for the fonts using Font.enumerateFonts(false),
>and
>get
>   Font name:'Maretron', style: 'bold', type: 'embedded'
>   Font name:'Maretron Embedded', style: 'bold', type: 'embedded'
>
>Previously the font type of the second was 'embeddedCFF'.
>Is there something I need to include to recognize CFF fonts?
>
>
>
>
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7C5c79d
>8fe0b81496f3def08d5a0cf668e%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>36591735009727268&sdata=eEBwfi%2FYo%2F6Nf7LanrXNcQFCh8MsR4ZPcEa3hSN4muo%3D
>&reserved=0

Reply | Threaded
Open this post in threaded view
|

Re: Unable to find Embedded CFF Font

Alex P
Unfortunately I wasn't able to get the installer to work, so I'm doing
everything by hand.
Should the leave the original files (all but flex-fontkit were there) in the
lib directory?



--
Sent from: http://apache-flex-users.2333346.n4.nabble.com/
Reply | Threaded
Open this post in threaded view
|

Re: Unable to find Embedded CFF Font

Alex Harui-2
If you are going to use Adobe Flex 4.6 some day (which you might do just
to see if something changed in Apache Flex), you should leave those files
in that lib folder and copy them to your Apache Flex.

I looked in my Adobe Flex 4.6 sdk and flex-fontkit is there.

HTH,
-Alex

On 4/13/18, 10:47 AM, "Alex P" <[hidden email]> wrote:

>Unfortunately I wasn't able to get the installer to work, so I'm doing
>everything by hand.
>Should the leave the original files (all but flex-fontkit were there) in
>the
>lib directory?
>
>
>
>--
>Sent from:
>https://na01.safelinks.protection.outlook.com/?url=http%3A%2F%2Fapache-fle
>x-users.2333346.n4.nabble.com%2F&data=02%7C01%7Caharui%40adobe.com%7Ce984b
>8cfbdf3445e26e608d5a166a024%7Cfa7b1b5a7b34438794aed2c178decee1%7C0%7C0%7C6
>36592384502145272&sdata=khNQ6fH4yovqm9TqJwGMmnW%2B5dFDH1xpTAkBTDueLPk%3D&r
>eserved=0