1
0
Fork 0
mirror of https://github.com/ocornut/imgui.git synced 2026-01-09 23:54:20 +00:00

Fonts: added AddFontDefaultVector() with embedded ProggyVector data.

This commit is contained in:
ocornut 2025-08-26 17:54:10 +02:00
parent cde6ad3967
commit f006400f05
4 changed files with 386 additions and 6 deletions

View file

@ -0,0 +1,17 @@
# Usage: fontforge.exe -script ProggyVector-ExtractScript.txt
Open("ProggyVector-Regular.ttf")
SelectMore(0x20,0xFF)
SelectMore(0x20AC) # Euro sign
SelectInvert()
DetachAndRemoveGlyphs()
SelectAll()
RemoveOverlap()
Simplify()
i=0
while (i < 23)
SetTTFName(0x409,i,"")
i=i+1
endloop
SetFontNames(".",".",".",".",".",".")
Generate("ProggyVector-minimal.ttf")
# At this point you can use binary_to_compressed_c.exe -u8 ProggyVector-minimal.ttf proggy_vector_minimal_ttf