Examples of CIDFontType2Parser


Examples of org.apache.fontbox.ttf.CIDFontType2Parser

        {
            /*
             * According to PDF Reference, CIDFontType2 is a TrueType font. Remark : Java.awt.Font throws exception when
             * a CIDFontType2 is parsed even if it is valid.
             */
            ttf = new CIDFontType2Parser(true).parseTTF(new ByteArrayInputStream(fontFile.getByteArray()));
            this.fContainer.setTtf(ttf);
        }
        catch (Exception e)
        {
            /*
 
View Full Code Here

Examples of org.apache.fontbox.ttf.CIDFontType2Parser

    TrueTypeFont ttf = null;
    try {
      // ---- According to PDF Reference, CIDFontType2 is a TrueType font.
      // ---- Remark : Java.awt.Font throws exception when a CIDFontType2 is
      // parsed even if it is valid.
      ttf = new CIDFontType2Parser(true).parseTTF(new ByteArrayInputStream(ff2.getByteArray()));
    } catch (Exception e) {
      // ---- Exceptionally, Exception is catched Here because of damaged font
      // can throw NullPointer Exception...
      this.fontContainer.addError(new ValidationResult.ValidationError(
          ERROR_FONTS_CID_DAMAGED, "The FontFile can't be read"));
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.