示例#1
0
 protected void initializeAfm() throws IOException {
   ILocator parentLocator = getLocator().getParent();
   if (parentLocator == null) {
     // can't lookup font metrics...
     return;
   }
   String localName = getLocator().getLocalName();
   ILocator afmLocator = parentLocator.getChild(localName + ".afm");
   afm = AFM.createFromLocator(afmLocator);
 }
示例#2
0
 public String getFontName() {
   return afm.getFontName();
 }