[ https://issues.apache.org/jira/browse/PDFBOX-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14142717#comment-14142717 ]
John Hewson edited comment on PDFBOX-2360 at 9/21/14 9:20 PM: -------------------------------------------------------------- {quote} You are correct that fontlike is used with the PDF spec but it has been given a name there which is CIDFont {quote} {code} PDF Spec: A composite font, also called a Type 0 font, is one whose glyphs are obtained from a fontlike object called a CIDFont {code} A Type 0 font is not itself a CIDFont, it is *obtained from* a CIDFont, i.e. it wraps a descendant CIDFont. It's true that a CIDFont is a font-like object, but a font-like object is not always a CIDFont, it may be a normal Font. {quote} Now with the new interface you are wrapping common information for different font types which is very good. {quote} Technically this is incorrect, these are not "different font types" because a *CIDFont is not a font*. It's "font-like object". {quote} So what about something like PDFontCommonProperties. {quote} As a CIDFont is not a font this name would be wrong. There's already a name in the spec for the common features of both Fonts and CIDFonts, it's "font-like object" which is what I've used. was (Author: jahewson): {quote} You are correct that fontlike is used with the PDF spec but it has been given a name there which is CIDFont {quote} {code} PDF Spec: A composite font, also called a Type 0 font, is one whose glyphs are obtained from a fontlike object called a CIDFont {code} No, you've misread the spec, a Type 0 font is not itself a CIDFont, it is *obtained from* a CIDFont, i.e. it wraps a descendant CIDFont. {quote} Now with the new interface you are wrapping common information for different font types which is very good. {quote} Technically this is incorrect, these are not "different font types" because a *CIDFont is not a font*. It's "font-like object". {quote} So what about something like PDFontCommonProperties. {quote} As a CIDFont is not a font this name would be wrong. There's already a name in the spec for the common features of both Fonts and CIDFonts, it's "font-like object" which is what I've used. > PDFont had methods removed > -------------------------- > > Key: PDFBOX-2360 > URL: https://issues.apache.org/jira/browse/PDFBOX-2360 > Project: PDFBox > Issue Type: Bug > Components: PDModel > Affects Versions: 2.0.0 > Reporter: simon steiner > Assignee: John Hewson > > Add back methods or provide a equivalent to pdfbox so it easier to upgrade to > PDFBox 2 > PDFont > public int getFirstChar() > public int getLastChar() > public Encoding getFontEncoding() > public CMap getToUnicodeCMap() > public String encode(byte[] c, int offset, int length) throws IOException > PDCIDFont > public long getDefaultWidth() > Encoding > public String getCharacter(int code) throws IOException > CFFFont > public Object getProperty(String name) > public Map<String, byte[]> getCharStringsDict() > public CFFEncoding getEncoding() > CFFCharset > public List<Entry> getEntries() > CFFEncoding > public List<Entry> getEntries() > Cmap > public String lookup( int code, int length ) -- This message was sent by Atlassian JIRA (v6.3.4#6332)