RichTextKit icon indicating copy to clipboard operation
RichTextKit copied to clipboard

The RichTextFont.ListPicker with selection Context.fontName is incorrect

Open chanhdatng opened this issue 1 year ago • 2 comments

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 avatar Nov 11 '24 06:11 chanhdatng

Hi @chanhdatng

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

danielsaidi avatar Nov 11 '24 06:11 danielsaidi

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

chanhdatng avatar Nov 11 '24 07:11 chanhdatng