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

"HelveticaNeue" is invalid and does not have an associated tag #162

Open
destari opened this issue Mar 30, 2024 · 3 comments
Open

"HelveticaNeue" is invalid and does not have an associated tag #162

destari opened this issue Mar 30, 2024 · 3 comments

Comments

@destari
Copy link

destari commented Mar 30, 2024

I'm getting a lot of these errors in the console now (v1.0.0).

Picker: the selection "HelveticaNeue" is invalid and does not have an associated tag, this will give undefined results.

My code is:
RichTextFont.Picker(selection: $context.fontName).richTextFontPickerConfig(.init(fontSize: 14))

@destari
Copy link
Author

destari commented Mar 30, 2024

I get similar messages with other fonts, such as:

Picker: the selection "Apple-Chancery" is invalid and does not have an associated tag, this will give undefined results.

@danielsaidi
Copy link
Owner

Hi @destari!

Perhaps the picker should go through the fonts and mark anyone that aren't valid for the current platform?

@destari
Copy link
Author

destari commented Apr 2, 2024

That would be a good simple way to avoid it. Maybe there should also be a way to only allow fonts that are available on all your desired platforms too? Just a thought.

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