GeezerVison is showing github.com — fix(ios): resolve computed weights for variable fonts by aleclarson · Pull Request #11619 · NativeScript/NativeScript
Conversation
aleclarson
commented
Nov 6, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
User-visible bug
Apps often bundle one variable font file to show regular body text, semibold labels, and medium-weight form fields. On iOS, these can all appear too thin because CSS font-weight leaves the font at its default instance.
For example, SN Pro defaults to weight 200 (ExtraLight):
| App styling |
Before |
After |
Normal text (400) |
200 |
400 |
Semibold label (600) |
200 |
600 |
Medium text input or text area (500) |
200 |
500 |
Authors should be able to use ordinary CSS classes and inherited weights without also writing low-level font-variation-settings for every control.
Fixes #11618.
Change
- Apply the computed CSS weight to the font's supported
wght axis, including normal/400 defaults.
- Keep explicit variation settings in control, preserve other axes and font traits, and clamp weights to the font's range.
- Cover labels, text fields, and text views through the shared iOS font resolver. Static fonts retain their existing selection.
Validation
- Passed: core build, 643 unit tests (1 skipped), formatting, and focused native-test typecheck.
- Added: native SN Pro regressions for defaults, classes, inheritance, retained-control updates, explicit-axis removal, and font scaling.
- Device evidence: equivalent downstream tests passed on an iOS 27 simulator. The new upstream automated-device tests have not been run.
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
View your CI Pipeline Execution ↗ for commit 7b7f8b9
| Command |
Status |
Duration |
Result |
nx run-many --target=test --configuration=ci --... |
✅ Succeeded |
3s |
View ↗ |
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗
☁️ Nx Cloud last updated this comment at 2026-11-06 05:36:34 UTC
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
nx-cloud
Bot
commented
Nov 6, 2026
•
edited
Loading
Uh oh!
There was an error while loading. Please reload this page.
|
View your CI Pipeline Execution ↗ for commit 7b7f8b9
| Command |
Status |
Duration |
Result |
nx test apps-automated -c=android |
✅ Succeeded |
2m 51s |
View ↗ |
nx run-many --target=test --configuration=ci --... |
✅ Succeeded |
6s |
View ↗ |
💡 Verify your cache is correct by running tasks in a sandbox. Read docs ↗
☁️ Nx Cloud last updated this comment at 2026-11-06 05:41:01 UTC
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
|
Open in StackBlitz
npm i https://pkg.pr.new/@nativescript/core@11619
npm i https://pkg.pr.new/@nativescript/vite@11619
npm i https://pkg.pr.new/@nativescript/webpack@11619
commit: 7b7f8b9
|
Sorry, something went wrong.
Uh oh!
There was an error while loading. Please reload this page.
This branch has not been deployed
No deployments
Uh oh!
There was an error while loading. Please reload this page.
Assignees
No one assigned
Milestone
No milestone
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.