cancel
Showing results for 
Search instead for 
Did you mean: 

Underline in TGFX text

KRasm.2
Associate II

Hi,

Is underline of text supported by TGFX or will that be part of the ttf-files in Typographies?

The goal is a text like this: "Press SETTINGS now."

 

This discussion is locked. Please start a new topic to ask your question.
1 ACCEPTED SOLUTION

Accepted Solutions
JohanAstrup
ST Employee

Hello @KRasm.2.

To underline text, you need to include an underline-specific font in your project. The same applies if you want e.g. italic text.

However, since we are specifically talking about underlining here, it is also possible to implement this manually. One way is to use a thin box with the same color as the text area and place it along the bottom edge of the text area widget.

Best regards,
Johan

View solution in original post

1 REPLY 1
JohanAstrup
ST Employee

Hello @KRasm.2.

To underline text, you need to include an underline-specific font in your project. The same applies if you want e.g. italic text.

However, since we are specifically talking about underlining here, it is also possible to implement this manually. One way is to use a thin box with the same color as the text area and place it along the bottom edge of the text area widget.

Best regards,
Johan