Przeglądaj źródła

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.)

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@382089 13f79535-47bb-0310-9956-ffa450edef68
tags/fop-0_92-beta
Jeremias Maerki 18 lat temu
rodzic
commit
22b172ad42
2 zmienionych plików z 10 dodań i 1 usunięć
  1. 5
    1
      src/java/org/apache/fop/fonts/truetype/TTFFile.java
  2. 5
    0
      status.xml

+ 5
- 1
src/java/org/apache/fop/fonts/truetype/TTFFile.java Wyświetl plik

@@ -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];
}
}
}
}

+ 5
- 0
status.xml Wyświetl plik

@@ -27,6 +27,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.

Ładowanie…
Anuluj
Zapisz