-
Notifications
You must be signed in to change notification settings - Fork 1
Open
Labels
enhancementNew feature or requestNew feature or request
Description
Hi, I can't get custom fonts working. They’re in the public directory (eg. /public/fonts/Inter-Regular.ttf) which is an allowed directory as in the default configuration:
'allowed_directories' => [
public_path(),
],
'base_dir' => '/',In my CSS I've set the following:
@font-face {
font-family: "Inter";
src: url("/public/fonts/Inter-Regular.ttf") format("ttf");
/* I also tried src: url("/fonts/Inter-Regular.ttf") format("ttf"); */
font-weight: 400;
}But I had no luck. I also tried using .woff. Do you have any idea what the problem could be?
PS: I love your package! ❤️
Metadata
Metadata
Assignees
Labels
enhancementNew feature or requestNew feature or request