Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/pconti31/ttf2gfx

TTF2GFX is a standalone desktop application to allow conversion of TrueType fonts to Adafruit's GFX Fonts.
https://github.com/pconti31/ttf2gfx

adafruit-gfx font guislice

Last synced: 2 months ago
JSON representation

TTF2GFX is a standalone desktop application to allow conversion of TrueType fonts to Adafruit's GFX Fonts.

Awesome Lists containing this project

README

        

# ttf2gfx utility

## Brief Overview
The ttf2gfx is a standalone desktop application to allow conversion of TrueType fonts to Adafruit's GFX Font format.

The main advantage of the ttf2gfx utility is that it supports a simply way for users to pluck individual glyphs out of a larger font and assign them slots between 0 and 255.

Now even if a conversion program supports character 128-255 IDE's like Arduino IDE use UTF8
encoding not 8 bit ISO8859 so your characters could be a problem when defining C string literals.

The GUIslice Builder has been modified to detect this and output such literals as hexadecimal escape
strings so you don't have to do the mapping yourself.

The GUIslice Builder also makes to easy to enter characters that would otherwise be difficult
to find and enter into text fields. With release 0.16.b003 and higher you simply need to right
click on a "Text" property and a mini popup will appear allowing you to invoke a CharacterMap
dialog that will show you all of the characters in a font and allow you to select and then copy
them to your Text property.

See:

## Install instructions


The needed version of Java is now custom built and distributed with
the release so you no longer need to deal with its installation.


Download ttf2gfx-{opsys}-{arch}.{release}.{build}.{zip,tgz} using
operating system and cpu architecture (ie., win-x64, linux-x64) from github.
Then untar or unzip into your folder of choice and use either ttf2gfx.bat or
ttf2gfx.sh to run the program.

### LINUX and MACOS install Example

Open a terminal
```
cd $HOME
tar xvzf ttf2gfx-linux-x64-1.0.tar.gz
```
Then enter the new TTFGFX folder and run
```
cd TTFGFX
./ttf2gfx.sh
```

## Usage

After opening the application you begin by pressing the "Browse" button and selecting a TrueType font to use as input.

The first 255 characters will be automatically loaded into slots 0-255.

Note that most fonts have 32 control characters in slots 128 to 159. You will notice such characters displayed as a red box. These slots can be assigned other character codes.

If after loading your font you are satisfied with the resulting character set simply press export button.

Otherwise you can start choosing characters from the available character set and selecting a slot to place the choosen character into the choosen character set.

Once both characters have been selected press "`<<<

FontConverterGFX.java by SQUIX78 greatly increased the speed of implemenation of this utility.

See: