-
Notifications
You must be signed in to change notification settings - Fork 58
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
[Feature Request] Make Nerd Font icons available offline instead of fetching them #77
Comments
I imagine that the option is there so you can decide to use any font you want, but perhaps having the option to import from a local file would be a good alternative window/bar:
global_styles: |
@import "./assets/css/webfont.css"; |
Importing this way does not work. I reported this issue after trying to import it offline like you have shown |
@AfzGit Yes, I was not sure if this would work and by the looks of it, tauri needs to do this a bit differently, just like how to I tried to load directly, but I was not really expecting that to work 😆 |
@AfzGit , @CtByte You should use Step 1: Download ResourcesStep 2: Prepare the Font File
Here’s what your directory should look like:
Step 3: Update
|
@edelvarden This is so well written, you should make a PR. Thank you very much! @lars-berger Edit: not sure if this is planned to make easier, but I do not mind it to be the way to load local files :) |
I am trying to migrate to Glazewm v3. I am not familiar with CSS and JS. Can I directly use the name of the locally installed Nerd font on Windows instead of specifying the full path of the font file? |
@hongyuanjia I installed "JetBrains Mono" font on Windows and use it in the CSS like this: styles: |
display: grid;
grid-template-columns: 1fr 1fr 1fr;
align-items: center;
height: 100%;
font-family: "JetBrains Mono", ui-monospace, monospace;
font-size: 14px; So, I think if you installed the Nerd font then you can use it by name instead of the url to the |
@CtByte Yes, that's exactly what I want. I just remembered that I needed to quote the font names. Thanks! |
Closing in favor of #130 |
There are many problems that occur with an online approach:
Problem Case 1: You are outside without an internet connection, Zebar will not load it's icons
Problem Case 2: Your system is slow to connect to Wi-Fi which causes Zebar to start on launch without icons
Problem Case 3: Your Wi-Fi is slow/unresponsive, leaving you with no icons in Zebar (happens a lot with me)
Problem Case 4: Site is unresponsive
Problem Case 5: File is moved/removed from Nerdfonts site
Problem Case 6: File is updated and class names can change, making previous use of classes in Zebar do nothing
Consider adding
webfont.css
file (600kb size) to the project for offline use to solve all the problems above. Offline use does not seem to be breaking any licenses.Code to change:
The text was updated successfully, but these errors were encountered: