Esempio n. 1
0
 private BaseFont getCachedBaseFont(Font f) {
   synchronized (baseFonts) {
     BaseFont bf = (BaseFont) baseFonts.get(f.getFontName());
     if (bf == null) {
       bf = fontMapper.awtToPdf(f);
       baseFonts.put(f.getFontName(), bf);
     }
     return bf;
   }
 }