aboutsummaryrefslogtreecommitdiffstats
diff options
context:
space:
mode:
-rw-r--r--src/java/org/apache/fop/fonts/truetype/TTFFile.java6
-rw-r--r--status.xml5
2 files changed, 10 insertions, 1 deletions
diff --git a/src/java/org/apache/fop/fonts/truetype/TTFFile.java b/src/java/org/apache/fop/fonts/truetype/TTFFile.java
index 39fc7073f..d55581098 100644
--- a/src/java/org/apache/fop/fonts/truetype/TTFFile.java
+++ b/src/java/org/apache/fop/fonts/truetype/TTFFile.java
@@ -1,5 +1,5 @@
/*
- * Copyright 1999-2004 The Apache Software Foundation.
+ * Copyright 1999-2004,2006 The Apache Software Foundation.
*
* Licensed under the Apache License, Version 2.0 (the "License");
* you may not use this file except in compliance with the License.
@@ -1043,10 +1043,14 @@ public class TTFFile {
// This also assumes that psocriptnames exists ("H")
// Should look it up int the cmap (that wouldn't help
// for charsets without H anyway...)
+ // Same for xHeight with the letter "x"
for (int i = 0; i < mtxTab.length; i++) {
if ("H".equals(mtxTab[i].getName())) {
capHeight = mtxTab[i].getBoundingBox()[3] - mtxTab[i].getBoundingBox()[1];
}
+ if ("x".equals(mtxTab[i].getName())) {
+ xHeight = mtxTab[i].getBoundingBox()[3] - mtxTab[i].getBoundingBox()[1];
+ }
}
}
}
diff --git a/status.xml b/status.xml
index a6e2573f0..0596f50c5 100644
--- a/status.xml
+++ b/status.xml
@@ -28,6 +28,11 @@
<changes>
<release version="FOP Trunk">
<action context="Code" dev="JM" type="fix">
+ Bugfix: Fixed a problem with certain TrueType fonts which are missing the "PCLT"
+ table, where a baseline-shift="sub" had no effect due to a missing x-height value.
+ (Note: This only affects TTFReader, so the font metric file has to be regenerated.)
+ </action>
+ <action context="Code" dev="JM" type="fix">
Bugfix: When the base URL was specified as a file system path, the constructed
URL was wrong.
</action>