Avatar of APD Toronto
APD Toronto
Flag for Canada asked on

Using Specialized Fonts in CSS

Hi Experts,

I've never used specialized fonts in my CSS, would the following be correct?

@font-face {
    font-family: "Clibri";
    src: url(calibri.ttf) format("truetype");
}
* { 
    font-family: Calibri, Verdana, Tahoma;
}

Open in new window


I know that Calibri has 5-6 files, but I just copied the  main .ttf file in the same folder as my .css file. Is that correct?

Lastly, how can I tell if the browser is using my calibri, or the browser's default font?

Thanks
CSSFonts Typography

Avatar of undefined
Last Comment
Mukesh Yadav

8/22/2022 - Mon
ASKER CERTIFIED SOLUTION
Mukesh Yadav

THIS SOLUTION ONLY AVAILABLE TO MEMBERS.
View this solution by signing up for a free trial.
Members can start a 7-Day free trial and enjoy unlimited access to the platform.
See Pricing Options
Start Free Trial
GET A PERSONALIZED SOLUTION
Ask your own question & get feedback from real experts
Find out why thousands trust the EE community with their toughest problems.
This is the best money I have ever spent. I cannot not tell you how many times these folks have saved my bacon. I learn so much from the contributors.
rwheeler23