-
Notifications
You must be signed in to change notification settings - Fork 748
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
setting font in TextView fails #1097
Comments
Even odder:
|
Also when you set the font, the color is lost and vice versa. So you can either have fonts or colors … |
…'t obliterated. Fixes issues supercollider#1097.
Both OP snippet and muellmusik's are correct behavior --- setFont sets the font of a range of text, in the example cases starting at 5 chars, for a range of 10. Hence the r in the second example, and nothing in the first (no text to change the font of). This works as expected (i.e. changes base font for the view): Telephon is right, though - color doesn't seem to work for me. I think the fix is to switch to mergeCharFormat, which will apply the font / color to the format that's already there. |
mergeCharFormat instead of setCharFormat, so existing format info isn't obliterated. Fixes #1097.
…'t obliterated. Fixes issues supercollider#1097.
Font is unchanged.
w.refresh
doesn't help.The text was updated successfully, but these errors were encountered: