We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent 2627287 commit 62472a5Copy full SHA for 62472a5
imgui-core/src/main/kotlin/imgui/font/FontAtlas.kt
@@ -532,7 +532,7 @@ class FontAtlas {
532
533
assert(configData.isNotEmpty())
534
535
- buildRegisterDefaultCustomRects()
+ buildInit()
536
537
// Clear atlas
538
texId = 0
@@ -784,7 +784,8 @@ class FontAtlas {
784
return true
785
}
786
787
- fun buildRegisterDefaultCustomRects() {
+ /** Register default custom rectangles (this is called/shared by both the stb_truetype and the FreeType builder) */
788
+ fun buildInit() {
789
if (customRectIds[0] >= 0) return
790
customRectIds[0] = when {
791
flags hasnt FontAtlasFlag.NoMouseCursors -> addCustomRectRegular(DefaultTexData.id, DefaultTexData.wHalf * 2 + 1, DefaultTexData.h)
0 commit comments