Skip to content

feat(core): support font-variation-settings#9995

Merged
NathanWalker merged 6 commits into
NativeScript:mainfrom
lekhmanrus:font-variation-settings
Nov 24, 2022
Merged

feat(core): support font-variation-settings#9995
NathanWalker merged 6 commits into
NativeScript:mainfrom
lekhmanrus:font-variation-settings

Conversation

@lekhmanrus
Copy link
Copy Markdown
Contributor

PR Checklist

What is the current behavior?

font-variation-settings CSS rule not supported.

What is the new behavior?

font-variation-settings is supported on Android and I'm thinking about the proper implementation for iOS. I guess it should be similar to VFont - using attributes. It would be fine if someone has any suggestions/directions here. 🙂

@cla-bot cla-bot Bot added the cla: yes label Aug 16, 2022
@farfromrefug
Copy link
Copy Markdown
Collaborator

@lekhmanrus warning the font builder was only added in API 29. if I read your changes right it will crash on < 29.

@lekhmanrus
Copy link
Copy Markdown
Contributor Author

lekhmanrus commented Aug 17, 2022

@farfromrefug, Typeface.Builder added in API level 26. But yeah - I probably need to add a few conditions in the code. Thanks!

@lekhmanrus lekhmanrus force-pushed the font-variation-settings branch from 4424e43 to 92dc8b7 Compare August 17, 2022 23:40
@farfromrefug
Copy link
Copy Markdown
Collaborator

@lekhmanrus you are right. it says 26. it is weird as I am sure I saw an android doc saying 29... anyway...

@lekhmanrus
Copy link
Copy Markdown
Contributor Author

@farfromrefug, I guess it was Font.Builder - it says 29. But I use Typeface.Builder here.

@NathanWalker NathanWalker added this to the 8.4 milestone Aug 20, 2022
Comment thread packages/core/platforms/ios/typings/objc!NativeScriptUtils.d.ts Outdated
@NathanWalker NathanWalker merged commit a5e3e22 into NativeScript:main Nov 24, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

Projects

None yet

Development

Successfully merging this pull request may close these issues.

3 participants