मैं बस चाहता था गुजरती हैं और कारक 2 से Bitmap
नीचे पैमाने पर ... इस सवाल में अपना अनुभव जोड़ने के लिए। मैं भी पाठ घुमाने के लिए चाहता था।
सबसे पहले, मैंने केवल एक्शनस्क्रिप्ट का उपयोग करके फ़ॉन्ट एम्बेड किया।
Embed(source="C:\\WINDOWS\\Fonts\\CALIBRI.TTF", fontFamily="Calibri")]
public static const FONT_CALIBRI:Class;
...
var font:Font = new Global.FONT_CALIBRI as Font;
//Font.registerFont(Global.FONT_CALIBRI); //I tried various other things...
लेकिन हर बार जब मैं embedFonts = true
निर्धारित करते हैं, पाठ गायब हो जाते हैं। अंत में मैंने और embedded the font using Flash दिया।
var font:Font = new FontClass as Font; //FontClass was exported from Flash IDE
आखिर में काम किया।
var textFormat:TextFormat = new TextFormat(font.fontName);
textField = new TextField();
textField.defaultTextFormat = textFormat; //must be before setting the text
textField.embedFonts = true; //needed to rotate fonts
textField.autoSize = TextFieldAutoSize.CENTER;
textField.antiAliasType = flash.text.AntiAliasType.ADVANCED;
textField.text = ("TESTING")
this.addChild(textField);
ओह, मैं किसी भी चीज़ के लिए फ्लैश आईडीई का उपयोग कैसे करता हूं। यदि कोई फ़्लैश का उपयोग किए बिना ऐसा करने में सक्षम था, तो कृपया साझा करें!