Hello,
I want to use the font “Tstar” for my headlines. This is no Google font.
The body font should be “Courier Prime”.
I´ve created a child theme and copied both fonts in a “fonts” folder.
Then I wrote this code in the style.css-file:
/* courier-prime-regular - latin /
@font-face {
font-family: ‘Courier Prime’;
font-style: normal;
font-weight: 400;
src: url(’…/fonts/courier-prime-v1-latin-regular.eot’); / IE9 Compat Modes /
src: local(‘Courier Prime Regular’), local(‘CourierPrime-Regular’),
url(’…/fonts/courier-prime-v1-latin-regular.eot?#iefix’) format(‘embedded-opentype’), / IE6-IE8 /
url(’…/fonts/courier-prime-v1-latin-regular.woff2’) format(‘woff2’), / Super Modern Browsers /
url(’…/fonts/courier-prime-v1-latin-regular.woff’) format(‘woff’), / Modern Browsers /
url(’…/fonts/courier-prime-v1-latin-regular.ttf’) format(‘truetype’), / Safari, Android, iOS /
url(’…/fonts/courier-prime-v1-latin-regular.svg#CourierPrime’) format(‘svg’); / Legacy iOS */
}
/* Tstar /
@font-face {
font-family: ‘Tstar’;
font-style: normal;
font-weight: 400;
src: url(’…/fonts/tstar-v1-latin-regular.eot’); / IE9 Compat Modes /
src: local(‘Tstar Regular’), local(‘Tstar-Regular’),
url(’…/fonts/tstar-v1-latin-regular.eot?#iefix’) format(‘embedded-opentype’), / IE6-IE8 /
url(’…/fonts/tstar-v1-latin-regular.woff2’) format(‘woff2’), / Super Modern Browsers /
url(’…/fonts/tstar-v1-latin-regular.woff’) format(‘woff’), / Modern Browsers /
url(’…/fonts/tstar-v1-latin-regular.ttf’) format(‘truetype’), / Safari, Android, iOS /
url(’…/fonts/tstar-v1-latin-regular.svg#Tstar’) format(‘svg’); / Legacy iOS */
}
I wrote this code in the CSS of x-theme:
body {
font-family: “Courier Prime”!important;
}
h1, h2, h3, h4, h5, h6 {
font-family: “Tstar”!important;
}
But it doesn´t work. The headlines don´t show the font “Tstar”.
Could you help me please?
Thanks a lot in advance.
Best regards,
Christine


