From 934aaf80c6985c91f706d4cf47bcc46d2b5ea535 Mon Sep 17 00:00:00 2001 From: Florian Bruhin Date: Thu, 7 Aug 2014 07:39:47 +0200 Subject: [PATCH] conftypes: Set pixel size correctly in QtFont. --- qutebrowser/config/conftypes.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/qutebrowser/config/conftypes.py b/qutebrowser/config/conftypes.py index 8dee324ce..f0441ae85 100644 --- a/qutebrowser/config/conftypes.py +++ b/qutebrowser/config/conftypes.py @@ -705,7 +705,7 @@ class QtFont(Font): if size.lower().endswith('pt'): font.setPointSizeF(float(size[:-2])) elif size.lower().endswith('px'): - font.setPointSizeF(int(size[:-2])) + font.setPixelSize(int(size[:-2])) # The Qt CSS parser handles " and ' before passing the string to # QFont.setFamily. We could do proper CSS-like parsing here, but since # hopefully nobody will ever have a font with quotes in the family (if