diff options
| author | Mike Skec <skec@protonmail.ch> | 2021-02-25 19:02:35 +1100 |
|---|---|---|
| committer | Felix Queißner <felix@ib-queissner.de> | 2021-02-25 09:43:47 +0100 |
| commit | 93ca4b363b32ebd7a85cc705b5bb790c144e7066 (patch) | |
| tree | 9da0f9a1cb15ba30375ac81321251587750c0ab6 /src/documentstyle.hpp | |
| parent | a0970f024d52ece837e3448e4cb2d9466c447c74 (diff) | |
| download | kristall-93ca4b363b32ebd7a85cc705b5bb790c144e7066.tar.gz | |
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
Diffstat (limited to 'src/documentstyle.hpp')
| -rw-r--r-- | src/documentstyle.hpp | 5 |
1 files changed, 0 insertions, 5 deletions
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; |
