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); }
public String getFontName() { return afm.getFontName(); }