Coder Social home page Coder Social logo

msdfont's Introduction

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

msdfont's People

Contributors

blatko1 avatar

Stargazers

 avatar  avatar  avatar  avatar

Watchers

 avatar  avatar

Forkers

jajolika alyfreym

Recommend Projects

  • React photo React

    A declarative, efficient, and flexible JavaScript library for building user interfaces.

  • Vue.js photo Vue.js

    🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.

  • Typescript photo Typescript

    TypeScript is a superset of JavaScript that compiles to clean JavaScript output.

  • TensorFlow photo TensorFlow

    An Open Source Machine Learning Framework for Everyone

  • Django photo Django

    The Web framework for perfectionists with deadlines.

  • D3 photo D3

    Bring data to life with SVG, Canvas and HTML. 📊📈🎉

Recommend Topics

  • javascript

    JavaScript (JS) is a lightweight interpreted programming language with first-class functions.

  • web

    Some thing interesting about web. New door for the world.

  • server

    A server is a program made to process requests and deliver data to clients.

  • Machine learning

    Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.

  • Game

    Some thing interesting about game, make everyone happy.

Recommend Org

  • Facebook photo Facebook

    We are working to build community through open source technology. NB: members must have two-factor auth.

  • Microsoft photo Microsoft

    Open source projects and samples from Microsoft.

  • Google photo Google

    Google ❤️ Open Source for everyone.

  • D3 photo D3

    Data-Driven Documents codes.