“How to use .OTF (or other desktop) fonts to your website?”
If you would like to use your desktop fonts to your website, do this!
CSS
- Select and place fonts to the server.
- Copy and paste codes below to your stylesheet.
- Replace font-family: ‘
FONT1‘ on both@font-faceandpwith your own font name. - You may change
normaltoboldif necessary.
@font-face {
font-family: 'FONT1';
src: url("../fonts/YOUR-FONT-LOCATION.otf") format("opentype");
font-weight: normal;
font-style: normal;
}
p {
font-family: 'FONT1', sans-serif;
}