Commit graph

29 commits

Author SHA1 Message Date
John Preston
d07bee87cd Use LOG/DEBUG_LOG from lib_base. 2021-04-20 16:39:27 +04:00
Ilya Fedin
03f8ab361f Avoid multiple QString::arg usage as suggested by clazy 2021-03-13 19:06:29 +03:00
Ilya Fedin
2039c59293 Apply autofixes from clazy 2021-03-13 11:20:51 +03:00
John Preston
d4c99701b5 Fix deprecation warnings on Qt 5.15.1. 2020-11-04 18:44:45 +03:00
Ilya Fedin
f749fc7349 Use Q_OS_UNIX instead of Q_OS_LINUX since linux-specific code can be used also on *BSD/Haiku 2020-06-13 16:08:39 +04:00
John Preston
05d1ee3796 Allow overriding fonts by (family,style). 2020-06-05 19:42:07 +04:00
Ilya Fedin
06d4cd2dab Set style name always
For some reason with kde platformtheme plugin DemiBold doesn't work

Also use italic version of semibold font when needed
2020-06-01 18:32:44 +04:00
Ilya Fedin
d05d9b214d Fix bolding with packaged fonts 2020-05-12 09:41:29 +04:00
Ilya Fedin
95b49979fb Remove unneeded Segoe UI fallback struct and add Vazir file struct 2020-05-12 09:41:29 +04:00
John Preston
8a1aeb22d8 Use Vazir font on macOS too. 2020-05-10 17:10:21 +04:00
John Preston
c9120970c2 Try all being Semibold -> Bold -> Regular. 2020-05-08 18:51:15 +04:00
Ilya Fedin
88845bfec9 Choose actual semibold style for system fonts 2020-05-08 12:41:40 +04:00
Ilya Fedin
f987f596f1 Add Vazir font for Persian glyphs 2020-05-08 12:41:40 +04:00
John Preston
0ef9558269 Treat Semibold as Regular. 2020-05-08 12:11:16 +04:00
John Preston
8660904bc8 Add a check for monospace font on Linux. 2020-05-05 15:48:03 +04:00
Ilya Fedin
06eadc0caf Patch semibold font as bold to fallback to bold fonts for CJK languages 2020-05-05 14:14:55 +04:00
John Preston
8e568a4f15 Remove font substitutions now that they're in Qt. 2020-05-01 19:59:04 +04:00
Ilya Fedin
1647b0b76a Fix setWeight order 2020-04-28 12:15:51 +04:00
John Preston
2cb10e1d13 Use default QApplication::font. 2020-04-15 18:05:28 +04:00
John Preston
3090ba7721 Use predefined monospace fonts on macOS. 2020-04-13 17:12:46 +04:00
ilya-fedin
74889b8c21 Better algorithm for font choosing 2020-04-13 11:31:34 +04:00
John Preston
246aa24530 Add callbacks for fonts init. 2020-03-30 12:16:01 +04:00
John Preston
9cea7f117e Fix rendering of 'Mathematical Alphanumeric Symbols' on macOS. 2020-02-04 12:23:19 +04:00
Ilya Fedin
f87b96e5b7 Use DemiBold when using packaged fonts 2020-01-23 10:07:57 +03:00
Ilya Fedin
35176fd02a Add macro for disabling fonts bundling 2020-01-21 14:57:44 +03:00
Ilya Fedin
777cf61626 Don't load linux.qrc when DESKTOP_APP_USE_PACKAGED is defined 2020-01-17 17:46:45 +03:00
John Preston
e824bb2f6b Use custom named fonts. 2019-10-13 10:44:45 +04:00
John Preston
54f84cdb8d Fix resources and build on Xcode. 2019-10-04 23:59:35 +03:00
John Preston
85c83003ca Initial commit. 2019-09-17 17:48:58 +03:00