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 support for shifting combining-character accents into place #695

Merged
merged 2 commits into from
May 24, 2021

Conversation

dpvc
Copy link
Member

@dpvc dpvc commented May 6, 2021

This PR adds code to allow combining characters to be properly places as accents (both above and below). It introduces a new item of font data for an offset to apply, and then passes that through the BBox to the under-over methods that determines the positioning. Since accents are centered and combining characters have zero width (the data doesn't identify the actual size or placement of the character), we add a shift that moves the center of a combining character to the horizontal origin.

This resolves an issue Peter pointed out with combining-character accents in the STIX2 fonts.

@dpvc dpvc added this to the 3.2 milestone May 6, 2021
@dpvc dpvc requested a review from zorkow May 6, 2021 00:40
ts/output/common/Wrapper.ts Outdated Show resolved Hide resolved
Copy link
Member

@zorkow zorkow left a comment

Choose a reason for hiding this comment

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

Nice.

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.

None yet

2 participants