.
.
, swf , IDE (flash cs3), -. , Arial.
Arial .
, , .
New Lucida Console? ( Tōru Iwatani, 2 , Courier New, Lucida Console, , , , .
EDIT:
,
dafont.com
, , :
var fonts:Array = Font.enumerateFonts();
for(var i:int = 0 ; i < fonts.length; i++){
if(fonts[i].hasGlyphs('ō')) trace(fonts[i].fontName);
}
, :
Monaco
Lucida Grande
Bitstream Vera Sans Mono
saxMono
JackInput
Liberation Mono Regular
F25 Bank Printer
.
, :

:

, , , :)
l.text = j.text = f.text = li.text = s.text = b.text = 'Hello Tōru Iwatani...Hello Tōru Iwatani...Hello Tōru Iwatani...';
var lucida:TextField = getStyledTextField("Lucida Grande");
var liberation:TextField = getStyledTextField("Liberation Mono Regular");
var sax:TextField = getStyledTextField("saxMono");
addChild(lucida);
addChild(liberation);
addChild(sax);
liberation.y = 30;
sax.y = 60;
lucida.htmlText= liberation.htmlText = sax.htmlText = "<body><span class='text'>Hello Tōru Iwatani...</span></body>";
function getTextField(font:String):TextField{
var label:TextField = new TextField();
label.defaultTextFormat = new TextFormat(font,11,0x33333);
label.autoSize = TextFieldAutoSize.LEFT;
label.border = true;
label.embedFonts = true;
return label;
}
function getStyledTextField(font:String):TextField{
var style:StyleSheet = new StyleSheet();
style.parseCSS(".text { color:#333333; font-family:"+font+"; }");
var label:TextField = new TextField();
label.styleSheet = style;
label.autoSize = TextFieldAutoSize.LEFT;
label.border = true;
label.embedFonts = true;
return label;
}
l, li, b, j ..
lucida grande, , bitstream vera sans mono, JackInput ..
I'm not sure what the problem is, but embedding the characters in the scene worked for me. Also, I embedded all the glyphs to make sure. It takes ages to compile, you can choose the font that you like from the ones that work, and gradually take out the glyphs until you find the minimum number of glyphs that you need to use.
Goodluck, George
source
share