From: vincent@cubedesigners.com Date: Sun, 21 Aug 2011 21:39:30 +0000 (+0000) Subject: (no commit message) X-Git-Url: http://git.cubedesigners.com/?a=commitdiff_plain;h=8906affd1e7c08fc2d2cd7ba8de2e1a6220ac7c9;p=cubeextranet.git --- diff --git a/fluidbook/tools/FWSTK_Resources/nbproject/private/private.xml b/fluidbook/tools/FWSTK_Resources/nbproject/private/private.xml new file mode 100644 index 000000000..cc2c0e57c --- /dev/null +++ b/fluidbook/tools/FWSTK_Resources/nbproject/private/private.xml @@ -0,0 +1,4 @@ + + + + diff --git a/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java b/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java index c5190e60d..35039c2fd 100644 --- a/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java +++ b/fluidbook/tools/fwstk/src/org/apache/pdfbox/util/PDFStreamEngine.java @@ -287,6 +287,7 @@ public class PDFStreamEngine { * @param str The string to be processed. */ protected String inspectFontEncoding(String str) { + System.out.println(str); return str; } @@ -398,16 +399,6 @@ public class PDFStreamEngine { float characterHorizontalDisplacementText = font.getFontWidth(string, i, codeLength); float characterVerticalDisplacementText = font.getFontHeight(string, i, codeLength); - PDFont ef = null; - if (characterHorizontalDisplacementText == 0.0f) { - ef = this.getExternalFont(font.getBaseFont()); - - if (ef != null) { - characterHorizontalDisplacementText = Math.max(ef.getFontWidth(string, i, codeLength), ef.getStringWidth(c)); - characterVerticalDisplacementText = ef.getFontHeight(string, i, codeLength); - } - } - // multiply the width/height with the scaling factor characterHorizontalDisplacementText = characterHorizontalDisplacementText * fontMatrixXScaling; characterVerticalDisplacementText = characterVerticalDisplacementText * fontMatrixYScaling; @@ -507,10 +498,6 @@ public class PDFStreamEngine { } } - public PDFont getExternalFont(String name) { - return null; - } - public void updateCmaps(String c, byte b, PDFont font) { }