guides:createafont
Differences
This shows you the differences between two versions of the page.
| Both sides previous revisionPrevious revisionNext revision | Previous revision | ||
| guides:createafont [2023/10/05 01:53] – discord | guides:createafont [2023/10/10 23:54] (current) – [Recipe] discord | ||
|---|---|---|---|
| Line 1: | Line 1: | ||
| ====== Bake A Custom SDF Font! ====== | ====== Bake A Custom SDF Font! ====== | ||
| - | So, you want to make a custom font atlas and | + | So, you want to make a custom font atlas for the Vulkan renderer! Here's my artisanal recipe, passed down through generations. |
| ===== Ingredients ===== | ===== Ingredients ===== | ||
| Line 11: | Line 11: | ||
| * A C++ compiler | * A C++ compiler | ||
| * Cmake | * Cmake | ||
| - | * tinyxml2 (install using your package manager, it's '' | + | * tinyxml2 (install using your package manager, it's '' |
| ===== Recipe ===== | ===== Recipe ===== | ||
| Line 22: | Line 22: | ||
| make & cd bin # build and go to the output folder | make & cd bin # build and go to the output folder | ||
| </ | </ | ||
| - | - Generate font files! | + | - Generate font files! <file bash> |
| # the magic command | # the magic command | ||
| ./ | ./ | ||
| </ | </ | ||
| - Copy the generated '' | - Copy the generated '' | ||
| - | - Edit line this line in '' | + | - Edit line the lines that look like this line in '' |
| # replace the " | # replace the " | ||
| - | variable font [font load " | + | [...] {font " |
| + | </ | ||
| + | - To use it in programs, do so: <file tcl> | ||
| + | # using a wish | ||
| + | Wish $this is labelled " | ||
| + | # using display | ||
| + | Display:: | ||
| </ | </ | ||
guides/createafont.1696470798.txt.gz · Last modified: by discord
