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

Author Topic: Font::loadFromFile misses arguments  (Read 1676 times)

0 Members and 1 Guest are viewing this topic.

Pucci

  • Newbie
  • *
  • Posts: 4
    • View Profile
    • Email
Font::loadFromFile misses arguments
« on: March 15, 2022, 08:06:37 pm »
EDIT
My bad, I was reading an old documentation (version 1.6). Adding L before the string makes everything work fine.
I would delete this post, but I get an error message: "You cannot delete your own topics in this board. Check to make sure this topic wasn't just moved to another board."
/EDIT


Hi,
I was trying to print the character θ (theta, unicode 03B8) on a window. I'm using the font arial which should have it, but I couldn't print it. So I checked the tutorials https://www.sfml-dev.org/tutorials/1.6/graphics-fonts.php#loading-a-font which say that loadFromFile has two other parameter besides the path: character size and charset to generate.
However in my case the function loadFromFile has 1 parameter only.

So, now:
1. Am I missing something?
2. Didn't I install SFML correctry? (everything else works perfectly)
3. Is the documentation wrong?
4. Is it a bug from recent versions?
5. And is there another way to print the character theta?

Thanks
« Last Edit: March 15, 2022, 08:14:04 pm by Pucci »