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

Support for custom fontFamily #48

Open
peterjskaltsis opened this issue Jun 22, 2024 · 2 comments
Open

Support for custom fontFamily #48

peterjskaltsis opened this issue Jun 22, 2024 · 2 comments

Comments

@peterjskaltsis
Copy link

peterjskaltsis commented Jun 22, 2024

Thank you for the amazing library!

Just wanted to ask if there is currently a way to set a custom font family vs system fonts only on text elements etc?

Text("Hello, world!")
    .font(Font.custom("MyFont", size: 18))

Would this introduce a lot of complexity to eg. getFont ?
https://github.com/andrew-levy/swiftui-react-native/blob/master/src/utils/fonts/index.ts

@andrew-levy
Copy link
Owner

Hey thanks! Not currently, but I can add it to the list of modifiers to add. @peterjskaltsis

@peterjskaltsis
Copy link
Author

That'd be great, thank you 🙏 I also wasn't able to set textAlignment on text but I might be missing something.

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