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 #20

Merged
merged 4 commits into from
Nov 9, 2021
Merged

Conversation

NiklasRentzCAU
Copy link
Member

@NiklasRentzCAU NiklasRentzCAU commented Oct 28, 2021

This PR gets rid of the text bounds estimation overhead 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 server changes in KLighD (#101)

klighd-cli: add and package default font to be used in diagrams.
klighd-vscode: add and package default font to be used in diagrams, does not fully work here yet though (access denied error on GET request of the font)
Now it uses  @font-face style with direct base-64 encoding of the fonts and does not require any external file to be installed or referenced via the network anywhere for the cost of bigger SVGs when exporting.
Also added a new monospace font to be used as default.
@NiklasRentzCAU NiklasRentzCAU merged commit 76776b0 into main Nov 9, 2021
@NiklasRentzCAU NiklasRentzCAU deleted the nre/removeTextBoundsEstimation branch November 9, 2021 14:56
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.

1 participant