How do I convert TTF fonts to anti-aliased bitmap fonts?

General FreeBASIC programming questions.
Post Reply
lassar
Posts: 306
Joined: Jan 17, 2006 1:35

How do I convert TTF fonts to anti-aliased bitmap fonts?

Post by lassar »

How do I to convert TTF font to ASCII bitmap font. (16 pixels wide by 32 pixels high,
variable width, and anti-alias) ?

Does anyone know of any programs to do this?
counting_pine
Site Admin
Posts: 6323
Joined: Jul 05, 2005 17:32
Location: Manchester, Lancs

Re: How do I convert TTF fonts to anti-aliased bitmap fonts?

Post by counting_pine »

It looks like a few attempts have been made to convert TrueType fonts to ones that can specifically be printed with FB's Draw String.
I've dug up a couple of past forum threads:
https://freebasic.net/forum/viewtopic.php?f=2&t=23343
https://freebasic.net/forum/viewtopic.php?f=3&t=21916
Are they any help?
grindstone
Posts: 862
Joined: May 05, 2015 5:35
Location: Germany

Re: How do I convert TTF fonts to anti-aliased bitmap fonts?

Post by grindstone »

In all modesty:
https://www.freebasic-portal.de/code-be ... s-307.html
(Source code is commented in english)
lizard
Posts: 440
Joined: Oct 17, 2017 11:35
Location: Germany

Re: How do I convert TTF fonts to anti-aliased bitmap fonts?

Post by lizard »

Works here on Mint if in FileRequester.bas

#include once "SimpleToggle.bas"

the "t" is changed to uppercase. Thanks, nice program, used it before.
Post Reply