question-mark
Stuck on an issue?

Lightrun Answers was designed to reduce the constant googling that comes with debugging 3rd party libraries. It collects links to all the places you might be looking at while hunting down a tough bug.

And, if you’re still stuck at the end, we’re happy to hop on a call to see how we can help out.

Allow custom fonts

See original GitHub issue

Feature Request

I would like the ability to have the ability to have the font I use for all my development FireCode to be included so its pushed to the client.

I’m not really a star when it comes to CSS, but maybe this would be possible with something like a @font-face which would push the font to the client. Then when you configure the font in Code, because its pushed to the client you can have the FireCode font and ligatures without installing the font on the client.

I would also accept solutions from anyone, how to hack some files to get this working.

Hopefully I’m not the only one using this font.

With Kind Regards, Gert-Jan Timmer

Issue Analytics

  • State:open
  • Created 4 years ago
  • Reactions:36
  • Comments:74 (19 by maintainers)

github_iconTop GitHub Comments

9reactions
Merith-TKcommented, Feb 2, 2021

The main problem is that of these are workarounds rather than addressing the actual concern.

The config inside of the settings.json could be

codeserver.FontLoader:{ “font name” : “path to font on host”, “second font” : “path to font on host” }

On Tue, Feb 2, 2021, 3:10 AM David Gironella Casademont < notifications@github.com> wrote:

If you use apache can use mod_substitute

AddOutputFilterByType SUBSTITUTE text/html Substitute “s|</head>|<link type='text/css' href=' https://fonts.googleapis.com/css2?family=JetBrains+Mono:wght@300;400;500;600;700&display=swap' rel='stylesheet'></head>|i” Substitute “s|font-src|font-src fonts.gstatic.com|” Substitute “s|style-src|style-src fonts.googleapis.com |”

— You are receiving this because you were mentioned. Reply to this email directly, view it on GitHub https://github.com/cdr/code-server/issues/1374#issuecomment-771560299, or unsubscribe https://github.com/notifications/unsubscribe-auth/ACPQOXVPREU7SABMQJSO7UDS47MTLANCNFSM4K4XF2LQ .

9reactions
kylecarbscommented, Feb 27, 2020

Will make this a priority. Agreed it’s a big one.

Read more comments on GitHub >

github_iconTop Results From Across the Web

How To Load and Use Custom Fonts with CSS | DigitalOcean
You can use the @font-face rule to load a custom font on a web page. The history of loading custom fonts has lead...
Read more >
Adding a Custom Font to Your App - Apple Developer
Overview. Your app isn't limited to the custom fonts provided by iOS. If your company has its own branded font, for example, you...
Read more >
Enabling custom fonts
The custom fonts you enable are defined based on the @font-face CSS at-rule that you provide in a HTML Extension object in your...
Read more >
The Easy Way to Add Fonts to Your Website (Including ...
The Webfont Generator allows you to convert any font that you legally own the ... How to add custom fonts to your website...
Read more >
Using Custom fonts in Adobe Express
Add fonts · Select a font from the list of options available. · Add your own font.
Read more >

github_iconTop Related Medium Post

No results found

github_iconTop Related StackOverflow Question

No results found

github_iconTroubleshoot Live Code

Lightrun enables developers to add logs, metrics and snapshots to live code - no restarts or redeploys required.
Start Free

github_iconTop Related Reddit Thread

No results found

github_iconTop Related Hackernoon Post

No results found

github_iconTop Related Tweet

No results found

github_iconTop Related Dev.to Post

No results found

github_iconTop Related Hashnode Post

No results found