1 3 package org.faceless.pdf; 4 5 import java.util.*; 6 7 18 public class PDFFont extends PeeredObject 19 { 20 final org.faceless.pdf2.PDFFont font; 21 22 PDFFont(org.faceless.pdf2.PDFFont font) 23 { 24 this.font=font; 25 } 26 27 Object getPeer() 28 { 29 return font; 30 } 31 32 35 public boolean isDefined(char c) 36 { 37 return font.isDefined(c); 38 } 39 40 45 public int getCharWidth(char c) 46 { 47 return font.getCharWidth(c); 48 } 49 50 54 public float getLeft(String s) 55 { 56 return font.getLeft(s); 57 } 58 59 63 public float getRight(String s) 64 { 65 return font.getRight(s); 66 } 67 68 72 public float getTop(String s) 73 { 74 return font.getTop(s); 75 } 76 77 81 public float getBottom(String s) 82 { 83 return font.getBottom(s); 84 } 85 86 91 public float getAscender() 92 { 93 return font.getAscender(); 94 } 95 96 102 public float getDescender() 103 { 104 return font.getDescender(); 105 } 106 107 121 public float getDefaultLeading() 122 { 123 return font.getDefaultLeading(); 124 } 125 126 130 public float getUnderlineThickness() 131 { 132 return font.getUnderlineThickness(); 133 } 134 135 141 public float getUnderlinePosition() 142 { 143 return font.getUnderlinePosition(); 144 } 145 146 150 public float getStrikeoutThickness() 151 { 152 return font.getStrikeoutThickness(); 153 } 154 155 159 public float getStrikeoutPosition() 160 { 161 return font.getStrikeoutPosition(); 162 } 163 164 174 public float getSubscriptSize() 175 { 176 return font.getSubscriptSize(); 177 } 178 179 189 public float getSuperscriptPosition() 190 { 191 return font.getSuperscriptPosition(); 192 } 193 194 205 public float getSubscriptPosition() 206 { 207 return font.getSubscriptPosition(); 208 } 209 210 214 public boolean isHorizontal() 215 { 216 return font.isHorizontal(); 217 } 218 219 225 public boolean isMonospace() 226 { 227 return font.isMonospace(); 228 } 229 230 234 public Object clone() 235 { 236 PDFFont f=null; 237 try { 238 f = (PDFFont)super.clone(); 239 } catch (CloneNotSupportedException e) {} 240 return f; 241 } 242 243 246 public final String getBaseName() 247 { 248 return font.getBaseName(); 249 } 250 251 260 public int getKerning(char c1, char c2) 261 { 262 return font.getKerning(c1,c2); 263 } 264 265 279 public String ligaturize(String s, Locale locale) 280 { 281 return font.ligaturize(s,locale); 282 } 283 284 294 public int ligaturize(char[] buf, int off, int len, Locale locale) 295 { 296 return font.ligaturize(buf,off,len,locale); 297 } 298 299 309 public boolean requote(char[] buf, int off, int len, Locale locale) 310 { 311 return font.requote(buf,off,len,locale); 312 } 313 } 314 | Popular Tags |