From 93ca4b363b32ebd7a85cc705b5bb790c144e7066 Mon Sep 17 00:00:00 2001 From: Mike Skec Date: Thu, 25 Feb 2021 19:02:35 +1100 Subject: DocumentStyle: fixes for font issues This commit should hopefully fix all the font problems we were having. Instead of using font substitution for emojis, we just instead call QFont::setFamilies. Builds with Qt versions below 5.13 will not have proper emoji support. 0) emojis seem to work fine at least in my environment 1) when selecting theme with font that is not on the system, a respectable default is used instead 2) custom fonts now work great on Windows (seems to be due to the removal of insertSubstitutions, which didn't seem to work in my build) 3) the dodgey 'Kristall XX' stuff was removed, as it seems like we don't need it --- src/documentstyle.hpp | 5 ----- 1 file changed, 5 deletions(-) (limited to 'src/documentstyle.hpp') diff --git a/src/documentstyle.hpp b/src/documentstyle.hpp index cfd4704..7dad9fb 100644 --- a/src/documentstyle.hpp +++ b/src/documentstyle.hpp @@ -24,11 +24,6 @@ struct DocumentStyle Theme theme; - //! This is only a runtime value that is used to create - //! unique font names in `derive()`. - //! This is a terrible hack - QString cookie; - QFont standard_font; QFont h1_font; QFont h2_font; -- cgit v1.2.3