1 17 18 19 20 package org.apache.fop.render.afp.fonts; 21 import java.util.Map ; 22 import org.apache.fop.fonts.FontType; 23 import org.apache.fop.fonts.Typeface; 24 25 26 31 public abstract class AFPFont extends Typeface { 32 33 34 protected String _name; 35 36 40 public AFPFont(String name) { 41 42 _name = name; 43 44 } 45 46 49 public String getFontName() { 50 return _name; 51 } 52 53 57 public FontType getFontType() { 58 return FontType.OTHER; 59 } 60 61 65 public boolean hasKerningInfo() { 66 return false; 67 } 68 69 73 public Map getKerningInfo() { 74 return null; 75 } 76 77 82 public abstract CharacterSet getCharacterSet(int size); 83 84 89 public boolean hasChar(char c) { 90 return true; 91 } 92 93 } | Popular Tags |