mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-10 01:59:31 +00:00
LibGfx+LibWeb: Rename Gfx::WOFF2::Font to Gfx::WOFF2::Typeface
It's a leftover from VectorFont -> Typeface renaming
This commit is contained in:
parent
1d2e559e13
commit
c09b5b8df0
Notes:
sideshowbarker
2024-07-16 22:11:09 +09:00
Author: https://github.com/kalenikaliaksandr
Commit: c09b5b8df0
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/600
7 changed files with 18 additions and 18 deletions
|
@ -8,7 +8,7 @@
|
|||
#include <LibGfx/Font/OpenType/Typeface.h>
|
||||
#include <LibGfx/Font/Typeface.h>
|
||||
#include <LibGfx/Font/WOFF/Typeface.h>
|
||||
#include <LibGfx/Font/WOFF2/Font.h>
|
||||
#include <LibGfx/Font/WOFF2/Typeface.h>
|
||||
#include <LibJS/Heap/Heap.h>
|
||||
#include <LibJS/Runtime/ArrayBuffer.h>
|
||||
#include <LibJS/Runtime/Realm.h>
|
||||
|
@ -45,7 +45,7 @@ static NonnullRefPtr<Core::Promise<NonnullRefPtr<Gfx::Typeface>>> load_vector_fo
|
|||
promise->resolve(woff.release_value());
|
||||
return;
|
||||
}
|
||||
auto woff2 = WOFF2::Font::try_load_from_externally_owned_memory(data);
|
||||
auto woff2 = WOFF2::Typeface::try_load_from_externally_owned_memory(data);
|
||||
if (!woff2.is_error()) {
|
||||
promise->resolve(woff2.release_value());
|
||||
return;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue