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

Author Topic: Font Aliasing  (Read 12847 times)

0 Members and 1 Guest are viewing this topic.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Font Aliasing
« Reply #15 on: January 04, 2015, 01:54:57 pm »
Quote
So you had to recompile the source?
Yes. Using the mono mode for glyphs cannot be done externally, even with an ugly hack.

Quote
if you mean that it will be added to SFML in the near future.
Don't wait for it. It's not validated, and even if it is, nobody knows when it's going to be implemented.
Laurent Gomila - SFML developer

war_man333

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: Font Aliasing
« Reply #16 on: January 04, 2015, 04:24:07 pm »
Quote
So you had to recompile the source?
Yes. Using the mono mode for glyphs cannot be done externally, even with an ugly hack.

Quote
if you mean that it will be added to SFML in the near future.
Don't wait for it. It's not validated, and even if it is, nobody knows when it's going to be implemented.

Alright.. by any chance can you tell me what you changed specifically, and maybe drop a link to where to a recompile guide...?

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Laurent Gomila - SFML developer

war_man333

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: Font Aliasing
« Reply #18 on: January 04, 2015, 05:51:28 pm »
https://github.com/SFML/SFML/blob/master/src/SFML/Graphics/Font.cpp#L485
FT_LOAD_TARGET_NORMAL -> FT_LOAD_TARGET_MONO

https://github.com/SFML/SFML/blob/master/src/SFML/Graphics/Font.cpp#L503
FT_RENDER_MODE_NORMAL -> FT_RENDER_MODE_MONO

https://github.com/SFML/SFML/blob/master/src/SFML/Graphics/Font.cpp#L716
setSmooth(true) -> setSmooth(false)

http://www.sfml-dev.org/tutorials/2.2/compile-with-cmake.php

The compile part looks a bit complicated :(
I'll save it for when I get too tired of the current font-rendering.
Thanks :)

Ixrec

  • Hero Member
  • *****
  • Posts: 1241
    • View Profile
    • Email
Re: Font Aliasing
« Reply #19 on: January 04, 2015, 06:05:21 pm »
The compile part looks a bit complicated :(

In my personal experience as a newbie, it's actually slightly easier to build SFML myself than trying to use the pre-built libraries, especially on Mac/Linux where the dev environment is much harder to misconfigure.  Your mileage may vary.

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Font Aliasing
« Reply #20 on: January 04, 2015, 07:20:32 pm »
Quote
The compile part looks a bit complicated
Try it, and let us know if anything was actually complicated for you ;)
Laurent Gomila - SFML developer

war_man333

  • Newbie
  • *
  • Posts: 12
    • View Profile
    • Email
Re: Font Aliasing
« Reply #21 on: January 04, 2015, 07:47:53 pm »
I pulled myself together and did it, text looks great now :D
Hopefully it'll be added as an option at some point, otherwise people can look at this thread! :)

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32504
    • View Profile
    • SFML's website
    • Email
Re: Font Aliasing
« Reply #22 on: January 04, 2015, 08:30:57 pm »
Feel free to open a discussion on the "Feature request" forum, with a link to this thread, so that the idea can be discussed with other members of the SFML team, and possibly added to the task list if it's validated.
Laurent Gomila - SFML developer

 

anything