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 497 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: 1843
    • View Profile
    • My GitHub Page
    • 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.
ZipSavings, script to count rar/7z/zip savings: https://goo.gl/vvBj5M
LuaConsole: https://goo.gl/X4kRUk
FoxRaycaster: https://goo.gl/27nVS8
Small Games - Heart, Routing and Snek: https://goo.gl/15ZGWE https://goo.gl/k5gwWD https://goo.gl/4nKPnT
Botes - a notes app in Pascal: https://goo.gl/bzTqsi

Laurent

  • Administrator
  • Hero Member
  • *****
  • Posts: 32493
    • 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

 

anything