Currently, I add the font Source Sans Pro via <link href="https://fonts.googleapis.com/css2?family=Source+Sans+Pro&display=swap" rel="stylesheet">
but this cannot load the font when the user is offline. So, I would like to add the font as local resource but I cannot make it work. Here is what I tried:
Delete above
<link ...>
.Add
<link href="css/source-sans-pro/css/source-sans-pro.css" rel="stylesheet" />
to<head></head>
.Add file "source-sans-pro.css" to "wwwroot/css/source-sans-pro/css/" with content
@font-face { font-family: 'Source Sans Pro'; src: url('../fonts/SourceSansPro-Regular.ttf'); }
Download font from here and add it to "css/source-sans-pro/font/".
Unfortunately, the font is not Source Sans Pro. What am I doing wrong?
Many thanks!