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

Explaining the render differences #11

Open
vv-monsalve opened this issue Aug 11, 2023 · 7 comments
Open

Explaining the render differences #11

vv-monsalve opened this issue Aug 11, 2023 · 7 comments

Comments

@vv-monsalve
Copy link

Could the tool provide information about differences in rendering? When using it and observing differences between renderers, it's not always clear whether there's a font bug, a rendering issue, or an issue with the tool itself.

E.g. Something like "Alpha values are not supported in x renderer"

Example 1. COLRv1 font

Using a still WIP new font colored using PaintCompiler. In this case the expected result is the first one (which uses alpha values)—wondering if samsa-svg does not support it (isn't it using samsa-core?).

Screen Shot 2023-08-10 at 19 35 37

Example 2. Standard VF

When checking a VF with a YEXT axis that shifts the vertical metrics, system looks like shifting the baseline position.

Playpen-YEXT-axis.mov
@Lorp
Copy link
Owner

Lorp commented Aug 11, 2023

More information about each renderer is definitely needed. On the examples:

  1. Alpha values should be working ok, so this needs investigtating (probably in samsa-core)
  2. I believe the system renderer is behaving correctly. The font seems to be adjusting its own sTypoAscender and sTypoDescender values (using MVAR). In a user agent (e.g. a modern browser) this necessitates lowering the baseline so that the top of the text box remains aligned with sTypoAscender. Getting vertical metrics right is fiddly — it’s not always clear what the best solution is. My current focus is visual comparisons of the rendering itself, rather than its vertical position, so a fix (or controls to determine behaviour) will not be imminent. BTW I’d be interested to see how InDesign handles adjustments to YEXT.

@vv-monsalve
Copy link
Author

2. BTW I’d be interested to see how InDesign handles adjustments to YEXT.

I've just found it doesn't >.<.

@Lorp
Copy link
Owner

Lorp commented Aug 11, 2023

Did you try a multiline sample in InDesign? Deciding how to handle the first line of a text box is a kinda separate from handling subsequent lines.

@vv-monsalve
Copy link
Author

vv-monsalve commented Aug 11, 2023

I've now tried both: single line + multiline. The YEXT axis does change the ascenders, descenders, and cap height but does not modify the line's leading or position. Not even when changing the first line offset in the baseline options (from Ascent, Leading, Fixed, etc).

@Lorp
Copy link
Owner

Lorp commented Aug 12, 2023

I believe it’s correct for InDesign to behave this way (thus differently from a browser default settings). Pro users are happy to handle vertical metrics manually, via point size and leading controls. For example, the browser would modify its first-line baseline position and maybe also the line-height if a single glyph is from a font with a larger sTypoAscender, than the rest of the text; but that would be unwanted in InDesign.

@vv-monsalve
Copy link
Author

Pro users are happy to handle vertical metrics manually, via point size and leading controls.

Makes sense. On Friday, I was frustrated when I saw it was not working there, but this is probably the main reason. However, I wonder if there should be an option to enable the font's metrics. Similar to what they allow regarding kerning

@Lorp
Copy link
Owner

Lorp commented Aug 14, 2023

I think you’re right.

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