Commit 4889915
authored
Use a 'default' instead of a 'decorative' font family (#1174)
On Unix systems, the wxWidgets / wxPython font family `wx.DECORATIVE`
defaults to Impact [^1]. For a more suitable UI font, this is changed to
`wx.DEFAULT`.
On modern macOS and Windows systems, this is expected to have minimal
impact (no pun intended), as `wx.DECORATIVE` already seems to be
equivalent to `wx.DEFAULT` on both platforms [^2][^3].
Even with its original intent, the 'decorative' font family is not a
good match for the UI, as it corresponds to the `fantasy` font family in
CSS, that mostly includes gimmicky fonts like Papyrus or Jokerman [^4].
[^1]: https://github.com/wxWidgets/wxWidgets/blob/18da5b8269706472f6c0fa09dcbae605a477da19/src/unix/fontutil.cpp#L274-L277
[^2]: https://github.com/wxWidgets/wxWidgets/blob/18da5b8269706472f6c0fa09dcbae605a477da19/src/osx/carbon/font.cpp#L218-L220
[^3]: wxWidgets/wxWidgets#24178
[^4]: https://web.archive.org/web/20130126125901/http://www.codestyle.org/css/font-family/sampler-Fantasy.shtml1 parent 679d423 commit 4889915
2 files changed
+3
-3
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
36 | 36 | | |
37 | 37 | | |
38 | 38 | | |
39 | | - | |
| 39 | + | |
40 | 40 | | |
41 | 41 | | |
42 | 42 | | |
43 | 43 | | |
44 | | - | |
| 44 | + | |
45 | 45 | | |
46 | 46 | | |
47 | 47 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
58 | 58 | | |
59 | 59 | | |
60 | 60 | | |
61 | | - | |
| 61 | + | |
62 | 62 | | |
63 | 63 | | |
64 | 64 | | |
| |||
0 commit comments