Allegro.cc - Online Community

Allegro.cc Forums » Programming Questions » Size limits for TrueType fonts?

Credits go to Elias for helping out!
This thread is locked; no one can reply to it. rss feed Print
Size limits for TrueType fonts?
Arthur Kalliokoski
Second in Command
February 2005
avatar

I tried a different free font with allegro4.9/examples/ex_ttf.c and the 12 point font was a mess of little blurry triangles. Increasing the size to 14 points fixed it, but suppose you're trying to use ttf fonts on the user's computer? Is there some variable that lets you know the smallest usable size?

I stuck this font in the paperclip if anyone else wants to fiddle with it.

They all watch too much MSNBC... they get ideas.

Elias
Member #358
May 2000

There is no minimum size, 1x1 pixels is fine. Instead, this is some kind of bug. [edit:] Fixed in SVN.

--
"Either help out or stop whining" - Evert

Arthur Kalliokoski
Second in Command
February 2005
avatar

I downloaded allegro-4.9.9-r11766.tar.gz, then said

tar xf allegro-4.9.9-r11766.tar.gz
cd allegro-4.9
mkdir build
cd build
cmake
make
make install (as root)

and it still does the same thing. Do I need to make clean first for the older 4.9.21?

They all watch too much MSNBC... they get ideas.

Elias
Member #358
May 2000

11766 is an ancient revision, you can get the newest one directly from SourceForge or from here: http://alleg.strangesoft.net/

(edit: 13767 as of right now)

--
"Either help out or stop whining" - Evert

Arthur Kalliokoski
Second in Command
February 2005
avatar

I'm assuming a transposition typo from 13676, trying that now. Thanks!

[EDIT]

Yes! it works!

They all watch too much MSNBC... they get ideas.

Go to: