summaryrefslogtreecommitdiff
diff options
context:
space:
mode:
authorFlorian Bruhin <me@the-compiler.org>2020-11-18 09:59:07 +0100
committerFlorian Bruhin <me@the-compiler.org>2020-11-24 16:49:05 +0100
commit56b1d21d66204fb1c2507c6819ae731aab463f00 (patch)
tree1553af4b8603c094fb83c6d06657f5bb84aaf3e2
parentfeff463bf146ea173f629e4b97ff09b540abe348 (diff)
downloadqutebrowser-56b1d21d66204fb1c2507c6819ae731aab463f00.tar.gz
qutebrowser-56b1d21d66204fb1c2507c6819ae731aab463f00.zip
Fix font quoting for font family names with a dot
With macOS Big Sur (11.0), the default monospace font family we get from QFontDatabase is ".AppleSystemUIFontMonospaced". The leading dot in there leads to a stylesheet like: font: 10pt .AppleSystemUIFontMonospaced; Which fails to parse, thus messing up styling entirely on Big Sur. Fixes #5663
-rw-r--r--qutebrowser/config/configutils.py2
1 files changed, 1 insertions, 1 deletions
diff --git a/qutebrowser/config/configutils.py b/qutebrowser/config/configutils.py
index 7c2d4ee8c..1d98db3e7 100644
--- a/qutebrowser/config/configutils.py
+++ b/qutebrowser/config/configutils.py
@@ -288,7 +288,7 @@ class FontFamilies:
def _quoted_families(self) -> Iterator[str]:
for f in self._families:
- needs_quoting = any(c in f for c in ', ')
+ needs_quoting = any(c in f for c in '., ')
yield '"{}"'.format(f) if needs_quoting else f
def to_str(self, *, quote: bool = True) -> str: