diff options
author | fotis <fotis@unknown> | 2000-11-16 15:37:01 +0000 |
---|---|---|
committer | fotis <fotis@unknown> | 2000-11-16 15:37:01 +0000 |
commit | ff5f56081090a486965e0c766b1a5119dc6ed884 (patch) | |
tree | 7e6963b7d5a409f6076665b2c63f5624a5cde446 /src/org/apache/fop/layout/FontState.java | |
parent | 8704ded58939a15b4ea557095ddff2d485e39296 (diff) | |
download | xmlgraphics-fop-ff5f56081090a486965e0c766b1a5119dc6ed884.tar.gz xmlgraphics-fop-ff5f56081090a486965e0c766b1a5119dc6ed884.zip |
AWTRenderer uses now system fonts and not pdf fonts. All (error) messages
are handled in the Gui [Dorothea Wiarda]
git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193823 13f79535-47bb-0310-9956-ffa450edef68
Diffstat (limited to 'src/org/apache/fop/layout/FontState.java')
-rw-r--r-- | src/org/apache/fop/layout/FontState.java | 10 |
1 files changed, 5 insertions, 5 deletions
diff --git a/src/org/apache/fop/layout/FontState.java b/src/org/apache/fop/layout/FontState.java index c9dcbbbc4..55508dc70 100644 --- a/src/org/apache/fop/layout/FontState.java +++ b/src/org/apache/fop/layout/FontState.java @@ -73,15 +73,15 @@ public class FontState { } public int getAscender() { - return fontSize * metric.getAscender() / 1000; + return metric.getAscender(fontSize) / 1000; } public int getCapHeight() { - return fontSize * metric.getCapHeight() / 1000; + return metric.getCapHeight(fontSize) / 1000; } public int getDescender() { - return fontSize * metric.getDescender() / 1000; + return metric.getDescender(fontSize) / 1000; } public String getFontName() { @@ -109,11 +109,11 @@ public class FontState { } public int getXHeight() { - return fontSize * metric.getXHeight() / 1000; + return metric.getXHeight(fontSize) / 1000; } public int width(int charnum) { // returns width of given character number in millipoints - return (fontSize * metric.width(charnum) / 1000); + return (metric.width(charnum, fontSize) / 1000); } } |