Details
-
Bug
-
Resolution: Done
-
P2: Important
-
4.6.2, 4.7.0, 5.1.0
-
Mac OS X 64-bit
-
-
517fb9026896f7ac20376f253babae5a7c57721d qt4:323cd5198ce9d0f4f94b0cc9f3447a3318339ff7
Description
Font embedding in PostScript and PDF fails in the CoreText implementation on the Mac due to a number of unimplemented methods in QCoreTextFontEngine.
1. QCoreTextFontEngine::faceId returns a dummy FaceId structure with no filename in. This is tested in QPdfBaseEnginePrivate::drawTextItem, which falls back to writing the characters as curves rather than embedding the font if no faceId could be found.
2. QCoreTextFontEngine::getUnscaledGlyph is completely unimplemented.
3. QCoreTextFontEngine has no override for QFontEngine::properties(), which means that embedded fonts would be given the wrong name (the base class implementation just uses the family name with style information appended, rather than calling a system API to get the real PostScript name).
4. QCoreTextFontEngine::stringToCMap is completely unimplemented. (Note that the equivalents in QCoreTextFontEngineMulti are implemented, but glyph naming in EPS export uses the former.)
This is related to 10089 which is a Windows-specific failure of font embedding in PS/PDF. The test case attached to that bug applies to this one too.
Attachments
Issue Links
- is required for
-
QTBUG-33583 PDF output converts text to outline, rendering them un-searchable
- Open
-
QTBUG-13826 PDF has a much larger file size in cocoa compared to carbon
- Closed
- relates to
-
QTBUG-10089 OpenType font embedding in PostScript / PDF
- Open
For Gerrit Dashboard: QTBUG-10094 | ||||||
---|---|---|---|---|---|---|
# | Subject | Branch | Project | Status | CR | V |
83686,3 | WIP: fix bugs generating PDF on Cocoa | stable | qt/qtbase | Status: ABANDONED | 0 | 0 |
92837,3 | Fix bugs generating PDF on Cocoa | dev | qt/qtbase | Status: MERGED | +2 | 0 |
103858,2 | Fix bugs generating PDF on Cocoa | 4.8 | qt/qt | Status: ABANDONED | +1 | 0 |
104494,2 | Fix bugs generating PDF on Cocoa | 4.8 | qt/qt | Status: MERGED | +2 | 0 |