I've been attempting to incorporate a unique font into my CSS class using font-face. I have experimented with both .otf and .ttf file formats, uploading the custom font files to an S3 bucket. I made sure to grant public permissions to the font files and tried utilizing both relative and full URL paths.
Could it be that AWS does not support this operation? Some answers I found mentioned implementing font-face in a similar manner but encountered browser compatibility issues.
CSS:
@font-face {
font-family: CustomFontName;
src: url(/pathToCustomName/CustomFontName.ttf);
}
div.testing{
font-family: CustomFontName;
font-size: 150px;
}
HTML:
<div class="testing"> TESTING CUSTOM FONT </div>
The class is being recognized correctly, but the font itself isn't being applied. Could this be an issue related to AWS or is there something obvious that I'm overlooking? Are there alternative methods for utilizing custom fonts on an AWS static site?