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
- Fixed abnormally high atlas height. (#618)
- Fixed support for any values of TexGlyphPadding (not just only 1). (#618)
- Atlas width is now properly based on total surface rather than glyph count (unless overridden with TexDesiredWidth). (#618)
- Fixed atlas builder so missing glyphs won't influence the atlas texture width. (#2233, #618)
- Fixed atlas builder so duplicate glyphs (when merging fonts) won't be included in the rasterized atlas. (#618)
Copy file name to clipboardexpand all lines: misc/freetype/README.md
+13-20
Original file line number
Diff line number
Diff line change
@@ -1,14 +1,14 @@
1
1
# imgui_freetype
2
2
3
-
This is an attempt to replace stb_truetype (the default imgui's font rasterizer) with FreeType.
4
-
Currently not optimal and probably has some limitations or bugs.
5
-
By [Vuhdo](https://github.com/Vuhdo) (Aleksei Skriabin). Improvements by @mikesart. Maintained by @ocornut.
3
+
Build font atlases using FreeType instead of stb_truetype (the default imgui's font rasterizer).
4
+
<br>by @vuhdo, @mikesart, @ocornut.
6
5
7
-
**Usage**
8
-
1. Get latest FreeType binaries or build yourself.
6
+
### Usage
7
+
8
+
1. Get latest FreeType binaries or build yourself (under Windows you may use vcpkg with `vcpkg install freetype`).
9
9
2. Add imgui_freetype.h/cpp alongside your imgui sources.
10
10
3. Include imgui_freetype.h after imgui.h.
11
-
4. Call ImGuiFreeType::BuildFontAtlas() *BEFORE* calling ImFontAtlas::GetTexDataAsRGBA32() or ImFontAtlas::Build() (so normal Build() won't be called):
11
+
4. Call `ImGuiFreeType::BuildFontAtlas()`*BEFORE* calling `ImFontAtlas::GetTexDataAsRGBA32()` or `ImFontAtlas::Build()` (so normal Build() won't be called):
0 commit comments