flex-commits mailing list archives

Site index · List index
Message view « Date » · « Thread »
Top « Date » · « Thread »
From ha...@apache.org
Subject [28/50] git commit: [flex-asjs] [refs/heads/feature/strand-work] - FontMetrics should not be scaled
Date Tue, 08 Aug 2017 21:16:04 GMT
FontMetrics should not be scaled


Project: http://git-wip-us.apache.org/repos/asf/flex-asjs/repo
Commit: http://git-wip-us.apache.org/repos/asf/flex-asjs/commit/adf157ac
Tree: http://git-wip-us.apache.org/repos/asf/flex-asjs/tree/adf157ac
Diff: http://git-wip-us.apache.org/repos/asf/flex-asjs/diff/adf157ac

Branch: refs/heads/feature/strand-work
Commit: adf157ac4d462095153739706d485f55b9926bd2
Parents: 253e73b
Author: Harbs <harbs@in-tools.com>
Authored: Wed Aug 2 13:04:16 2017 +0300
Committer: Harbs <harbs@in-tools.com>
Committed: Wed Aug 2 13:04:16 2017 +0300

----------------------------------------------------------------------
 .../src/main/flex/org/apache/flex/text/engine/ElementFormat.as    | 3 +--
 1 file changed, 1 insertion(+), 2 deletions(-)
----------------------------------------------------------------------


http://git-wip-us.apache.org/repos/asf/flex-asjs/blob/adf157ac/frameworks/projects/Text/src/main/flex/org/apache/flex/text/engine/ElementFormat.as
----------------------------------------------------------------------
diff --git a/frameworks/projects/Text/src/main/flex/org/apache/flex/text/engine/ElementFormat.as
b/frameworks/projects/Text/src/main/flex/org/apache/flex/text/engine/ElementFormat.as
index d5ab61c..b144b90 100644
--- a/frameworks/projects/Text/src/main/flex/org/apache/flex/text/engine/ElementFormat.as
+++ b/frameworks/projects/Text/src/main/flex/org/apache/flex/text/engine/ElementFormat.as
@@ -86,8 +86,7 @@ package org.apache.flex.text.engine
 		public function getFontMetrics():FontMetrics
 		{
 			assert(fontDescription != null,"fontDescription not assigned!");
-			var metrics:FontMetrics = fontDescription.fontLoader.getFont(fontDescription.fontName,fontDescription.fontStyle).fontMetrics;
-			return metrics.getScaledMetrics(fontSize);
+			return fontDescription.fontLoader.getFont(fontDescription.fontName,fontDescription.fontStyle).fontMetrics;
 		}
 	}
 }
\ No newline at end of file


Mime
View raw message