Arabric Font embed, and TLF use problem.
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.!
