From 4fb58f192e6da795bb62bab6dae0daad174b5578 Mon Sep 17 00:00:00 2001 From: Kovid Goyal Date: Fri, 27 Nov 2020 21:56:32 +0530 Subject: [PATCH] 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 --- src/calibre/ebooks/pdf/html_writer.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/calibre/ebooks/pdf/html_writer.py b/src/calibre/ebooks/pdf/html_writer.py index be00d1bb3c..de1139ee6c 100644 --- a/src/calibre/ebooks/pdf/html_writer.py +++ b/src/calibre/ebooks/pdf/html_writer.py @@ -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]