Skip to content

Conversation

mrobinson
Copy link
Member

This new API will be used by Servo to properly retrieve all axis
variation values after creating the FontFace.

Signed-off-by: Martin Robinson [email protected]

This new API will be used by Servo to properly retrieve all axis
variation values after creating the `FontFace.`

Signed-off-by: Martin Robinson <[email protected]>
mrobinson added a commit to mrobinson/servo that referenced this pull request Aug 21, 2025
Unlike other platforms where we read the default axis values and combine
it with variations from style to make the font face, we set the
variations from the style when creating the font face and then read the
final variations from the face. It seems that DirectWrite does the
normalization of variation values internally.

This depends on servo/dwrote-rs#68.

Signed-off-by: Martin Robinson <[email protected]>
@jdm jdm added this pull request to the merge queue Aug 22, 2025
Merged via the queue into main with commit 6a290d0 Aug 22, 2025
2 checks passed
mrobinson added a commit to mrobinson/servo that referenced this pull request Aug 22, 2025
Unlike other platforms where we read the default axis values and combine
it with variations from style to make the font face, we set the
variations from the style when creating the font face and then read the
final variations from the face. It seems that DirectWrite does the
normalization of variation values internally.

This depends on servo/dwrote-rs#68.

Signed-off-by: Martin Robinson <[email protected]>
mrobinson added a commit to mrobinson/servo that referenced this pull request Aug 22, 2025
Unlike other platforms where we read the default axis values and combine
it with variations from style to make the font face, we set the
variations from the style when creating the font face and then read the
final variations from the face. It seems that DirectWrite does the
normalization of variation values internally.

This depends on servo/dwrote-rs#68.

Signed-off-by: Martin Robinson <[email protected]>
mrobinson added a commit to mrobinson/servo that referenced this pull request Aug 22, 2025
Unlike other platforms where we read the default axis values and combine
it with variations from style to make the font face, we set the
variations from the style when creating the font face and then read the
final variations from the face. It seems that DirectWrite does the
normalization of variation values internally.

This depends on servo/dwrote-rs#68.

Signed-off-by: Martin Robinson <[email protected]>
github-merge-queue bot pushed a commit to servo/servo that referenced this pull request Aug 22, 2025
Unlike other platforms where we read the default axis values and combine
it with variations from style to make the font face, we set the
variations from the style when creating the font face and then read the
final variations from the face. It seems that DirectWrite does the
normalization of variation values internally.

This depends on servo/dwrote-rs#68.

Testing: We currently don't have tests for Windows, but variation
support is
covered by the WPT tests.
Fixes: This is part of #38800.

Signed-off-by: Martin Robinson <[email protected]>
github-merge-queue bot pushed a commit to servo/servo that referenced this pull request Aug 22, 2025
Unlike other platforms where we read the default axis values and combine
it with variations from style to make the font face, we set the
variations from the style when creating the font face and then read the
final variations from the face. It seems that DirectWrite does the
normalization of variation values internally.

This depends on servo/dwrote-rs#68.

Testing: We currently don't have tests for Windows, but variation
support is
covered by the WPT tests.
Fixes: This is part of #38800.

Signed-off-by: Martin Robinson <[email protected]>
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.

2 participants