[poppler] FontInfo::getToUnicode()

Brad Hards bradh at frogmouth.net
Sat Jul 2 21:14:26 PDT 2005


On Sun, 3 Jul 2005 13:41 pm, Leonard Rosenthol wrote:
> At 12:58 PM +1000 7/2/05, Brad Hards wrote:
> >Can anyone tell me what the meaning of the subject call is?
>
> 	Sure, it returns the "ToUnicode" table associated with the
> font (if one is present).
Hmm, it return a GBool, so I guess it means that there is such a table.

> >  >From reading the code, I guess it means that the text in that font
> >
> >is actually  unicode encoded,
>
> 	Actually, it means exactly the opposite!
>
> 	It means that the code points used in the content stream are
> NOT easily mapped to Unicode codepoints - and so a table needs to be
> present in the PDF to allow the viewer/consumer to correctly convert
> to Unicode codepoints, and thus enable correct text extraction.
OK, so the function call might be better called "requiresUnicodeLookup()"?

Brad
-------------- next part --------------
A non-text attachment was scrubbed...
Name: not available
Type: application/pgp-signature
Size: 189 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/poppler/attachments/20050703/6f0293d4/attachment.pgp


More information about the poppler mailing list