8000 GitHub - wezu/sdf_text: Signed Distance Field text rendering for Panda3d
[go: up one dir, main page]
More Web Proxy on the site http://driver.im/
Skip to content

wezu/sdf_text

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

4 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

Signed Distance Field Text for Panda3D

screenshot

To use the SdfText you will need font files generated with egg-mkfont (shipped with the Panda3D SDK) with the -sdf option. For this demo I used some extra padding around the glyphs so that the outline wont bleed over.

egg-mkfont monosb.ttf -sdf -ppu 32 -pm 4 -o mono_font.egg

See the code for hint on how to use it, there are few comments, but most functions are self explanatory (like set_outline_color()).

About

Signed Distance Field text rendering for Panda3d

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

0