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" <alex.polm...@maretron.com> 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 via email to