Skip to main content
Participant
November 5, 2009
Question

Arabric Font embed, and TLF use problem.

  • November 5, 2009
  • 1 reply
  • 1683 views

Hi all,

I meet a problem with embed the Arabric Font.

   [Embed(source="fonts/axtyoumn.TTF",fontFamily="AxtYoumna",embedAsCFF="true" ,unicodeRange="U+0000-U+1000")]
   public const AxtYoumna:Class;
   [Embed(source="fonts/AXTSIL__.TTF", fontFamily="AxtSImplifed",embedAsCFF="true",unicodeRange="U+0000-U+1000")]
   public const AxtSImplifed:Class;  
   public function fonts()
    {
     Font.registerFont(AxtYoumna);
     Font.registerFont(AxtSImplifed);        
    }
   }


It succeed published into a .swf file. I load this file use

Font.enumerateFonts(false);

It shows the font I have embed, it seems embed succeed:

FontsName::: AxtYoumna ||||| FontsType::: embeddedCFF
FontsName::: AxtSImplifed ||||| FontsType::: embeddedCFF

Then I use AxtYoumna, AxtSImplifed for my textfield

   charFormat.fontFamily = ffont;
   charFormat.fontSize = fsize;
   charFormat.kerning = Kerning.ON;
   charFormat.fontWeight = fbold ? "bold" : "normal";
   //charFormat.fontWeight = "bold";
   charFormat.fontLookup = flash.text.engine.FontLookup.EMBEDDED_CFF;
   charFormat.renderingMode = flash.text.engine.RenderingMode.CFF;
   charFormat.cffHinting = flash.text.engine.CFFHinting.NONE;

The Text still not render correctly. 

My builder is FLex 3, flash player 10, and Flex SDK 4.0.0.10485

But if I use the font Arial/Arabic Transparent/Traditional Arabric, it works.

I use AXtYOumna/AXtadvertising/AXtSImplified Light /AXtGihaneLightItalic /AXtYouSra/AXTTraditionalLight , it not works.

I can use these font in Photoshop CS4 middleeast version to show arabic succeefully.

Please help me.!

This topic has been closed for replies.

1 reply

Participating Frequently
November 5, 2009

I suppose that "The Text still not render correctly.  " means in particular that you don't the proper shaping (positional forms).

If that's the case, I think it is explained by the fact that AXtYOumna does not have the necessary OpenType layout tables. TLF/FTE need those table to select the proper positional shapes. Those tables are present in Arial/Arabic Transparent/Traditional Arabric.

Eric.

Participant
November 5, 2009

Thanks Eric, it is very useful.

But If I need to use these fonts. But the TLF not support these fonts.

How can I display the arabic article correctly(follow the RTL manner)?

Participating Frequently
November 11, 2009

If you really want to use those fonts, I would suggest that you contact the provider of those fonts, and see if they have an OpenType version.

The only alternative I can think of is to use the postional forms characters (U+FB50...) but that comes with its own set of problems.

Eric.