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 emoji family for emoji clusters #56

Merged
merged 4 commits into from
May 22, 2024
Merged

add emoji family for emoji clusters #56

merged 4 commits into from
May 22, 2024

Conversation

dfrg
Copy link
Collaborator

@dfrg dfrg commented May 21, 2024

Quick and dirty fallback for emoji. This can be done more efficiently (and should be handled in fontique directly) but this should get us functioning emoji mapping for capable renderers.

Quick and dirty fallback for emoji. This can be done more efficiently (and should be handled in fontique directly) but this should get us functioning emoji mapping for capable renderers.
DJMcNab
DJMcNab previously approved these changes May 22, 2024
Copy link
Member

@DJMcNab DJMcNab left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Is it meaningful to have a test for this?

cc @nicoburns for turning #55 and/or #54 also into integration tests

src/shape.rs Outdated Show resolved Hide resolved
@DJMcNab DJMcNab dismissed their stale review May 22, 2024 10:35

Not carefully thought through

src/shape.rs Outdated Show resolved Hide resolved
@nicoburns
Copy link
Contributor

Applying this on top of the tiny-skia example I get a blank space for the emoji (which is expected because the ColorPainter trait and associated function call aren't implemented):

Screenshot 2024-05-22 at 12 22 06

On top of the swash example I get "interesting" output:

Screenshot 2024-05-22 at 12 25 21

I'm assuming this is an issue with the example rather than this PR as it seems to selecting the correct font/glyph.

Forces a reset after we push a specialized font stack for an emoji cluster
@dfrg
Copy link
Collaborator Author

dfrg commented May 22, 2024

Is it meaningful to have a test for this?

It is meaningful but the structure of this file makes unit testing difficult. I filed an issue for refactoring at #57

@dfrg dfrg added this pull request to the merge queue May 22, 2024
Merged via the queue into main with commit b2dd9d3 May 22, 2024
19 checks passed
@dfrg dfrg deleted the emoji-fallback branch May 22, 2024 15:53
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.

3 participants