PDF Output: Fix a regression in the previous release that broke text rendering for some fonts due to a change in how Chromium embeds fonts in PDF files. Fixes #1905967 [Printing to PDF is unreadable](https://bugs.launchpad.net/calibre/+bug/1905967) [Printing to PDF is unreadable](https://bugs.launchpad.net/calibre/+bug/1905967)

Underlying bug causing this:
https://bugreports.qt.io/browse/QTBUG-88976
This commit is contained in:
Kovid Goyal 2020-11-27 21:56:32 +05:30
parent c74b3fc4b7
commit 4fb58f192e
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C

View File

@ -909,7 +909,7 @@ def merge_cmaps(cmaps):
def fonts_are_identical(fonts):
sentinel = object()
for key in ('ToUnicode', 'Data'):
for key in ('ToUnicode', 'Data', 'W', 'W2'):
prev_val = sentinel
for f in fonts:
val = f[key]