How I can use local font in my app #19270
Unanswered
mariaamelia
asked this question in
General
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
-
I need use a local font in my app and I dont know how to use.
I also created my file style:
@font-face {
font-family: 'myfont';
src: url('../fonts/myfont.otf') format('opentype');
font-weight: 400;
font-style: normal;
}
and in my app I used :
<style> @import url("../src/assets/css/styles.css"); </style>and applied in my div
How I can use in a global way?
I do not want to use in all the tag style="font-family: myfont;" but I want to use myfont as a global font
Beta Was this translation helpful? Give feedback.
All reactions