How to Load Custom Fonts in RazorLight Templates #544
Unanswered
skalahonza
asked this question in
Q&A
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
Hi everyone,
I am using RazorLight for template rendering in my .NET project, and I need to load custom fonts within my RazorLight templates. Here are the steps I've taken so far:
Added Custom Fonts:
.woff,.woff2) in thewwwroot/fontsdirectory of my project.Defined Fonts in CSS:
Is there any better practice to do this?
I searched the discussion with no luck: https://github.com/toddams/RazorLight/discussions?discussions_q=font
Beta Was this translation helpful? Give feedback.
All reactions