Examples of FontCollection


Examples of org.apache.fop.fonts.FontCollection

            checkDefaultFontAvailable(fontInfo, Font.STYLE_ITALIC, Font.WEIGHT_BOLD);
        } else {
            eventProducer.warnDefaultFontSetup(this);

            // Go with a default base 12 configuration for AFP environments
            FontCollection base12FontCollection = new AFPBase12FontCollection(eventProducer);
            num = base12FontCollection.setup(num, fontInfo);
        }
        return num;
    }
View Full Code Here

Examples of org.apache.fop.fonts.FontCollection

                    Font.STYLE_ITALIC, Font.WEIGHT_BOLD);
        } else {
            eventProducer.warnDefaultFontSetup(this);

            // Go with a default base 12 configuration for AFP environments
            FontCollection base12FontCollection = new AFPBase12FontCollection();
            num = base12FontCollection.setup(num, fontInfo);
        }
        return num;
    }
View Full Code Here

Examples of org.apache.poi.hslf.record.FontCollection

   * @param font
   *            the font to add
   * @return 0-based index of the font
   */
  public int addFont(PPFont font) {
    FontCollection fonts = getDocumentRecord().getEnvironment().getFontCollection();
    int idx = fonts.getFontIndex(font.getFontName());
    if (idx == -1) {
      idx = fonts.addFont(font.getFontName(), font.getCharSet(), font.getFontFlags(), font
          .getFontType(), font.getPitchAndFamily());
    }
    return idx;
  }
View Full Code Here

Examples of org.apache.poi.hslf.record.FontCollection

   *            0-based index of the font
   * @return of an instance of <code>PPFont</code> or <code>null</code> if not
   *         found
   */
  public PPFont getFont(int idx) {
    FontCollection fonts = getDocumentRecord().getEnvironment().getFontCollection();
    for (Record ch : fonts.getChildRecords()) {
      if (ch instanceof FontEntityAtom) {
        FontEntityAtom atom = (FontEntityAtom) ch;
        if (atom.getFontIndex() == idx) {
          return new PPFont(atom);
        }
View Full Code Here
TOP
Copyright © 2018 www.massapi.com. All rights reserved.
All source code are property of their respective owners. Java is a trademark of Sun Microsystems, Inc and owned by ORACLE Inc. Contact coftware#gmail.com.