-
-
Notifications
You must be signed in to change notification settings - Fork 436
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
Enable customize font style of syntax highlight with theme #814
Comments
I can't say I implement this soon, but I'll consider. What I worry is the highlight performance. Modifying the font style as well as the colors must take longer time, especially when changing letter size dynamically. So I must be careful to implement this kind of feature. |
Changing font in NSLayoutManager's temporary attributes, which CotEditor currently uses for the sytnax highlighting, is not allowed. |
First, I want to thank you for your amazing work on this. The attention to details is superb, and performance is great. I also wanted to say that this feature would be very appreciated. Is it still not allowed with NSLayoutManager? |
@maxime-pigeon Unfortunately not. A chance would be when CotEditor migrates to TextKit 2, the new text rendering API by Apple released last year. But I do not have any specific plan yet because this must be an entire code update and I even do not know whether TextKit 2 changes the spec restricting this issue currently. |
Looks like it TextKit2 does allow for that, but I understand it’ll be a lot of work to migrate.
https://developer.apple.com/videos/play/wwdc2021/10061
Anyhow, thanks again for your work!
… On Feb 13, 2022, at 8:22 PM, 1024jp ***@***.***> wrote:
@maxime-pigeon Unfortunately not. A chance would be when CotEditor migrates to TextKit 2, the new text rendering API by Apple released last year. But I do not have any specific plan yet because this must be an entire code update and I even do not know whether TextKit 2 changes the spec restricting this issue currently.
—
Reply to this email directly, view it on GitHub, or unsubscribe.
Triage notifications on the go with GitHub Mobile for iOS or Android.
You are receiving this because you were mentioned.
|
cf. #813
The text was updated successfully, but these errors were encountered: