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

Problem where the autosize of the linenumbers is incorrect #91

Closed
pyscripter opened this issue Nov 14, 2021 · 0 comments
Closed

Problem where the autosize of the linenumbers is incorrect #91

pyscripter opened this issue Nov 14, 2021 · 0 comments
Labels

Comments

@pyscripter
Copy link
Contributor

I'm seeing a problem where the autosize of the linenumbers is incorrect if I change the editor font and have UseFontStyle set to false (which I think means to use the editor font in the gutter.) I think the situation is that TSynGutter.CalcCharWidth is called when the editor is created but not updated if the font of the editor changes. In my case the initial editor font is Consolas 10 and then I change it in code to Consolas 12, and after that the line number display is too narrow. I'm testing with 50,000 lines or so and scrolled to the bottom to show the issue best.
-Mark

Originally posted by @MShark67 in #86 (comment)

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Projects
None yet
Development

No branches or pull requests

1 participant