Examples of FontFileReader


Examples of org.apache.fop.fonts.FontFileReader

        if (!file.exists()) {
            throw new RuntimeException("File=" + file + " does not exist");
        }
        System.err.println("[TTFileExt] <ctor> file=" + file.getAbsolutePath());
        myFile = file;
        FontFileReader reader = new FontFileReader(file.getCanonicalPath());
        readFont(reader);
    }
View Full Code Here

Examples of org.apache.fop.fonts.FontFileReader

    }


    public PDFStream getFontFile(int i) {
        try {
            FontFileReader reader = new FontFileReader(embedFileName);
            TTFSubSetFile subset = new TTFSubSetFile();

            byte[] subsetFont = subset.readFont(reader, ttcName, usedGlyphs);
            // Only TrueType CID fonts are supported now
View Full Code Here

Examples of org.apache.fop.fonts.FontFileReader


    public PDFStream getFontFile(int i) {
        try {
            InputStream in = embedFileName.openStream();
            FontFileReader reader = new FontFileReader(in);
            in.close();
            TTFSubSetFile subset = new TTFSubSetFile();

            byte[] subsetFont = subset.readFont(reader, ttcName, usedGlyphs);
            // Only TrueType CID fonts are supported now
View Full Code Here

Examples of org.apache.fop.fonts.FontFileReader

    }


    public PDFStream getFontFile(int i) {
        try {
            FontFileReader reader = new FontFileReader(embedFileName);
            TTFSubSetFile subset = new TTFSubSetFile();

            byte[] subsetFont =
              subset.readFont(reader, ttcName, usedGlyphs);
            // Only TrueType CID fonts are supported now
View Full Code Here

Examples of org.apache.fop.fonts.FontFileReader

    }


    public PDFStream getFontFile(int i) {
        try {
            FontFileReader reader = new FontFileReader(embedFileName);
            TTFSubSetFile subset = new TTFSubSetFile();

            byte[] subsetFont =
              subset.readFont(reader, ttcName, usedGlyphs);
            // Only TrueType CID fonts are supported now
View Full Code Here

Examples of org.apache.fop.fonts.truetype.FontFileReader

     */
    public TTFFile loadTTF(String fileName, String fontName) throws IOException {
        TTFFile ttfFile = new TTFFile();
        log.info("Reading " + fileName + "...");

        FontFileReader reader = new FontFileReader(fileName);
        boolean supported = ttfFile.readFont(reader, fontName);
        if (!supported) {
            return null;
        }
        log.info("Font Family: " + ttfFile.getFamilyName());
View Full Code Here

Examples of org.apache.fop.fonts.truetype.FontFileReader

            } else {
                try {
                    AbstractPDFStream embeddedFont;
                    if (desc.getFontType() == FontType.TYPE0) {
                        MultiByteFont mbfont = (MultiByteFont)font;
                        FontFileReader reader = new FontFileReader(in);

                        TTFSubSetFile subset = new TTFSubSetFile();
                        byte[] subsetFont = subset.readFont(reader,
                                             mbfont.getTTCName(), mbfont.getUsedGlyphs());
                        // Only TrueType CID fonts are supported now
View Full Code Here

Examples of org.apache.fop.fonts.truetype.FontFileReader

            } else {
                try {
                    AbstractPDFStream embeddedFont;
                    if (desc.getFontType() == FontType.TYPE0) {
                        MultiByteFont mbfont = (MultiByteFont)font;
                        FontFileReader reader = new FontFileReader(in);

                        TTFSubSetFile subset = new TTFSubSetFile();
                        byte[] subsetFont = subset.readFont(reader,
                                             mbfont.getTTCName(), mbfont.getUsedGlyphs());
                        // Only TrueType CID fonts are supported now
View Full Code Here

Examples of org.apache.fop.fonts.truetype.FontFileReader

            } else {
                try {
                    AbstractPDFStream embeddedFont;
                    if (desc.getFontType() == FontType.TYPE0) {
                        MultiByteFont mbfont = (MultiByteFont)font;
                        FontFileReader reader = new FontFileReader(in);

                        TTFSubSetFile subset = new TTFSubSetFile();
                        byte[] subsetFont = subset.readFont(reader,
                                             mbfont.getTTCName(), mbfont.getUsedGlyphs());
                        // Only TrueType CID fonts are supported now
View Full Code Here

Examples of org.apache.fop.fonts.truetype.FontFileReader

     */
    public TTFFile loadTTF(String fileName, String fontName) throws IOException {
        TTFFile ttfFile = new TTFFile();
        log.info("Reading " + fileName + "...");

        FontFileReader reader = new FontFileReader(fileName);
        boolean supported = ttfFile.readFont(reader, fontName);
        if (!supported) {
            return null;
        }
        log.info("Font Family: " + ttfFile.getFamilyNames());
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.