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:
parent
cde6ad3967
commit
f006400f05
4 changed files with 386 additions and 6 deletions
17
misc/fonts/ProggyVector-ExtractScript.txt
Normal file
17
misc/fonts/ProggyVector-ExtractScript.txt
Normal 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
|
||||
Loading…
Add table
Add a link
Reference in a new issue