UI: Correction to Weight of 3D Viewport Overlay Text #119808

Merged
Harley Acheson merged 1 commits from Harley/blender:View3DOverlayWeight into main 2024-03-22 21:29:04 +01:00

1 Commits

Author SHA1 Message Date
Harley Acheson f8ade3c9b7 UI: Correction to Weight of 3D Viewport Overlay Text
buildbot/vexp-code-patch-lint Build done. Details
buildbot/vexp-code-patch-linux-x86_64 Build done. Details
buildbot/vexp-code-patch-windows-amd64 Build done. Details
buildbot/vexp-code-patch-darwin-arm64 Build done. Details
buildbot/vexp-code-patch-darwin-x86_64 Build done. Details
buildbot/vexp-code-patch-coordinator Build done. Details
Currently the overlay text, like stats for example, are drawing with
the widget_label font style size but using widget's weight. This is
just because UI_fontstyle_set is not called. Without this call we can
get a jiggling of the overlay text if these two styles differ in
weight. This PR also makes an (unnoticeable) correction to the font id
used in fontstyle_set_ex. uiFontStyle's uifont_id is not always the
same id as regular font ids, but here they are confused.
2024-03-22 13:10:15 -07:00