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

Call remeasureFonts after fonts are downloaded #1

Open
desplesda opened this issue Mar 7, 2022 · 0 comments
Open

Call remeasureFonts after fonts are downloaded #1

desplesda opened this issue Mar 7, 2022 · 0 comments
Assignees
Labels
bug Something isn't working

Comments

@desplesda
Copy link
Contributor

If Monaco finishes loading before the Inconsolata font has finished downloading, it incorrectly calculates the width of a space, which means text that contains whitespace is laid out incorrectly when selected.

To fix this, we should call monaco.editor.remeasureFonts after the fonts are downloaded.

See microsoft/monaco-editor#392 for more information.

@desplesda desplesda added the bug Something isn't working label Mar 7, 2022
@desplesda desplesda self-assigned this Mar 7, 2022
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
bug Something isn't working
Projects
None yet
Development

No branches or pull requests

1 participant