Issue
I am currently doing a recipe project that requires a certain font and I don't have the font and I am not sure how to go about getting it. The font style is called young serif I have a file with it but am unsure how to get it over to my visual studio.
Solution
you have 2ways for adding Young Serif from Google Fonts either in the head of your HTML file by adding this code as indicated in Google Fonts
<link rel="preconnect" href="https://fonts.googleapis.com">
<link rel="preconnect" href="https://fonts.gstatic.com" crossorigin>
<link href="https://fonts.googleapis.com/css2?family=Young+Serif&display=swap" rel="stylesheet">
or by adding this code into your CSS file
@import url('https://fonts.googleapis.com/css2?family=Young+Serif&display=swap')
then to add the font in your class .myclass
.myclass{
font-family: "Young Serif", serif;
}
I Hope this help
Answered By - Mehdi
0 comments:
Post a Comment
Note: Only a member of this blog may post a comment.