Skip to content

Multi-channel signed distance field (MSDF) generator for fonts implemented in pure Rust.

License

Notifications You must be signed in to change notification settings

Blatko1/msdfont

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

67 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

msdfont

Build Status License

WIP - school started so less updates from now on :((

Multi-channel signed distance field (MSDF) generator for fonts implemented in pure Rust.

This crate will soon become a public library. Later MSDF and MTSDF will be implemented.

This project wouldn't exist without Chlumsky's msdfgen and other Rust libraries which implement his algorithm.

TODO 📝

  • Add a tool for creating custom shapes
  • Fix: Simple Overlapping Contours Correction - WIP
  • Add a proper example - WIP
  • Improve Overlapping Contours Correction to perfection
  • Add a function for checking intersections for quadratic and cubic functions
  • Add support for Cubic Bézier Curves
  • Implement MSDF generation for fonts
  • Implement MTSDF generation for fonts
  • Add more showcase items
  • rest of the TODOs is in code...
  • Better organization of code
  • Construct a completely user-friendly library

The Algorithm 🖥️

To learn more about the algorithm, read Algorithm.

Output Examples

SDF

Signed Distance Field of '#' character Signed Distance Field of 'A' character Signed Distance Field of 'K' character Signed Distance Field of 'M' character

pseudo-SDF

Pseudo Signed Distance Field of '#' character Pseudo Signed Distance Field of 'A' character Pseudo Signed Distance Field of 'K' character Pseudo Signed Distance Field of 'M' character

About

Multi-channel signed distance field (MSDF) generator for fonts implemented in pure Rust.

Topics

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Languages