Interesting... I suspect that this is a limit with TextField the Flash Player. 
I didn't check whether embedding the font gets around the problem. However, 
TextField is on its way to becoming obsolete and the limit doesn't seem to 
apply to FTE, the new Flash Text Engine in Player 10. As a demonstration of 
this, the following Flex 4 app

<?xml version="1.0" encoding="utf-8"?>
<FxApplication xmlns="http://ns.adobe.com/mxml/2009";>
    <layout><VerticalLayout/></layout>
    <TextBox text="Hello" fontFamily="Verdana" fontSize="1000"/>
</FxApplication>

renders properly because TextBox uses FTE rather than TextField.

Gordon Smith
Adobe Flex SDK Team

From: [email protected] [mailto:[email protected]] On Behalf 
Of Stephen More
Sent: Tuesday, February 17, 2009 7:58 AM
To: [email protected]
Subject: [flexcoders] Displaying Extremely large fonts


Is there a way to display extremely large fonts in Flash ?

I have tried:

var format:TextFormat = new TextFormat();
format.font = "Verdana";
format.color = 0x000000;

format.size = 72;
[TextLineMetrics ascent:72, descent:16, leading:0, width:40, height:88, x:2]

format.size = 144;
[TextLineMetrics ascent:127, descent:27, leading:0, width:71, height:154, x:77]

format.size = 288;
[TextLineMetrics ascent:127, descent:27, leading:0, width:71, height:154, x:77]

But the height never gets larger than 154.

textfield.width = stage.stageWidth;
textfield.height = stage.stageHeight;

I am looking to display text almost as large as the stage, do I need
to use a different font or an embedded font ?

-Thanks

Reply via email to