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

Underline and strikethrough #15

Open
1 of 2 tasks
ZiYueCommentary opened this issue Sep 16, 2024 · 2 comments
Open
1 of 2 tasks

Underline and strikethrough #15

ZiYueCommentary opened this issue Sep 16, 2024 · 2 comments
Labels
enhancement New feature or request

Comments

@ZiYueCommentary
Copy link
Owner

ZiYueCommentary commented Sep 16, 2024

Adding underline or strikethrough to glyph when loading fonts.

  • Underline
  • Strikethrough
@ZiYueCommentary ZiYueCommentary added the enhancement New feature or request label Sep 16, 2024
@iiAngel
Copy link

iiAngel commented Sep 19, 2024

Recently saw the comment you left on the PR, thanks for contacting. 😉

My question is does the strikethrough/underline line have to be scaled (relative to text size) or it can be just 1 pixel in width?

@ZiYueCommentary
Copy link
Owner Author

They should being scaled. I found that there is underlinePosition and underlineThickness in TT_Postscript, so underline should be simpler relatively.

Sadly configurations for strikethrough are not available in all font formats. My thought is using underlineThickness for thickness, and render at (median + baseline) / 2.

Strikethrough and underline should be rendered with glyphs together, just like vanillia Blitz3D (maybe?).

Strikethrough can be delayed if it is too difficult. Thank you for collaborating! 😉

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

No branches or pull requests

2 participants