[Libreoffice-bugs] [Bug 143343] IPA Contour characters lose the first on PDF export

bugzilla-daemon at bugs.documentfoundation.org bugzilla-daemon at bugs.documentfoundation.org
Tue Jul 20 03:56:31 UTC 2021


https://bugs.documentfoundation.org/show_bug.cgi?id=143343

--- Comment #6 from martin_hosken at sil.org ---
Looking inside the PDF, the subset font of Charis is faulty. It looks like that
referenced component glyphs are allocated ids and referenced within the glyph
(in the glyf) table, but the extra glyphs are never actually added to the font.

For example, in the Charis subset in the PDF, glyph 1 is a compound glyph that
references glyph 59. But there are only 59 glyphs in the font (0 through 58)
and so there is no glyph 59 to be referenced.

Looking at the code in vcl, the glyfAdd function (fontsubset/ttcr.cxx) does the
job of adding glyphs and references to the list of glyphs. But the calling code
in CreateT42FromTTGlyphs (fontsubset/sfnt.cxx) (or is it CreateTTFromTTGlyphs?)
does nothing with this. It only iterates over the nGlyphs it starts with.

My thinking is that what is needed is an initial recursive iteration over all
the glyphs to identify which need to be included. This will update nGlyphs. And
only then to output all the tables.

-- 
You are receiving this mail because:
You are the assignee for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/libreoffice-bugs/attachments/20210720/52763108/attachment.htm>


More information about the Libreoffice-bugs mailing list