You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: imgui-binding/src/main/java/imgui/ImFontAtlas.java
+8-8Lines changed: 8 additions & 8 deletions
Original file line number
Diff line number
Diff line change
@@ -18,7 +18,7 @@
18
18
* - If you pass a 'glyph_ranges' array to AddFont*** functions, you need to make sure that your array persist up until the
19
19
* atlas is build (when calling GetTexData*** or Build()). We only copy the pointer, not the data.
20
20
* - Important: By default, AddFontFromMemoryTTF() takes ownership of the data. Even though we are not writing to it, we will free the pointer on destruction.
21
-
* You can set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
21
+
* You can set font_cfg.FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed,
22
22
* - Even though many functions are suffixed with "TTF", OTF data is supported just as well.
23
23
* - This is an old API and it is currently awkward for those and and various other reasons! We will address them in the future!
24
24
*/
@@ -124,7 +124,7 @@ public ImFont addFontFromFileTTF(final String filename, final float sizePixels,
124
124
125
125
/**
126
126
* Note: Transfer ownership of 'ttf_data' to ImFontAtlas! Will be deleted after destruction of the atlas.
127
-
* Set font_cfg->FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed.
127
+
* Set font_cfg.FontDataOwnedByAtlas=false to keep ownership of your data and it won't be freed.
0 commit comments