You are viewing a plain text version of this content. The canonical link for it is here.
Posted to commits@flex.apache.org by ha...@apache.org on 2017/08/08 21:16:04 UTC
[28/50] git commit: [flex-asjs] [refs/heads/feature/strand-work] -
FontMetrics should not be scaled
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 <ha...@in-tools.com>
Authored: Wed Aug 2 13:04:16 2017 +0300
Committer: Harbs <ha...@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