mirror of
https://github.com/servo/servo.git
synced 2025-06-06 16:45:39 +00:00
Add ahem font
Signed-off-by: Uthman Yahaya Baba <uthmanyahayababa@gmail.com>
This commit is contained in:
parent
02efd6d46a
commit
adea65f46a
2 changed files with 7 additions and 0 deletions
|
@ -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)
|
||||
|
|
4
tests/wpt/mozilla/tests/css/css/ahem.css
vendored
4
tests/wpt/mozilla/tests/css/css/ahem.css
vendored
|
@ -1,3 +1,7 @@
|
|||
@font-face {
|
||||
font-family: Ahem;
|
||||
src: url('/fonts/Ahem.ttf');
|
||||
}
|
||||
body {
|
||||
font-family: 'ahem';
|
||||
font-size: 100px;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue