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

Author Topic: Font bugs  (Read 2739 times)

0 Members and 1 Guest are viewing this topic.

Grandmaster B

  • Newbie
  • *
  • Posts: 7
    • View Profile
Font bugs
« on: October 21, 2009, 11:13:26 pm »
Hi,

first all ran fine until i set up the debug build in Visual Studio 2008 where i had a strange error within the OpenGL driver itself at my applications end.
The error occoured after the application and SFML itself was destroyed and right before the process was closed by the OS.

I finally figured out that it has to do with the Font class because when i used another Font instead of the default build-in one everythings went fine. (I did other tests too.)

Without further investigation i guess its a texture memory violation bug.

I was also wondering why i can not create a font with the LoadFromFile() function... the ourDefaultCharset will not be found from the linker because its defined as a private member. I am the only person who had this error?

I hope we can sort this out  :wink:

hacky

  • Newbie
  • *
  • Posts: 26
    • View Profile
Font bugs
« Reply #1 on: October 21, 2009, 11:42:36 pm »
hey, i have the same problem here ;)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Font bugs
« Reply #2 on: October 22, 2009, 08:36:35 am »
Quote
first all ran fine until i set up the debug build in Visual Studio 2008 where i had a strange error within the OpenGL driver itself at my applications end.
The error occoured after the application and SFML itself was destroyed and right before the process was closed by the OS.

I finally figured out that it has to do with the Font class because when i used another Font instead of the default build-in one everythings went fine. (I did other tests too.)

Without further investigation i guess its a texture memory violation bug.

This is the most well known bug in SFML, you'll find many informations about it on this forum ;)

Quote
I was also wondering why i can not create a font with the LoadFromFile() function... the ourDefaultCharset will not be found from the linker because its defined as a private member. I am the only person who had this error?

You didn't define SFML_DYNAMIC (this is explained in the "getting started" tutorial).
Laurent Gomila - SFML developer

Grandmaster B

  • Newbie
  • *
  • Posts: 7
    • View Profile
Font bugs
« Reply #3 on: October 22, 2009, 12:51:18 pm »
Thank you for the quick answer! And sorry for double-posting...

After a while of searching i found this related thread:
http://www.sfml-dev.org/forum/viewtopic.php?t=1386

 

anything