-
Notifications
You must be signed in to change notification settings - Fork 7
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
Remove text bounds estimation #101
Conversation
on startup for AWT klighd: added properties to set on KTexts for setting individual line widths and heights for texts
non-platform case. Allow AWT size estimation to estimate multiline texts correctly and set text estimation properties on the text.
default monospace font (overpass mono)
@sailingKieler Could you please have a look at the changes here made outside of the .lsp plugin? I added two font files to be registered in standalone applications, adapted the text size estimation to allow getting per-line estimations for multiline text, and modified the default font to use Overpass in the case that we are not in an Eclipse context. |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
Fine for me.
Left to do: add the font license as a seperate .txt file next to the fonts as well. |
This PR gets rid of the text bounds estimation overhead in the lsp Bundle by estimating the texts with the same (open) font named Overpass on both server and client, thus making the server able to approximate the client text sizes more accurate.
To be merged together with the accompanying PR with the required client changes in klighd-vscode (#20)
Also touches the standalone plugin to register the Overpass and Overpass Mono fonts with AWT when starting some standalone application such as a CLI tool or a language server.