Skip to content
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.

Commit f94a5f0

Browse files
authoredFeb 13, 2025
Docs: Update doc about plutosvg (ocornut#8395)
1 parent b78cc37 commit f94a5f0

File tree

2 files changed

+5
-14
lines changed

2 files changed

+5
-14
lines changed
 

‎imconfig.h

+1-2
Original file line numberDiff line numberDiff line change
@@ -88,8 +88,7 @@
8888

8989
//---- Use FreeType + plutosvg or lunasvg to render OpenType SVG fonts (SVGinOT)
9090
// Only works in combination with IMGUI_ENABLE_FREETYPE.
91-
// - lunasvg is currently easier to acquire/install, as e.g. it is part of vcpkg.
92-
// - plutosvg will support more fonts and may load them faster. It currently requires to be built manually but it is fairly easy. See misc/freetype/README for instructions.
91+
// - plutosvg is currently easier to install, as e.g. it is part of vcpkg. It will support more fonts and may load them faster. See misc/freetype/README for instructions.
9392
// - Both require headers to be available in the include path + program to be linked with the library code (not provided).
9493
// - (note: lunasvg implementation is based on Freetype's rsvg-port.c which is licensed under CeCILL-C Free Software License Agreement)
9594
//#define IMGUI_ENABLE_FREETYPE_PLUTOSVG

‎misc/freetype/README.md

+4-12
Original file line numberDiff line numberDiff line change
@@ -48,15 +48,7 @@ Requires: [lunasvg](https://github.com/sammycage/lunasvg) v2.3.2 and above
4848

4949
#### Using plutosvg (and plutovg)
5050
- Add `#define IMGUI_ENABLE_FREETYPE_PLUTOSVG` in your `imconfig.h`.
51-
- Compile and link with plutosvg *and* plutovg (which is required by plutosvg)
52-
53-
_Compilation hints for plutovg_
54-
- Compile all source files in `plutovg/source/*.c`
55-
- Add include directory: `plutovg/include` + `plutovg/stb`
56-
57-
_Compilation hints for plutosvg_
58-
- Compile `plutosvg/source/plutosvg.c`
59-
- Add include directory: `plutosvg/source`
60-
- Add define: `PLUTOSVG_HAS_FREETYPE`
61-
- Link with: plutovg, freetype
62-
51+
- Get latest plutosvg binaries or build yourself. Under Windows you may use vcpkg with: `vcpkg install plutosvg --triplet=x64-windows`. Alternatively, if you build imgui from vcpkg, you just need to enable the plutosvg feature: `vcpkg install imgui[plutosvg] --triplet=x64-windows`
52+
- If you prefer to build plutosvg manually:
53+
- Compilation hints for plutovg: Compile all source files in `plutovg/source/*.c` + Add include directory: `plutovg/include` + `plutovg/stb`
54+
- Compilation hints for plutosvg: Compile `plutosvg/source/plutosvg.c` + Add include directory: `plutosvg/source` + Add define: `PLUTOSVG_HAS_FREETYPE` + Link with: plutovg, freetype

0 commit comments

Comments
 (0)
Please sign in to comment.