From 20f35d01bcdf674c68c0c68a254425633b84050c Mon Sep 17 00:00:00 2001 From: fotis Date: Thu, 2 Nov 2000 13:37:35 +0000 Subject: [PATCH] necessary for font support git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@193742 13f79535-47bb-0310-9956-ffa450edef68 --- src/codegen/t1font-file.xsl | 112 ++++++++++++++++++++++++++++++++++++ 1 file changed, 112 insertions(+) create mode 100644 src/codegen/t1font-file.xsl diff --git a/src/codegen/t1font-file.xsl b/src/codegen/t1font-file.xsl new file mode 100644 index 000000000..024fbbb62 --- /dev/null +++ b/src/codegen/t1font-file.xsl @@ -0,0 +1,112 @@ + + + + + + + + +package org.apache.fop.render.pdf.fonts; + +import org.apache.fop.render.pdf.Font; +import org.apache.fop.layout.FontDescriptor; + +public class extends Font implements FontDescriptor { + private final static String fontName = ""; + private final static String encoding = ""; + private final static int capHeight = ; + private final static int xHeight = ; + private final static int ascender = ; + private final static int descender = ; + private final static int[] fontBBox = { + , + , + , + + }; + private final static int flags = ; + private final static int stemV = ; + private final static int italicAngle = ; + private final static int firstChar = ; + private final static int lastChar = ; + private final static int[] width; + + static { + width = new int[256]; + width[] = ; + + } + + public String encoding() { + return encoding; + } + + public String fontName() { + return fontName; + } + + public int getAscender() { + return ascender; + } + + public int getCapHeight() { + return capHeight; + } + + public int getDescender() { + return descender; + } + + public int getXHeight() { + return xHeight; + } + + public int getFlags() { + return flags; + } + + public int[] getFontBBox() { + return fontBBox; + } + + public int getItalicAngle() { + return italicAngle; + } + + public int getStemV() { + return stemV; + } + + public int getFirstChar() { + return firstChar; + } + + public int getLastChar() { + return lastChar; + } + + public int width(int i) { + return width[i]; + } + + public int[] getWidths() { + int[] arr = new int[getLastChar()-getFirstChar()+1]; + System.arraycopy(width, getFirstChar(), arr, 0, getLastChar()-getFirstChar()+1); + return arr; + } +} + + + + -- 2.39.5