我已經嵌入使用嵌入meta標籤我的字體,沿途的Unicode字符的整個範圍......這是我的CustomTextField類:字體不顯示要點
[Embed(source='../assets/fonts/Arial.ttf',fontName='CustomFont',fontWeight='regular',
unicodeRange='U+0020-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+007E,U+0080-U+00FF,U+0100-U+017F,U+0400-U+04FF,U+0370-U+03FF,U+1E00-U+1EFF',
mimeType='application/x-font-truetype'
)]
public static var MY_FONT:Class;
[Embed(source='../assets/fonts/Arial Bold.ttf',fontName='CustomFont',fontWeight='bold',
unicodeRange='U+0020-U+0040,U+0041-U+005A,U+005B-U+0060,U+0061-U+007A,U+007B-U+007E,U+0080-U+00FF,U+0100-U+017F,U+0400-U+04FF,U+0370-U+03FF,U+1E00-U+1EFF',
mimeType='application/x-font-truetype'
)]
public static var MY_FONT_BOLD:Class;
public static const DEFAULT_FONT:String = "CustomFont";
public static const DEFAULT_TEXT_COLOUR:int = 0x000000;
public static const DEFAULT_TEXT_SIZE:int = 14;
private var _tf:TextFormat = new TextFormat(DEFAULT_FONT, DEFAULT_TEXT_SIZE, DEFAULT_TEXT_COLOUR);
public function CustomTextField():void
{
Font.registerFont(CustomTextField.MY_FONT);
Font.registerFont(CustomTextField.MY_FONT_BOLD);
_tf.size = 16;
antiAliasType = AntiAliasType.ADVANCED;
sharpness = 0;
defaultTextFormat = _tf;
autoSize = TextFieldAutoSize.LEFT;
embedFonts = true;
}
public override function set htmlText(value:String):void
{
super.htmlText = value;
setTextFormat(_tf);
}
出於某種原因,使用<li>
標籤打算完美的文字,但我沒有看到任何要點。字體只是標準Arial字體,所以它不是缺少子彈字符的字體。
有沒有人有任何想法,爲什麼Flex不顯示項目符號點字符?
感謝回覆,這不能遺憾地工作:( – Hanpan 2010-03-08 14:02:06