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

The RichTextFont.ListPicker with selection Context.fontName is incorrect #212

Open
chanhdatng opened this issue Nov 11, 2024 · 2 comments
Open
Labels
bug Something isn't working

Comments

@chanhdatng
Copy link

After pick a font from RichTextFont ListPicker and type some text, open the list picker again and the selection is wrong because the fontName was changed with the context.

Example:
Pick font -> San Franscico -> FontName : .SFUI

After edit context, the font now is TimesNewRonamPSMT so when open the list again, the font selection init from fontName 'TimesNewRonamPSMT' is not in the list. (it must be .SFUI)

@chanhdatng chanhdatng changed the title The RichTextFont.ListPicker with selection Context.fontName is wrong The RichTextFont.ListPicker with selection Context.fontName is incorrect Nov 11, 2024
@danielsaidi
Copy link
Owner

Hi @chanhdatng

Thank you for reporting. The font handling needs some work!

@danielsaidi danielsaidi added the bug Something isn't working label Nov 11, 2024
@chanhdatng
Copy link
Author

image
Yeah, i found it the list is showing PickerFont init from UIFont.familyNames.
Actually when context change, it selected the first font of those FamilyNames.

Hope this will be fixed <3 and add animation scroll to selected font if moveSelectionTopmost is false

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

2 participants