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

Author Topic: Is there a way to make the underline thick under the string?  (Read 1653 times)

0 Members and 1 Guest are viewing this topic.

Chiggy_Playz

  • Newbie
  • *
  • Posts: 15
    • View Profile
Is there a way to make the underline thick under the string?
« on: April 15, 2019, 07:50:14 pm »
I have a custom font and i have set a huge size ( 160) and the underline i get is real thin. so is there a way?

FRex

  • Hero Member
  • *****
  • Posts: 1848
  • Back to C++ gamedev with SFML in May 2023
    • View Profile
    • Email
Re: Is there a way to make the underline thick under the string?
« Reply #1 on: April 16, 2019, 09:17:35 am »
They are taken from sf::Font (https://github.com/SFML/SFML/blob/master/src/SFML/Graphics/Text.cpp#L473) via getUnderlineThickness (https://github.com/SFML/SFML/blob/master/src/SFML/Graphics/Font.cpp#L439) so I guess the answer is technically no.
Back to C++ gamedev with SFML in May 2023

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32498
    • View Profile
    • SFML's website
    • Email
Re: Is there a way to make the underline thick under the string?
« Reply #2 on: April 16, 2019, 09:34:32 am »
If you draw text using the same font at the same size in another program (text or image editor), is the underline thickness different?
Laurent Gomila - SFML developer