Add link to chromium bug for hyphenate char on macos

This commit is contained in:
Kovid Goyal 2022-01-08 08:36:58 +05:30
parent f9fb012322
commit 831a67d127
No known key found for this signature in database
GPG Key ID: 06BC317B515ACE7C
2 changed files with 2 additions and 0 deletions

View File

@ -35,6 +35,7 @@
// is U+2010 but that does not render with the default Times font on macOS as of Monterey // is U+2010 but that does not render with the default Times font on macOS as of Monterey
// and Qt 15.5 See https://bugs.launchpad.net/bugs/1951467 and can be easily reproduced // and Qt 15.5 See https://bugs.launchpad.net/bugs/1951467 and can be easily reproduced
// by converting a plain text file with the --pdf-hyphenate option // by converting a plain text file with the --pdf-hyphenate option
// https://bugs.chromium.org/p/chromium/issues/detail?id=1267606 (fix released Feb 1 2022 v98)
// See also settings.pyj // See also settings.pyj
if (HYPHEN_CHAR) { if (HYPHEN_CHAR) {
for (const elem of document.getElementsByTagName('*')) { for (const elem of document.getElementsByTagName('*')) {

View File

@ -79,6 +79,7 @@ def apply_colors(is_content_popup):
# is U+2010 but that does not render with the default Times font on macOS as of Monterey # is U+2010 but that does not render with the default Times font on macOS as of Monterey
# and Qt 15.5 See https://bugs.launchpad.net/bugs/1951467 and can be easily reproduced # and Qt 15.5 See https://bugs.launchpad.net/bugs/1951467 and can be easily reproduced
# by converting a plain text file with the --pdf-hyphenate option # by converting a plain text file with the --pdf-hyphenate option
# https://bugs.chromium.org/p/chromium/issues/detail?id=1267606 (fix released Feb 1 2022 v98)
# See also pdf-preprint.js # See also pdf-preprint.js
text += '\n* { -webkit-hyphenate-character: "-" !important }\n' text += '\n* { -webkit-hyphenate-character: "-" !important }\n'
if opts.override_book_colors is not 'never': if opts.override_book_colors is not 'never':