[vlc-commits] qt: fix glyph icons not beeing rendered properly
Pierre Lamot
git at videolan.org
Tue Jun 18 10:18:12 CEST 2019
vlc | branch: master | Pierre Lamot <pierre at videolabs.io> | Mon Jun 17 20:42:56 2019 +0530| [93fc66e319ebe6a5bfc8ff479715c3f4c08718ae] | committer: Jean-Baptiste Kempf
qt: fix glyph icons not beeing rendered properly
glyph weren't rendered when the drawing is only in (horizontal) negative space
Signed-off-by: Jean-Baptiste Kempf <jb at videolan.org>
> http://git.videolan.org/gitweb.cgi/vlc.git/?a=commit;h=93fc66e319ebe6a5bfc8ff479715c3f4c08718ae
---
modules/gui/qt/pixmaps/makeIconFont.py | 6 ++++--
1 file changed, 4 insertions(+), 2 deletions(-)
diff --git a/modules/gui/qt/pixmaps/makeIconFont.py b/modules/gui/qt/pixmaps/makeIconFont.py
index 8b0b1bafc7..6492ad808c 100755
--- a/modules/gui/qt/pixmaps/makeIconFont.py
+++ b/modules/gui/qt/pixmaps/makeIconFont.py
@@ -95,9 +95,11 @@ def main(model_fd):
c = font.createChar(charcode)
glyph["charcode"] = "\\u{:x}".format(charcode)
c.importOutlines(glyph["path"])
- #scale glyph to fit between 200 (base line) and 800 (x 0.6) and center it horizontally around 0
- c.transform((0.6, 0.0, 0.0, 0.6, -300.0, 200.0))
+ #scale glyph to fit between 200 (base line) and 800 (x 0.6)
+ c.transform((0.6, 0.0, 0.0, 0.6, 200.0, 200.0))
c.vwidth = 1000
+ c.width = 1000
+
font.generate(data["font_file"])
genQml(data)
More information about the vlc-commits
mailing list