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

Enable customize font style of syntax highlight with theme #814

Open
1024jp opened this issue Apr 30, 2018 · 5 comments
Open

Enable customize font style of syntax highlight with theme #814

1024jp opened this issue Apr 30, 2018 · 5 comments
Labels
feature feature requests from users

Comments

@1024jp
Copy link
Member

1024jp commented Apr 30, 2018

cf. #813

And I request add the feature that can set not only color, but also bold, italic, and underline in each theme.

@1024jp 1024jp added the feature feature requests from users label Apr 30, 2018
@1024jp
Copy link
Member Author

1024jp commented Apr 30, 2018

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.

@1024jp
Copy link
Member Author

1024jp commented Feb 21, 2020

Changing font in NSLayoutManager's temporary attributes, which CotEditor currently uses for the sytnax highlighting, is not allowed.
Therefore, this is technically difficult, at least as long as CotEditor does not change the syntax highlighting mechanism.

@maxime-pigeon
Copy link

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?

@1024jp
Copy link
Member Author

1024jp commented Feb 14, 2022

@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.

@maxime-pigeon
Copy link

maxime-pigeon commented Feb 14, 2022 via email

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
feature feature requests from users
Development

No branches or pull requests

2 participants