Add ahem font

Signed-off-by: Uthman Yahaya Baba <uthmanyahayababa@gmail.com>
This commit is contained in:
Uthman Yahaya Baba 2025-05-31 19:43:57 +01:00
parent 02efd6d46a
commit adea65f46a
2 changed files with 7 additions and 0 deletions

View file

@ -822,12 +822,15 @@ impl RemoteWebFontDownloader {
let document_context = &state.document_context;
let document_origin = document_context.document_url.origin();
let request = RequestBuilder::new(
state.webview_id,
url.clone().into(),
Referrer::ReferrerUrl(document_context.document_url.clone()),
)
.destination(Destination::Font)
.origin(document_origin)
.mode(RequestMode::CorsMode)
.credentials_mode(CredentialsMode::CredentialsSameOrigin)
.service_workers_mode(ServiceWorkersMode::All)

View file

@ -1,3 +1,7 @@
@font-face {
font-family: Ahem;
src: url('/fonts/Ahem.ttf');
}
body {
font-family: 'ahem';
font-size: 100px;