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

Author Topic: Default font gone?  (Read 1693 times)

0 Members and 1 Guest are viewing this topic.

Kojay

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Default font gone?
« on: October 21, 2012, 01:00:32 am »
Hello,

First post here so I should start by saying a great thank you to the creators of this pretty neat library. I 've been toying with in since a few months and it's been easy to learn and use and anything I 'd like to do I pretty much always find there's a tool for it.

On to my question then; I seem to have got two different builds of sfml2 (both 32-bit vs2010), with a slight difference in the sf::Text constructor;

Code: [Select]
explicit Text(const String& string, const Font& font = Font::getDefaultFont(), unsigned int characterSize = 30);
vs

Code: [Select]
explicit Text(const String& string, const Font& font, unsigned int characterSize = 30);

ie the second one doesn't provide a default font. Is the second piece the newer version or have I got that wrong? If it is, may I ask the reason for this change? Thanks.

FRex

  • Hero Member
  • *****
  • Posts: 1845
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Default font gone?
« Reply #1 on: October 21, 2012, 01:06:05 am »
*facepalm*
Yes.. default font is gone, it was causing some esoteric problems if used, ie. for me : fullscreen mode always crashed on return 0 in int main() and the error pointed to disassembly..
Back to C++ gamedev with SFML in May 2023

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Default font gone?
« Reply #2 on: October 21, 2012, 09:35:38 am »
Quote
First post here so I should start by
... searching :P
Every important modification of the API has a thread in the "General Discussions" forum.
Laurent Gomila - SFML developer

Kojay

  • Full Member
  • ***
  • Posts: 104
    • View Profile
Re: Default font gone?
« Reply #3 on: October 21, 2012, 12:30:02 pm »
Thanks. I failed to see it for some reason.