|
@@ -115,13 +115,14 @@ class Text extends Drawable {
|
|
|
|
|
|
public function calcTextWidth( text : String ) {
|
|
public function calcTextWidth( text : String ) {
|
|
if( calcDone ) {
|
|
if( calcDone ) {
|
|
- var ow = calcWidth, oh = calcHeight, osh = calcSizeHeight, oy = calcYMin;
|
|
|
|
|
|
+ var ow = calcWidth, oh = calcHeight, osh = calcSizeHeight, oy = calcYMin, ox = calcXMax;
|
|
initGlyphs(text, false);
|
|
initGlyphs(text, false);
|
|
var w = calcWidth;
|
|
var w = calcWidth;
|
|
calcWidth = ow;
|
|
calcWidth = ow;
|
|
calcHeight = oh;
|
|
calcHeight = oh;
|
|
calcSizeHeight = osh;
|
|
calcSizeHeight = osh;
|
|
calcYMin = oy;
|
|
calcYMin = oy;
|
|
|
|
+ calcXMax = ox;
|
|
return w;
|
|
return w;
|
|
} else {
|
|
} else {
|
|
initGlyphs(text, false);
|
|
initGlyphs(text, false);
|