Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Add Underline support to Label/RichText #4321

Open
2 tasks done
dweymouth opened this issue Oct 16, 2023 · 3 comments
Open
2 tasks done

Add Underline support to Label/RichText #4321

dweymouth opened this issue Oct 16, 2023 · 3 comments

Comments

@dweymouth
Copy link
Contributor

dweymouth commented Oct 16, 2023

Related: #4297

Checklist

  • I have searched the issue tracker for open issues that relate to the same feature, before opening a new one.
  • This issue only relates to a single feature. I will open new issues for any other features.

Is your feature request related to a problem?

It would be nice to support an underlining style for text.

Is it possible to construct a solution with the existing API?

No. Other than drawing a canvas.Rectangle along the text baseline (which is how it could be implemented internally)

Describe the solution you'd like to see.

Underline bool added as a property to fyne.TextStyle

@GaetanBaert
Copy link

Underline seems implemented in #4244 for TextGrid, but not for Text though.

@andydotxyz andydotxyz added this to the "F" release, Late 2024 milestone Jul 10, 2024
@andydotxyz andydotxyz changed the title Add Underline to TextStyle options Add Underline support to Label/RichText Jul 10, 2024
@dtrehas
Copy link

dtrehas commented Nov 2, 2024

You could also add a wavy and strike through line for dictionary checking and text deletion accordingly.

@andydotxyz
Copy link
Member

Please add new requests in a new issue. Underline is a substantially easier implementation than wavy. Additionally strikethrough requires APIs we don't have internally as the position of that line is not trivial.

However also consider that the wavy underline is not part of any standard font style definition so you may actually have to right some font handling code if you're adding a spell checker.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

4 participants