Welcome, Guest. Please login or register. Did you miss your activation email?

Author Topic: Where does everyone get their .ttf files for text in SFML?  (Read 6180 times)

0 Members and 1 Guest are viewing this topic.

StormWingDelta

  • Sr. Member
  • ****
  • Posts: 365
    • View Profile
Where does everyone get their .ttf files for text in SFML?
« 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?
I have many ideas but need the help of others to find way to make use of them.

texus

  • Hero Member
  • *****
  • Posts: 505
    • View Profile
    • TGUI
    • Email
Where does everyone get their .ttf files for text in SFML?
« Reply #1 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, 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
TGUI: C++ SFML GUI

Mario

  • SFML Team
  • Hero Member
  • *****
  • Posts: 879
    • View Profile
Where does everyone get their .ttf files for text in SFML?
« Reply #2 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.