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

Change the embedded font to Roboto Regular in skiko.wasm #830

Merged
merged 1 commit into from Nov 17, 2023

Conversation

eymar
Copy link
Collaborator

@eymar eymar commented Nov 17, 2023

It used to be NotoMono-Regular.

It closes JetBrains/compose-multiplatform#3915

With NotoMono-Regular (before this change):

Screenshot 2023-11-17 at 11 47 49

With Roboto-Regular (after this change):
Screenshot 2023-11-17 at 11 47 33


In case someone need to change it in the future, .ttf can be converted by using skia tools:

python tools/embed_resources.py --name SK_EMBEDDED_FONTS --input ~/Downloads/NotoMono-Regular.ttf --output modules/canvaskit/NotoMono-Regular.ttf.cpp --align 4

see https://github.com/JetBrains/skia/tree/skiko/modules/canvaskit/fonts

@eymar eymar merged commit fd74c1d into master Nov 17, 2023
5 checks passed
@eymar eymar deleted the embed_roboto_regular_font_to_skiko.wasm branch November 17, 2023 12:44
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.

Web: Don't use Monospace font by default
2 participants