Code Monkey home page Code Monkey logo

fontcvt's Introduction

fontcvt

This is just a simple font converter.
It converts ttf (and other standard) fonts in a format suitable to be used by an MCU GUI.
It provides glyph bitmaps with antialiasing upto 8 bpp and kerning informations. If you don't know about font kerning i suggest you to google for it. It can realy improve the beauty of the text on your emebedded divice.

compile

This program rely on the FreeType 2 library https://www.freetype.org/. So you have to install it.
On ubuntu:

sudo apt install libfreetype6-dev
git clone https://github.com/singds/fontcvt.git
cd fontcvt
make

After that you have a ../fontcvt/build directory with the executable fontcvt.

usage

To see all the available options run:

./build/fontcvt -h

The program produces the output files on the cwd. So you need to cd on the directory you want the output and from there run fontcvt. This is an example supposing you have copied the arial.ttf font inside the fontcvt directory:

./build/fontcvt arial.ttf  -b4 -s14 -r32-255 -o arial

This will produce the files arial.c arial.h.

fontcvt's People

Contributors

singds avatar

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.