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

Work in progress: New text renderer #428

Merged
merged 116 commits into from
Feb 19, 2024
Merged

Work in progress: New text renderer #428

merged 116 commits into from
Feb 19, 2024

Conversation

raphamorim
Copy link
Owner

@raphamorim raphamorim commented Jan 22, 2024

This code has been mostly ported from swash_demo (GL) into sugarloaf https://github.com/dfrg/swash_demo

Closes #108 #328

Original demo with OpenGL from swash_demo

Screenshot 2024-01-22 at 18 03 43

Demos with sugarloaf:

image

image

TODO

  • Render based on built vertex
  • Correct shaders
  • Integrate with wgpu
  • Add SpanStyle::Color
  • Add support to Strikethrough through Underline
  • Add SpanStyle::BackgroundColor
  • Cursor support
  • Fix columns/rows dimension and report to pty
  • Adjust performance
  • Bold fallback with renderer support
  • Integrate with Rio term
  • Remove custom_decoration
  • Write tests for SugarTree
  • Rects dimensions should be constant through all font dimensions
  • Add support on linux and windows
  • Fix blocks rendering updates (tabs should be updated correctly)
  • Integrate font search with existent
  • Move renderer type selection behind a configuration property

@raphamorim raphamorim force-pushed the rich-text-brush branch 2 times, most recently from 58c7a7d to f3ec548 Compare January 22, 2024 18:47
@raphamorim raphamorim changed the title Work in progress: Rich text brush Work in progress: New text renderer Feb 19, 2024
@raphamorim
Copy link
Owner Author

This PR is getting quite big ha,
ok will proceed with it to main and then continue the missing items in a separate PR.

@raphamorim raphamorim merged commit 7091757 into main Feb 19, 2024
9 checks passed
@raphamorim raphamorim deleted the rich-text-brush branch February 19, 2024 22:56
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

Successfully merging this pull request may close these issues.

Font ligatures feature as an option
2 participants