]> source.dussan.org Git - xmlgraphics-fop.git/commit
Added support for reading the OS/2 table's usWeightClass value which supports the...
authorJeremias Maerki <jeremias@apache.org>
Tue, 19 Feb 2008 15:47:48 +0000 (15:47 +0000)
committerJeremias Maerki <jeremias@apache.org>
Tue, 19 Feb 2008 15:47:48 +0000 (15:47 +0000)
commit56387de039f142b731d6ced52db6c79cb422824b
treef4339ed24f0bdea5c279c83009f97b393d91cceb
parente4cc262c1fac77fc38286b412b6293f1f1767ec8
Added support for reading the OS/2 table's usWeightClass value which supports the same font weight values as we use in XSL-FO.
However, in my tests these values proved to be unreliable (like ExtraBlack fonts returning 400). I just hooked the whole thing in so this work isn't lost if anyone has an idea to make it work. The FontInfoFinder will continue to only use guessed font weights for now.

git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@629131 13f79535-47bb-0310-9956-ffa450edef68
src/java/org/apache/fop/fonts/CustomFont.java
src/java/org/apache/fop/fonts/autodetect/FontInfoFinder.java
src/java/org/apache/fop/fonts/truetype/TTFFile.java
src/java/org/apache/fop/fonts/truetype/TTFFontLoader.java