fontforge / fontforge

Free (libre) font editor for Windows, Mac OS X and GNU+Linux
http://fontforge.github.io/
Other
6.33k stars 693 forks source link

PDF ToUnicode CMap is not fully support #4

Open coolwanglu opened 12 years ago

coolwanglu commented 12 years ago

A ToUnicode CMap inside a PDF file shows how to interpret the charcodes into Unicode values.

It may refer to a standard CMap, and add some modification.

Currently those modifications by begin/end bfchar/bfrange in ToUnicode CMaps as parsed and recognized.

However the reference part is not parsed.

In the end of pdf_getcmap in parsepdf.c, it's assumed that the CMap has been fully parsed, and all glyphs have been mapped to correct locations, which is not the case if the ToUnicode CMap only refer to a standard CMap.

What's more, the CMap parsing code in encoding.c is static, I wonder why.

coolwanglu commented 11 years ago

I guess it's not a main concern of fontforge, so I'm closing it.

khaledhosny commented 11 years ago

It is still an issue that need to be addressed (even if no one addresses it immediately, that is the point of having an issue tracker), reopening.