From fbfb0d250d2cd4e08054e0fc657f286ebd02e9d6 Mon Sep 17 00:00:00 2001 From: arved Date: Sun, 11 Feb 2001 05:28:11 +0000 Subject: [PATCH] CID Font file stylesheet git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/trunk@194054 13f79535-47bb-0310-9956-ffa450edef68 --- .../src/codegen/cidfont/cidfont-file.xsl | 334 ++++++++++++++++++ 1 file changed, 334 insertions(+) create mode 100644 jpfop-0.17.0/src/codegen/cidfont/cidfont-file.xsl diff --git a/jpfop-0.17.0/src/codegen/cidfont/cidfont-file.xsl b/jpfop-0.17.0/src/codegen/cidfont/cidfont-file.xsl new file mode 100644 index 000000000..6196f6c58 --- /dev/null +++ b/jpfop-0.17.0/src/codegen/cidfont/cidfont-file.xsl @@ -0,0 +1,334 @@ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +package org.apache.fop.render.pdf.fonts.cidfont.jp; + +import org.apache.fop.render.pdf.CIDFont; +import org.apache.fop.render.pdf.CMap; +import org.apache.fop.render.pdf.Widths; +import org.apache.fop.layout.OptionalFontDescriptor; + +public class extends CIDFont implements { + // Type0Font + private final static String fontName = ""; + private final static String encoding = ""; + + private final static String charEncoding = ""; + + private final static CMap cmap = new (); + + // CIDFont + private final static String cidBaseFont = ""; + private final static int cidtype = ; + + private final static String registry = ""; + + private final static String ordering = ""; + + private final static int supplement = ; + + private final static int winCharSet = ; + + private final static int dw = ; + + private final static Widths widths = new Widths(); + static { + } + + private final static int firstChar = ; + + private final static int lastChar = ; + + // FontDescriptor + private final static int flags = ; + + + + private final static int stemv = ; + + private final static int italicangle = ; + + private final static int capHeight = ; + + private final static int ascender = ; + + private final static int descender = ; + + // OptionalDescriptor + private final static int missingWidth = ; + + private final static int stemh = ; + + private final static int xHeight = ; + + private final static int leading = ; + + private final static int maxWidth = ; + + private final static int minWidth = ; + + private final static int avgWidth = ; + + private final static String panose = ""; + + public String fontName() { + return fontName; + } + + public String encoding() { + return encoding; + } + + + public String getCharEncoding() { + return charEncoding; + } + + + public CMap getCMap() { + return cmap; + } + + public String getCidBaseFont() { + return cidBaseFont; + } + + public int getCidType() { + return cidtype; + } + + + public String getRegistry() { + return registry; + } + + + public String getOrdering() { + return ordering; + } + + + public int getSupplement() { + return supplement; + } + + + public int getWinCharSet() { + return winCharSet; + } + + + public int getDefaultWidth() { + return dw; + } + + + public int width(int i,int size) { + int width = widths.getWidth(i); + if ( width < 0 ) + width = (getDefaultWidth() < 0) ? 1000 : dw; + return width*size; + } + public int[] getWidths(int size) { return null; } + public Widths getWidths() { + return widths; + } + + + public int getFirstChar() { + return firstChar; + } + + + public int getLastChar() { + return lastChar; + } + + + + + public int getFlags() { + return flags; + return -1; + } + + public int[] getFontBBox() { + return fontBBox; + return null; + } + + public int getStemV() { + return stemv; + return -1; + } + + public int getItalicAngle() { + return italicangle; + return -1; + } + + + + public int getCapHeight(int size) { + return size*capHeight; + } + public int getCapHeight() { + return capHeight; + } + + + public int getAscender(int size) { + return size*ascender; + } + public int getAscender() { + return ascender; + } + + + public int getDescender(int size) { + return size*descender; + } + public int getDescender() { + return descender; + } + + + + public int getMissingWidth() { + return missingWidth; + return -1; + } + + public int getStemH() { + return stemh; + return -1; + } + + + + public int getXHeight(int size) { + return size*xHeight; + } + public int getXHeight() { + return xHeight; + } + + + + public int getLeading() { + return leading; + return -1; + } + + public int getMaxWidth() { + return maxWidth; + return -1; + } + + public int getMinWidth() { + return minWidth; + return -1; + } + + public int getAvgWidth() { + return avgWidth; + return -1; + } + + public String getPanose() { + return panose; + return null; + } + + + public boolean hasKerningInfo() { return false; } + public java.util.Hashtable getKerningInfo() { return null; }; + public boolean isEmbeddable() { return false; } + public byte getSubType() {return org.apache.fop.pdf.PDFFont.TYPE0;} + public org.apache.fop.pdf.PDFStream getFontFile(int objNum) { return null; } + +} + + + + + + + + + + + + + + + + + + + + widths.addElement(,,); + + + widths.addElement(, new int[] { + + }); + + + , + + + + widths.addWidths(,,); + + + widths.addWidths(, new int[] { + + }); + + private final static int[] fontBBox = { + , + , + , + + }; + + + -- 2.39.5