Skip to content

Use new modern system font as default on Windows

Alvin Wong requested to merge alvinwong/krita:alvin/ui-font into master

Use the new system font introduced since Windows Vista, which is Segoe UI on English locale, MS JhengHei UI on Trad. Chinese, MS YaHei UI on Simp. Chinese, Meiryo UI on Japanese, etc.

The code is referenced from Qt.

This also moved the code around a bit.

See also: https://bugreports.qt.io/browse/QTBUG-58610

BUG: 427733

Test Plan

Check the default UI font applied on Windows to be Segoe UI instead of Tahoma, or whichever applicable for your system locale.

Formalities Checklist

  • I confirmed this builds.
  • I confirmed Krita ran and the relevant functions work.
  • n/a I tested the relevant unit tests and can confirm they are not broken. (If not possible, don't hesitate to ask for help!)
  • I made sure my commits build individually and have good descriptions as per KDE guidelines.
  • I made sure my code conforms to the standards set in the HACKING file.
  • I can confirm the code is licensed and attributed appropriately, and that unattributed code is mine, as per KDE Licensing Policy.

Merge request reports