I am building a website with Thymeleaf and SpringBoot. I am trying to create titles with specific fonts, but if I try to access the ttf files via the browser it can not find them. They are under resources/static/fonts.
<!DOCTYPE html>
<html xmlns:th="http://www.thymeleaf.org">
<head>
<meta charset="UTF-8">
<title>Insert your title here</title>
</head>
<body>
<header>
<div class="searchBar">
<img th:src="filter.png" alt="filter" id="filterIcon" class="icon" onclick="toggleDropdown()">
<input id="searchQueryInput" type="text" name="searchQueryInput" placeholder="Search" value=""/>
<img th:src="search.png" alt="search" id="searchIcon" class="icon" onclick="submitSearch()">
</div>
<div class="user-section">
<img th:src="user_dark.png" alt="Account" id="user-icon" class="icon" onclick="location.href='/register'">
</div>
</header>
<main>
<div class="introduction">
<img th:src="logo.png" alt="logo" id="logo" class="logo">
<div class="headings">
<h1>Cooking Made Easy</h1>
<h2>Deine Rezepte, Dein Genuss!</h2>
</div>
</div>
</main>
</body>
</html>