Question 1 : why doesn’t the correct type face not appear on this page? I am using Josefin Sans, sans-serif, pulled from Google fonts. Although I did put it into the Base Font Properties, I also put it in the CSS as well.
Question 2: I can’t seem to get that date aligned center. In the CSS, I have this:
.date-line {
/* Styles for the date line at the bottom */
font-family: ‘Josefin Sans’, sans-serif;
margin-top: 15px;
font-size: 1.1em;
font-weight: 400;
text-align: center;
}
As for the type face, Iwas mistaken. The Josefin Sans font does appear correctly.
I am somewhat confused as to the way I implement it. Apart from inscribimg it in the BASE FONT PROPERTIES, I have it in the CSS all over the place. Isn’t this redundant? Anyway, it works.
.date-line {
/* Styles for the date line at the bottom */
font-family: 'Josefin Sans', sans-serif;
margin-top: 15px;
font-size: 1.1em;
font-weight: bold;
}
I suggest that you use something like the bottom line for all your font files since I think that your current code doesn’t properly point to the font files. I don’t know the location but my code assumes it’s in /backlight/custom/fonts, adjust as needed.
Hello Daniel,
I am using Josefin_Sans/JosefinSans-Italic-VariableFont_wght.ttf as well as JosefinSans-VariableFont_wght.ttf In the backlight/custom/fonts folder.
It doesn’t seem the same way of describing the font.
So, I am trying this:
@font-face {
font-family: 'Josefin Sans';
src: url('/backlight/custom/fonts/JosefinSans-VariableFont_wght.ttf') format('truetype-variations');
font-weight: 100 900; /* Define the range of available weights */
font-style: normal; /* Define the style as normal (upright) */
}
@font-face {
font-family: 'Josefin Sans';
src: url('/backlight/custom/fonts/JosefinSans-Italic-VariableFont_wght.ttf') format('truetype-variations');
font-weight: 100 900; /* Use the same weight range */
font-style: italic; /* Define the style as italic */
}
.body {
font-family: 'Josefin Sans', sans-serif;
}