Comments (7)
Hey @ulysses-ck,
Actually, you need to use node specific delimiters.
https://github.com/rishi-raj-jain/astro-font?tab=readme-ov-file#local-fonts is how you can do it.
from astro-font.
https://github.com/KingPr0o7/portfolio/blob/main/src/layouts/Layout.astro#L119-L142 is the current way how it works well in Windows. Basically, what we see here: https://github.com/rishi-raj-jain/astro-font?tab=readme-ov-file#local-fonts.
from astro-font.
Can confirm this works!
from astro-font.
Thanks, it is working right now in production.
I don't know why doesn't work in development mode. But thanks. I suspect is the problem of windows with the subject of the backslash
from astro-font.
you need to use node specific delimiters.
https://github.com/rishi-raj-jain/astro-font?tab=readme-ov-file#local-fonts is how you can do it.
Yeah, with node specific delimiters it would even work in development mode as well.
https://github.com/rishi-raj-jain/astro-font?tab=readme-ov-file#local-fonts is how you can do it.
from astro-font.
@KingPr0o7 had the same issue and using join solved it. Hence, I've updated the docs to reflect the correct usage everywhere.
from astro-font.
Thank you, @KingPr0o7!
from astro-font.
Related Issues (20)
- Self Serve Google Fonts HOT 1
- Feature request: get fonts data or url HOT 6
- Vercel Build will lead to a blank white page HOT 12
- Feature request: Add CSS Variables or className funtionality HOT 11
- Error `no such file or directory` trying to load the .txt file from temp HOT 19
- Pass Google Font path as the URL from Google Fonts HOT 5
- font request: geist & geist mono HOT 2
- Path are malformed HOT 7
- Add support for several urls per src HOT 2
- Compatibility with fontaine when using css variables HOT 3
- More convenient path for local fonts HOT 4
- Fonts generated on every change HOT 3
- not working on windows HOT 2
- Feature request: add fallback for monospaced fonts HOT 4
- When should we use preload? HOT 9
- Is style correctly defined in README? HOT 4
- Node errors in Cloudlflare HOT 2
- No font's Loading HOT 16
- Use `fallback` property in development mode
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from astro-font.