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

[sbix] Specify placement of images within lines, to aid 3 major implementations converging on 1 behavior #18

Open
davelab6 opened this issue Sep 27, 2020 · 1 comment

Comments

@davelab6
Copy link
Contributor

In #1 (comment) @PeterConstable wrote,

[OFF has] ambiguity about the placement of bitmap graphics from the 'sbix' table within a line of text, with the result that three major implementations have three different behaviours (see OT issue 191.

While MSOT issue 191 is closed, and so I expect that wording to arrive in OFF, I thought it would be valuable to file this issue on this repo to track not only this being fixed in OFF, but the 3 implementations (and any others) aligning on the new standard definition of the behavior.

Peter, which are the 3 implementations were you referring to?

@bungeman
Copy link

CoreText, DirectWrite, and FreeType. To summarize the behaviors: FreeType applies (and still applies, need to fix that) the originOffsetY in the wrong direction. FreeType and DirectWrite do not use the lower left of the corresponding 'glyf' entry as the origin. CoreText doesn't recognize 'sbix' fonts without a 'glyf' table (the other two do) and also only provides the bounds of the 'glyf' entry (does not allow for proper repaint if the bitmap extends outside those bounds).

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

No branches or pull requests

2 participants