Welcome,
Guest
. Please
login
or
register
. Did you miss your
activation email?
French forum
Home
Help
Search
Login
Register
SFML community forums
»
Help
»
Graphics
»
Is there a way to make the underline thick under the string?
Print
Pages: [
1
]
Author
Topic: Is there a way to make the underline thick under the string? (Read 1657 times)
0 Members and 1 Guest are viewing this topic.
Chiggy_Playz
Newbie
Posts: 15
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?
Logged
FRex
Hero Member
Posts: 1848
Back to C++ gamedev with SFML in May 2023
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.
Logged
Back to C++ gamedev with SFML in May 2023
Laurent
Administrator
Hero Member
Posts: 32498
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?
Logged
Laurent Gomila - SFML developer
Print
Pages: [
1
]
SFML community forums
»
Help
»
Graphics
»
Is there a way to make the underline thick under the string?