Sorry your browser is not supported!

You are using an outdated browser that does not support modern web technologies, in order to use this site please update to a new browser.

Browsers supported include Chrome, FireFox, Safari, Opera, Internet Explorer 10+ or Microsoft Edge.

AppGameKit Classic Chat / ANN: ttf2agk - converts truetype fonts to AGK2 format bitmap font

Author
Message
paulrobson
10
Years of Service
User Offline
Joined: 22nd Nov 2014
Location: Norfolk, England
Posted: 4th Feb 2015 18:35
ttf2agk is a script which takes the fonts you have downloaded (or installed) and converts them to .png/subimage.txt format directly. It supports variable border width, drop shadows, and radial, horizontal and vertical 'colour tweening'.

It is a python script/library and can be used programmatically, with batch/shell files or as a command line tool. The command line tool uses a CSS-like styling command set, e.g.



Creates an Arial based font coloured orange to black, top to bottom, with a 1% wide blue border and a cyan dropshadow offset at 5%.

Requires Python and Pillow (Python's Graphics Library) to work. Demos and examples are included (only one file from the repository is actually required for it to work).

It is free and open source.
unlikely
12
Years of Service
User Offline
Joined: 5th Mar 2012
Location: Ohio, USA
Posted: 4th Feb 2015 23:27
Good work on this, 'tis a nice tool. Thanks!

Using AppGameKit v2 T1 + T2
Systems: Primary: Mac OS X 10.10
Secondary: Windows 7
BatVink
Moderator
21
Years of Service
User Offline
Joined: 4th Apr 2003
Location: Gods own County, UK
Posted: 5th Feb 2015 09:53
Appreciated, you should add it here.

Quidquid latine dictum sit, altum sonatur

Login to post a reply

Server time is: 2024-11-25 16:42:43
Your offset time is: 2024-11-25 16:42:43