Skip to content

Navigation Menu

Sign in
Appearance settings

Search code, repositories, users, issues, pull requests...

Provide feedback

We read every piece of feedback, and take your input very seriously.

Saved searches

Use saved searches to filter your results more quickly

Sign up
Appearance settings

Workaround for custom fonts for VSCode 1.95++ ? #7092

Unanswered
OCram85 asked this question in Q&A
Discussion options

Hey folks,
did anyone found a workaround for adding custom fonts after workbenchworkbench.web.main.css was removed from the codebase?
Previously we could simply add css classes there to embed custom fonts: https://github.com/OCram85/arkanum/blob/master/Dockerfile#L53

🔖 Refs
You must be logged in to vote

Replies: 1 comment 2 replies

Comment options

Would it be possible to link the fonts.css file in the workbench.html file instead? Inject something like <link rel="stylesheet" href="{{WORKBENCH_WEB_BASE_URL}}/out/vs/code/browser/workbench/fonts.css"> and then copy font.css to that directory.

You must be logged in to vote
2 replies
Comment options

that is good point. I also found this: src/vs/workbench/browser/media/style.css .
maybe it‘s also possible to load the fonts from there

Comment options

I guess I could fix it by customizing the workbench.css directly: OCram85/arkanum@86d6373

Note

Unfortunately I couldn't use the files mention from the vscode repo directly because I wasn't sure if these should exist in the sources or after building any artifacts.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet

AltStyle によって変換されたページ (->オリジナル) /