mirror of
https://github.com/kovidgoyal/calibre.git
synced 2025-07-09 03:04:10 -04:00
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:
parent
c74b3fc4b7
commit
4fb58f192e
@ -909,7 +909,7 @@ def merge_cmaps(cmaps):
|
|||||||
|
|
||||||
def fonts_are_identical(fonts):
|
def fonts_are_identical(fonts):
|
||||||
sentinel = object()
|
sentinel = object()
|
||||||
for key in ('ToUnicode', 'Data'):
|
for key in ('ToUnicode', 'Data', 'W', 'W2'):
|
||||||
prev_val = sentinel
|
prev_val = sentinel
|
||||||
for f in fonts:
|
for f in fonts:
|
||||||
val = f[key]
|
val = f[key]
|
||||||
|
Loading…
x
Reference in New Issue
Block a user