Coder Social home page Coder Social logo

sudofont's Introduction

SudoFont makes it easy to generate bitmap fonts from any Windows font.

The intent is to make it as easy as possible to add low-memory, fast-loading, compact fonts to any app or game.

Features:

  • Packs the characters into a power-of-two image that is as close to square as possible.

  • Includes C# source code to load, layout, and display the bitmap font at runtime, assuming you're rendering them in a graphics package like DirectX or OpenGL.

  • SudoFont will access both the .NET font APIs (in DotNetFontSystem.cs) as well as the older Win32 APIs (in Win32FontSystem.cs). The latter is necessary to access certain fonts.

  • Includes kerning information (and sample code to use it).

  • Supports text rendering hints (ClearType, Antialias, etc).

  • Can render the text with gradients. (Future work is to allow any filters on the text).

  • Hover preview: Renders a preview of the current font to the side of the main window so you can hover it over your software to see how it looks without exporting.

Map:

  • DotNetFontSystem.cs and Win32FontSystem.cs: code to access Windows fonts themselves (In the program, use the Font System menu to alternate between them).

  • RuntimeFont class: code to load a font at runtime

  • FontLayout class: code to layout characters

sudofont's People

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.