Title: iOS variable fonts ignore computed font-weight and normal weight defaults · Issue #11618 · NativeScript/NativeScript · GitHub
Open Graph Title: iOS variable fonts ignore computed font-weight and normal weight defaults · Issue #11618 · NativeScript/NativeScript
X Title: iOS variable fonts ignore computed font-weight and normal weight defaults · Issue #11618 · NativeScript/NativeScript
Description: On iOS, ordinary CSS font-weight can leave a variable font at the file's default weight. With SN Pro (weight range 200–900, default 200), a normal label should select 400 and font-weight: 600 should select 600, but both resolve to 200. T...
Open Graph Description: On iOS, ordinary CSS font-weight can leave a variable font at the file's default weight. With SN Pro (weight range 200–900, default 200), a normal label should select 400 and font-weight: 600 shoul...
X Description: On iOS, ordinary CSS font-weight can leave a variable font at the file's default weight. With SN Pro (weight range 200–900, default 200), a normal label should select 400 and font-weight: 600 s...
Opengraph URL: https://github.com/NativeScript/NativeScript/issues/11618
X: @github
Domain: github.com
{"@context":"https://schema.org","@type":"DiscussionForumPosting","headline":"iOS variable fonts ignore computed font-weight and normal weight defaults","articleBody":"On iOS, ordinary CSS `font-weight` can leave a variable font at the file's default weight. With SN Pro (weight range 200–900, default 200), a normal label should select 400 and `font-weight: 600` should select 600, but both resolve to 200. TextField and TextView have the same problem. This was reproduced with NativeScript core 9.1.3 on an iOS 27 simulator by inspecting the native UIFont's CoreText variation coordinates. Current main still only applies variation coordinates when `fontVariationSettings` is explicit.\n\nReproduction: bundle [SNPro[wght].ttf](https://github.com/supernotes/sn-pro/blob/e025ac4755352167a4b160bfb77c72068b04b55c/fonts/variable/SNPro%5Bwght%5D.ttf) as `fonts/SNPro.ttf` and apply:\n\n```xml\n\u003cStackLayout>\n \u003cLabel fontFamily=\"SN Pro\" text=\"Expected normal weight 400\" />\n \u003cLabel fontFamily=\"SN Pro\" fontWeight=\"600\" text=\"Expected weight 600\" />\n \u003cTextField fontFamily=\"SN Pro\" fontWeight=\"500\" text=\"Expected weight 500\" />\n \u003cTextView fontFamily=\"SN Pro\" fontWeight=\"500\" text=\"Expected weight 500\" />\n\u003c/StackLayout>\n```\n\nExplicit `font-variation-settings: 'wght' 550` selects the correct coordinate, but callers should not need to duplicate the weight in low-level variation settings. The resolver should derive the supported `wght` coordinate from the computed CSS weight, use 400 for normal, preserve explicit-axis precedence, clamp to the font's range, and leave static fonts on their existing selection path.\n\nDownstream reproduction and fix: https://github.com/octane-xplat/octane-xplat/issues/156. The Android counterpart is tracked separately in #11513 / #11514.\n","author":{"url":"https://github.com/aleclarson","@type":"Person","name":"aleclarson"},"datePublished":"2026-11-06T05:34:44Z","url":"https://github.com/NativeScript/NativeScript/issues/11618"}
| react-profiling | 0 |
| react-import-map | react,react-dom,react-dom/client,react-dom/profiling,react-is,react/compiler-runtime,react/jsx-dev-runtime,react/jsx-runtime,scheduler@b8488ee2c322 |
| route-pattern | /_view_fragments/issues/show/:user_id/:repository/:id/issue_layout(.:format) |
| route-controller | voltron_issues_fragments |
| route-action | issue_layout |
| fetch-nonce | v2:d4566a3d-c94c-3845-d05a-d9995911d8f4 |
| current-catalog-service-hash | 81bb79d38c15960b92d99bca9288a9108c7a47b18f2423d0f6438c5b7bcd2114 |
| request-id | 999A:EDA7A:1549AD2:1B10FC5:6B012FD9 |
| html-safe-nonce | f0dcbd53ac01a124693ff91dc1a88ff4be832898a77f92ac8f771e6913cb6d4a |
| visitor-payload | eyJyZWZlcnJlciI6IiIsInJlcXVlc3RfaWQiOiI5OTlBOkVEQTdBOjE1NDlBRDI6MUIxMEZDNTo2QjAxMkZEOSIsInZpc2l0b3JfaWQiOiIyNTI0MjkyNzE0MjAwMTE3MjA5IiwicmVnaW9uX2VkZ2UiOiJpYWQiLCJyZWdpb25fcmVuZGVyIjoiaWFkIn0= |
| visitor-hmac | 19f62d3e4f44f03cddc7945802667aa387751ebda9b27eab9755e26f2d0647ec |
| hovercard-subject-tag | issue:6237381614 |
| github-keyboard-shortcuts | repository,issues,copilot |
| google-site-verification | Apib7-x98H0j5cPqHWwSMm6dNU4GmODRoqxLiDzdx9I |
| octolytics-url | https://collector.github.com/github/collect |
| analytics-location | / |
| fb:app_id | 1401488693436528 |
| apple-itunes-app | app-id=1477376905, app-argument=https://github.com/_view_fragments/issues/show/NativeScript/NativeScript/11618/issue_layout |
| twitter:image | https://opengraph.githubassets.com/b9aee42609d5c829632ebd3237a03de310df91d472e022062a4b2a312fb6c835/NativeScript/NativeScript/issues/11618 |
| twitter:card | summary_large_image |
| og:image | https://opengraph.githubassets.com/b9aee42609d5c829632ebd3237a03de310df91d472e022062a4b2a312fb6c835/NativeScript/NativeScript/issues/11618 |
| og:image:alt | On iOS, ordinary CSS font-weight can leave a variable font at the file's default weight. With SN Pro (weight range 200–900, default 200), a normal label should select 400 and font-weight: 600 shoul... |
| og:image:width | 1200 |
| og:image:height | 600 |
| og:site_name | GitHub |
| og:type | object |
| og:author:username | aleclarson |
| hostname | github.com |
| expected-hostname | github.com |
| None | cc5dfdd32f62ebd3223cab3af3aa2b268d3605218237326a48a99d1efd89495c |
| turbo-cache-control | no-preview |
| go-import | github.com/NativeScript/NativeScript git https://github.com/NativeScript/NativeScript.git |
| octolytics-dimension-user_id | 7392261 |
| octolytics-dimension-user_login | NativeScript |
| octolytics-dimension-repository_id | 31492490 |
| octolytics-dimension-repository_nwo | NativeScript/NativeScript |
| octolytics-dimension-repository_public | true |
| octolytics-dimension-repository_is_fork | false |
| octolytics-dimension-repository_network_root_id | 31492490 |
| octolytics-dimension-repository_network_root_nwo | NativeScript/NativeScript |
| turbo-body-classes | logged-out env-production page-responsive |
| disable-turbo | false |
| browser-stats-url | https://api.github.com/_private/browser/stats |
| browser-errors-url | https://api.github.com/_private/browser/errors |
| release | 8c77c9e8439031ad54c75a250694842892f693e1 |
| ui-target | full |
| theme-color | #1e2327 |
| color-scheme | light dark |
| react-app-name | issues |
Links:
Viewport: width=device-width