Package org.jpedal.fonts.objects

Examples of org.jpedal.fonts.objects.FontData


        to.write(buffer, 0, bytes_read);

      to.close();
      from.close();

            FontData fontData=null;//new FontData(to.toByteArray());

            readFontData(to.toByteArray(),fontData);

            glyphs.setEncodingToUse(hasEncoding,this.getFontEncoding(false),true,isCIDFont);
View Full Code Here


          glyphs.remapFont=false;

                subfontAlreadyLoaded= !isCIDFont && fontsLoaded.containsKey(substituteFont+'_'+glyphs.getBaseFontName());

                File fontFile;
                FontData fontData=null;
                int objSize=0;

        /**
         * see if we cache or read
         */
                if(!subfontAlreadyLoaded){
                    fontFile=new File(substituteFont);

            objSize=(int)fontFile.length();
                }

        if(FontData.maxSizeAllowedInMemory>=0 && objSize>FontData.maxSizeAllowedInMemory){

                    if(!subfontAlreadyLoaded)
                    fontData=new FontData(substituteFont);

          readEmbeddedFont(null,fontData,false,true);
        }else if(subfontAlreadyLoaded){
                    readEmbeddedFont(null,null,false,true);
        }else{
View Full Code Here

        File fontFile=new File(substituteFont);
       
        int objSize=(int)fontFile.length();

    if(FontData.maxSizeAllowedInMemory>=0 && objSize>FontData.maxSizeAllowedInMemory){
          FontData fontData=new FontData(substituteFont);

            readEmbeddedFont(null,fontData,false,true);
        }else{
      //read details
      BufferedInputStream from;
View Full Code Here

        if(type==TRUETYPE || type==TRUETYPE_COLLECTION){

            TTGlyphs currentFont=new TTGlyphs();

            //FontData closed in routine
            currentFont.addStringValues(new FontData(subFont),fontDetails);

        }

        return fontDetails;
    }
View Full Code Here

        if(type==TRUETYPE || type==TRUETYPE_COLLECTION){

            TTGlyphs currentFont=new TTGlyphs();

          //FontData closed in routine
            fontNames=currentFont.readFontNames(new FontData(subFont),mode);

        }else if(type==TYPE1){

            T1Glyphs currentFont=new T1Glyphs();

          //FontData closed in routine
            fontNames=currentFont.readFontNames(new FontData(subFont),mode);

        }

        return fontNames;
    }
View Full Code Here

TOP

Related Classes of org.jpedal.fonts.objects.FontData

Copyright © 2018 www.massapicom. 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.