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

Remove text bounds estimation #101

Merged
merged 8 commits into from
Nov 9, 2021
Merged

Conversation

NiklasRentzCAU
Copy link
Member

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.

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.
@NiklasRentzCAU
Copy link
Member Author

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

Copy link
Member

@sailingKieler sailingKieler left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Fine for me.

@NiklasRentzCAU
Copy link
Member Author

Left to do: add the font license as a seperate .txt file next to the fonts as well.

@NiklasRentzCAU NiklasRentzCAU merged commit f550b74 into master Nov 9, 2021
@NiklasRentzCAU NiklasRentzCAU deleted the nre/removeTextBoundsEstimation branch November 9, 2021 14:54
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

Successfully merging this pull request may close these issues.

2 participants