SFML community forums

Help => General => Topic started by: StormWingDelta on February 04, 2012, 07:20:48 pm

Title: Where does everyone get their .ttf files for text in SFML?
Post by: StormWingDelta on February 04, 2012, 07:20:48 pm
Just wondering since I've been wanting to test out the Text codes SFML has but they seem to need a type of file I'm a bit clueless about.   Anyone want to help?
Title: Where does everyone get their .ttf files for text in SFML?
Post by: texus on February 04, 2012, 07:46:17 pm
Just google "download tff font" and you will find tons of those files.

You don't really need to load it from a file: you can just use the default font.
Take a look at the tutorial (http://www.sfml-dev.org/tutorials/1.6/graphics-fonts.php), it mentions the GetDefaultFont function.
If you use the default font then read this first: http://www.sfml-dev.org/forum/viewtopic.php?t=4741
Title: Where does everyone get their .ttf files for text in SFML?
Post by: Mario on February 05, 2012, 12:30:30 pm
Under Windows you can find the TTF files for the fonts installed on the system under C:\Windows\Fonts. Just keep in mind that not all of them use the TTF format and you might not be allowed to deploy them with your program.