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

Cosmic Text example #306

Open
nicoburns opened this issue Apr 12, 2023 · 4 comments · May be fixed by #739
Open

Cosmic Text example #306

nicoburns opened this issue Apr 12, 2023 · 4 comments · May be fixed by #739
Labels
documentation Improvements or additions to documentation

Comments

@nicoburns
Copy link
Contributor

It would be great to have an example of using cosmic-text with Vello. This would be super-helpful for Blitz to get high quality text layout / rendering running on top Vello Long term hopfully parley will also be an option, but it seems that at it isn't ready yet in that it is lacking both documentation and a crates.io release so for the time being cosmic-text is looking like the best option.

@dfrg I believe you had this working. Would you be willing to publish it as an example?

@nicoburns nicoburns added the documentation Improvements or additions to documentation label Apr 12, 2023
@dfrg
Copy link
Collaborator

dfrg commented Apr 13, 2023

I’d love to get this in as an example. There is a minor complication around selecting a unique id for the fonts coming from cosmic-text. This can be resolved in a few different ways— I’ll see what I can do.

The major blocker is having simple infrastructure for spinning up new examples. Right now, we just dump everything into the with_winit crate and I’m not sure if that is the right call here.

@axelkar
Copy link

axelkar commented Mar 24, 2024

Is it possible to do layout with skrifa or rendering with COSMIC Text?

@axelkar
Copy link

axelkar commented Mar 24, 2024

Nevermind that - Do I take individual glyphs from COSMIC Text and just shove them down vello::DrawGlyphs?

@dfrg
Copy link
Collaborator

dfrg commented Mar 24, 2024

Yes, the draw glyphs API is the intended entry point for this and my prior experiment had this working with cosmic-text though I’m sure the code is massively out of date at this point.

@AustinMReppert AustinMReppert linked a pull request Nov 19, 2024 that will close this issue
@DJMcNab DJMcNab linked a pull request Nov 20, 2024 that will close this issue
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
documentation Improvements or additions to documentation
Projects
None yet
Development

Successfully merging a pull request may close this issue.

3 participants