Skip navigation
Currently Being Moderated

Arabric Font embed, and TLF use problem.

Nov 4, 2009 8:22 PM

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.!

 
Replies
  • Currently Being Moderated
    Nov 5, 2009 12:18 AM   in reply to Thisascreen

    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.

     
    |
    Mark as:
  • Currently Being Moderated
    Nov 10, 2009 5:12 PM   in reply to Thisascreen

    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.

     
    |
    Mark as:

More Like This

  • Retrieving data ...

Bookmarked By (0)

Answers + Points = Status

  • 10 points awarded for Correct Answers
  • 5 points awarded for Helpful Answers
  • 10,000+ points
  • 1,001-10,000 points
  • 501-1,000 points
  • 5-500 points