Examples of addFonts()


Examples of com.adobe.dp.epub.opf.Publication.addFonts()

      // NB: on non-Windows platforms you need to supply your own
      // FontLocator implementation or place fonts in ~/.epubfonts
      FontLocator fontLocator = DefaultFontLocator.getInstance();
      // epub.useAdobeFontMangling();
      epub.cascadeStyles();
      epub.addFonts(style, fontLocator);

      // save EPUB to an OCF container
      OCFContainerWriter writer = new OCFContainerWriter(
          new FileOutputStream("n:\\tmp\\hello.epub"));
      epub.serialize(writer);
View Full Code Here

Examples of com.adobe.dp.epub.ops.OPSDocument.addFonts()

      Object next = res.next();
      if (next instanceof OPSResource) {
        OPSResource ops = (OPSResource) next;
        OPSDocument doc = ops.getDocument();
        doc.addStyleResource(styleResource.getResourceRef());
        doc.addFonts(subsetter, styleResource);
      }
    }
    subsetter.addFonts(this);
    return subsetter;
  }
View Full Code Here

Examples of com.adobe.dp.epub.otf.FontSubsetter.addFonts()

        OPSDocument doc = ops.getDocument();
        doc.addStyleResource(styleResource.getResourceRef());
        doc.addFonts(subsetter, styleResource);
      }
    }
    subsetter.addFonts(this);
    return subsetter;
  }

  static String strip(String source) {
    return source.replaceAll("\\s+", "");
View Full Code Here

Examples of org.apache.fop.pdf.PDFResources.addFonts()

        }

        /** @todo see if pdfDoc and res can be linked here,
        (currently res <> PDFDocument's resources) so addFonts()
        can be moved to PDFDocument class */
        res.addFonts(pdfDoc, fontInfo);

        PDFPattern myPat = pdfDoc.getFactory().makePattern(
                                resourceContext, 1, res, 1, 1, bbox,
                                rect.getWidth(), rect.getHeight(),
                                theMatrix, null,
View Full Code Here

Examples of org.apache.fop.pdf.PDFResources.addFonts()

        }

        /** @todo see if pdfDoc and res can be linked here,
        (currently res <> PDFDocument's resources) so addFonts()
        can be moved to PDFDocument class */
        res.addFonts(pdfDoc, specialFontInfo);

        PDFPattern myPat = pdfDoc.getFactory().makePattern(
                                resourceContext, 1, res, 1, 1, bbox,
                                rect.getWidth(), rect.getHeight(),
                                theMatrix, null,
View Full Code Here

Examples of org.apache.fop.pdf.PDFResources.addFonts()

        }

        /** @todo see if pdfDoc and res can be linked here,
        (currently res <> PDFDocument's resources) so addFonts()
        can be moved to PDFDocument class */
        res.addFonts(pdfDoc, specialFontInfo);

        PDFPattern myPat = pdfDoc.getFactory().makePattern(
                                resourceContext, 1, res, 1, 1, bbox,
                                rect.getWidth(), rect.getHeight(),
                                theMatrix, null,
View Full Code Here

Examples of org.apache.fop.pdf.PDFResources.addFonts()

        }

        /** @todo see if pdfDoc and res can be linked here,
        (currently res <> PDFDocument's resources) so addFonts()
        can be moved to PDFDocument class */
        res.addFonts(pdfDoc, specialFontInfo);

        PDFPattern myPat = pdfDoc.getFactory().makePattern(
                                resourceContext, 1, res, 1, 1, bbox,
                                rect.getWidth(), rect.getHeight(),
                                theMatrix, null,
View Full Code Here

Examples of org.apache.fop.pdf.PDFResources.addFonts()

        }

        /** @todo see if pdfDoc and res can be linked here,
        (currently res <> PDFDocument's resources) so addFonts()
        can be moved to PDFDocument class */
        res.addFonts(pdfDoc, fontInfo);

        PDFPattern myPat = pdfDoc.getFactory().makePattern(
                                resourceContext, 1, res, 1, 1, bbox,
                                rect.getWidth(), rect.getHeight(),
                                theMatrix, null,
View Full Code Here

Examples of org.apache.fop.pdf.PDFResources.addFonts()

        }

        /** @todo see if pdfDoc and res can be linked here,
        (currently res <> PDFDocument's resources) so addFonts()
        can be moved to PDFDocument class */
        res.addFonts(pdfDoc, fontInfo);

        PDFPattern myPat = pdfDoc.getFactory().makePattern(
                                resourceContext, 1, res, 1, 1, bbox,
                                rect.getWidth(), rect.getHeight(),
                                theMatrix, null,
View Full Code Here

Examples of org.apache.fop.pdf.PDFResources.addFonts()

        }

        /** @todo see if pdfDoc and res can be linked here,
        (currently res <> PDFDocument's resources) so addFonts()
        can be moved to PDFDocument class */
        res.addFonts(pdfDoc, specialFontInfo);

        PDFPattern myPat = pdfDoc.getFactory().makePattern(
                                resourceContext, 1, res, 1, 1, bbox,
                                rect.getWidth(), rect.getHeight(),
                                theMatrix, null,
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.