-
Notifications
You must be signed in to change notification settings - Fork 10.1k
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
Guess CIDFontType0 subtype based on font file contents (issue 5751) #5756
Conversation
/botio test |
From: Bot.io (Windows)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.22.172.223:8877/9665519e45b68d7/output.txt |
From: Bot.io (Linux)ReceivedCommand cmd_test from @Snuffleupagus received. Current queue size: 0 Live output at: http://107.21.233.14:8877/63ea7017168d748/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/9665519e45b68d7/output.txt Total script time: 17.29 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/63ea7017168d748/output.txt Total script time: 22.23 mins
|
/botio makeref Good to merge when makeref passes ... |
From: Bot.io (Linux)ReceivedCommand cmd_makeref from @brendandahl received. Current queue size: 0 Live output at: http://107.21.233.14:8877/e93b3fade8b7ec3/output.txt |
From: Bot.io (Windows)ReceivedCommand cmd_makeref from @brendandahl received. Current queue size: 0 Live output at: http://107.22.172.223:8877/e1e6cda0e8f0894/output.txt |
From: Bot.io (Windows)SuccessFull output at http://107.22.172.223:8877/e1e6cda0e8f0894/output.txt Total script time: 20.43 mins
|
From: Bot.io (Linux)SuccessFull output at http://107.21.233.14:8877/e93b3fade8b7ec3/output.txt Total script time: 23.33 mins
|
Guess CIDFontType0 subtype based on font file contents (issue 5751)
This patch is inspired by PR #4671.
Fixes #5751.
Fixes #4293.
The problem with the PDF file in the issue, is that it claims the font is
CIDFontType0
instead of the correctCIDFontType0C
.The most logical solution would be to check if the font has a
CFF
file, but since the header of those begins with a version number, that seemed complicated in general.In contrast
Type1
fonts have a much simpler structure, see http://partners.adobe.com/public/developer/en/font/T1_SPEC.PDF#page=18, hence adding aisType1file
function seemed easiest.