Answer the question
In order to leave comments, you need to log in
How to include a font in CSS if it is divided into font files in lowercase and separately in uppercase?
Hello!
The situation is as follows, there are fonts, and they need to be connected to the site via CSS.
The font is divided into 4 files:
Font - Bold Caps (Bold in upper case)
Font - Bold - (Bold in lower case)
Font - Regular Caps (Regular in upper case)
Font - Regular (Regular in lower case)
I include a bold font:
@font-face {
font-family: 'FontName';
src: url('/fonts/Font - Bold Caps.ttf');
font-weight: 700;
font-style: normal;
}
@font-face {
font-family: 'FontName';
src: url('/fonts/Font - Regular Caps.ttf');
font-weight: normal;
font-style: normal;
}
body {
font: 16px FontName;
}
Answer the question
In order to leave comments, you need to log in
In general, the solution turned out to be the following:
Fonts can be connected with different styles ( bold , italic , normal).
BUT each file must have both upper and lower case.
Font-Bold (Top and Bottom)
Font-Italic (Top and Bottom)
Font-Regular (Top and Bottom)
Thanks for the help
@potapchino
Didn't find what you were looking for?
Ask your questionAsk a Question
731 491 924 answers to any question