From: Peter Bernard West Date: Sat, 5 Jul 2003 20:20:23 +0000 (+0000) Subject: Added the licence and its inclusion in the generated file. X-Git-Tag: Alt-Design_pre_awt_renderer_import~267 X-Git-Url: https://source.dussan.org/?a=commitdiff_plain;h=ce5d8a57518193c4a70f1393451fc88d35764409;p=xmlgraphics-fop.git Added the licence and its inclusion in the generated file. git-svn-id: https://svn.apache.org/repos/asf/xmlgraphics/fop/branches/FOP_0-20-0_Alt-Design@196619 13f79535-47bb-0310-9956-ffa450edef68 --- diff --git a/src/codegen/font-file.xsl b/src/codegen/font-file.xsl index 184b656e0..bf78baac3 100644 --- a/src/codegen/font-file.xsl +++ b/src/codegen/font-file.xsl @@ -1,33 +1,88 @@ - - + - - - - - - - - -package org.apache.fop.render.pdf.fonts; - -import org.apache.fop.render.pdf.Font; + xmlns:xsl="http://www.w3.org/1999/XSL/Transform"> + + + . For more information on the Apache + * Software Foundation, please see . + * + *!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + * Automatically generated by font-file.xsl. DO NOT EDIT! + *!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!!! + */]]> + + + + + + + + + +package org.apache.fop.fonts.base14; + +import org.apache.fop.fonts.FontType; +import org.apache.fop.fonts.Font; +import org.apache.fop.fonts.CodePointMapping; public class extends Font { private final static String fontName = ""; - private final static String encoding = ""; + private final static String encoding = ""null; private final static int capHeight = ; private final static int xHeight = ; private final static int ascender = ; @@ -35,19 +90,24 @@ public class extends Font { private final static int firstChar = ; private final static int lastChar = ; private final static int[] width; + private final CodePointMapping mapping = + CodePointMapping.getMapping(""); static { width = new int[256]; - width[] = ; - + } - public String encoding() { + public String getEncoding() { return encoding; } + + public String getFontName() { + return fontName; + } - public String fontName() { - return fontName; + public FontType getFontType() { + return FontType.TYPE1; } public int getAscender(int size) { @@ -74,18 +134,37 @@ public class extends Font { return lastChar; } - public int width(int i,int size) { + public int getWidth(int i,int size) { return size * width[i]; } - public int[] getWidths(int size) { + public int[] getWidths() { int[] arr = new int[getLastChar()-getFirstChar()+1]; System.arraycopy(width, getFirstChar(), arr, 0, getLastChar()-getFirstChar()+1); - for( int i = 0; i < arr.length; i++) arr[i] *= size; + //for( int i = 0; i < arr.length; i++) arr[i] *= size; return arr; } + + public boolean hasKerningInfo() { + return false; + } + + public java.util.Map getKerningInfo() { + return java.util.Collections.EMPTY_MAP; + } + + public char mapChar(char c) { + char d = mapping.mapChar(c); + if(d != 0) { + return d; + } else { + return '#'; + } + } + } - - + + + width[0x] = ;