https://bugs.documentfoundation.org/show_bug.cgi?id=145061
Bug ID: 145061
Summary: Font::identifyFont should also detect Type 1C ( Type 1
Compacted, CCF) font
Product: LibreOffice
Version: 7.3.0.0 alpha0+ Master
Hardware: All
OS: All
Status: UNCONFIRMED
Severity: normal
Priority: medium
Component: LibreOffice
Assignee: [email protected]
Reporter: [email protected]
This is a split bug from bug 78427:
To correctly parse attachment 98668 during sdext.pdfimport, we need to be able
to detect Type 1C font.
My understanding is that currently LibreOffice can only detect TrueType font
and Type 1 font, but can not detect Type 1C (i.e. Type 1 Compacted) font.
See: vcl/source/font/font.cxx, where in line 616 it is identifyTrueTypeFont,
and in line 720 it is identifyType1Font. These two member functions are used in
identifyFont in line 806. The proposal is to add an identifyType1CompactedFont
there to detect the attributes such as font name, weight, italic for Type 1C
font.
Steps to Reproduce:
1. Open attachment 98668 with Draw.
Expected:
"Bold text" should be bold, while "Bold italic text" should be bold+italic.
Specifications of Compact Font Format can be found in:
https://wwwimages2.adobe.com/content/dam/acom/en/devnet/font/pdfs/5176.CFF.pdf
As a comparison the specifications of Type 1 Font Format can be found in:
https://adobe-type-tools.github.io/font-tech-notes/pdfs/T1_SPEC.pdf
--
You are receiving this mail because:
You are the assignee for the bug.