Implement SDF fonts. (#24)

* Initial SDF font generation work.

* Text now correctly displaying with proper spacing.

* Fix untextured draws, implement custom rectangles.

* Fix regular image display.

* Slightly refactor ImGui rendering.

* Implement outlines.

* Implement bevel.

* Create host device after loading the module if the installer wasn't run.

* Move ImGui files to its own folder.

* Fix outline sizes.

* Fix default ImGui font and font scales.

* Update font atlas files.
This commit is contained in:
Skyth (Asilkan) 2024-12-11 23:30:19 +03:00 committed by GitHub
parent 632cf2619e
commit cdcacff53b
No known key found for this signature in database
GPG key ID: B5690EEEBB952194
23 changed files with 536 additions and 154 deletions

View file

@ -1,4 +1,10 @@
set(MSDF_ATLAS_BUILD_STANDALONE OFF)
set(MSDF_ATLAS_USE_SKIA OFF)
set(MSDF_ATLAS_NO_ARTERY_FONT ON)
set(MSDFGEN_DISABLE_PNG ON)
add_subdirectory(${SWA_THIRDPARTY_ROOT}/PowerRecomp)
add_subdirectory(${SWA_THIRDPARTY_ROOT}/ShaderRecomp)
add_subdirectory(${SWA_THIRDPARTY_ROOT}/o1heap)
add_subdirectory(${SWA_THIRDPARTY_ROOT}/fshasher)
add_subdirectory(${SWA_THIRDPARTY_ROOT}/msdf-atlas-gen)

1
thirdparty/msdf-atlas-gen vendored Submodule

@ -0,0 +1 @@
Subproject commit 7e8d34645a67c6e4def5d281f7adec1c2501dc49