go-to-noto-again (#4309)

* renderer: update font handling and add new font support
- Added support for multiple NotoSans fonts including Arabic, Thai, and CJK.
- Refactored font loading logic to use FontStack for better management.
- Removed deprecated NotoSansJP font and updated font paths in CMake.

* optimize atlas size

---------

Co-authored-by: w1naenator <valdis.bogdans@hotmail.com>
This commit is contained in:
Valdis Bogdāns
2026-04-23 18:52:04 +03:00
committed by GitHub
parent f24ad8568e
commit e455a2f41a
15 changed files with 253 additions and 42 deletions

View File

@@ -116,9 +116,33 @@ SPDX-FileCopyrightText = "2017-2024 Bartosz Taudul <wolf@nereid.pl>"
SPDX-License-Identifier = "BSD-3-Clause"
[[annotations]]
path = "src/imgui/renderer/fonts/NotoSansJP-Regular.ttf"
path = "src/imgui/renderer/fonts/NotoSans-Regular.ttf"
precedence = "aggregate"
SPDX-FileCopyrightText = "2012 Google Inc. All Rights Reserved."
SPDX-FileCopyrightText = "Copyright 2022 The Noto Project Authors (https://github.com/notofonts/latin-greek-cyrillic)"
SPDX-License-Identifier = "OFL-1.1"
[[annotations]]
path = "src/imgui/renderer/fonts/NotoSansArabic-Regular.ttf"
precedence = "aggregate"
SPDX-FileCopyrightText = "Copyright 2015-2021 Google LLC. All Rights Reserved."
SPDX-License-Identifier = "OFL-1.1"
[[annotations]]
path = "src/imgui/renderer/fonts/NotoSansThai-Regular.ttf"
precedence = "aggregate"
SPDX-FileCopyrightText = "Copyright 2016 Google Inc. All Rights Reserved."
SPDX-License-Identifier = "OFL-1.1"
[[annotations]]
path = "src/imgui/renderer/fonts/NotoSansSymbols2-Regular.ttf"
precedence = "aggregate"
SPDX-FileCopyrightText = "Copyright 2017 Google Inc. All Rights Reserved."
SPDX-License-Identifier = "OFL-1.1"
[[annotations]]
path = "src/imgui/renderer/fonts/NotoSansCJK-Regular.ttc"
precedence = "aggregate"
SPDX-FileCopyrightText = "Copyright 2014-2021 Adobe (http://www.adobe.com/)."
SPDX-License-Identifier = "OFL-1.1"
[[annotations]]