I am a beginner in CSS and want to incorporate the fonts poppins and open-sans in doxygen.
Here is my font-face code for Open_Sans:
@font-face {
font-family: 'Open_Sans';
src: url('fonts\Open_Sans\OpenSans-Regular.ttf') format('truetype');
}
The fonts folder is located in the same directory as the CSS file in my DIR structure.
Although I can access the file path successfully in VS Code editor, the webpage displays an error message in the console stating `net::ERR_FILE_NOT_FOUND'
I have tried various paths including /fonts/, ./fonts/, and C:/complete-path/fonts/ without any luck. I suspect it might be related to doxygen rather than a syntax error.
EDIT
To troubleshoot, I attempted using an online version of Open Sans which did not trigger any errors on the console, yet the font still failed to display correctly. Here is the link for reference. I am leaning towards an issue with doxygen causing this problem.
@font-face {
font-family: 'Open_Sans';
src: url('https://fonts.gstatic.com/s/opensans/v20/mem8YaGs126MiZpBA-UFWJ0bbck.woff2') format('woff2');
}