Making the gutterView font size always follow the text size in its corresponding line. #66
Closed
HassanTaleb90
started this conversation in
General
Replies: 3 comments 2 replies
-
the gutter font is initialized with the textview font (default font), including it's size. |
Beta Was this translation helpful? Give feedback.
0 replies
-
changed in f61e63a |
Beta Was this translation helpful? Give feedback.
0 replies
-
I think it would be better if each line number automatically matches the font size of the largest character on the corresponding line. Screen.Recording.2024-08-23.at.8.47.29.PM.movXcode: Screen.Recording.2024-08-23.at.8.34.29.PM.mov |
Beta Was this translation helpful? Give feedback.
2 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I think the current approach for the gutterView font size is not the best:
I think it would be better to make the gutterView font size always follow the text size in its corresponding line to prevent bugs like the following:
Try changing the font size in ViewController to a large one, let's say 288:
textView.font = NSFont.monospacedSystemFont(ofSize: 288, weight: .regular)
You will notice the bug shown in the images.
font.size.bug.mov
Beta Was this translation helpful? Give feedback.
All reactions