[ 
https://issues.apache.org/jira/browse/PDFBOX-2360?page=com.atlassian.jira.plugin.system.issuetabpanels:comment-tabpanel&focusedCommentId=14141200#comment-14141200
 ] 

John Hewson commented on PDFBOX-2360:
-------------------------------------

{quote}
PDCIDFont used to extend PDFont, since they are now seperate it makes it 
difficult to write common code for both. Could they both implement a interface 
with "public PDFontDescriptor getFontDescriptor()".
{quote}

That's because CIDFonts are not fonts, they are "font-like objects" to quote 
the PDF spec. It's certainly possible to have their common aspects implement an 
interface though, I'll take a look at this. Maybe "PDFontLike".

P.S. I'm happy to add APIs for valid use cases, feel free to suggest more :)

> 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
>
> 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)

Reply via email to