mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-29 04:09:13 +00:00
LibWeb: Implement FontFace.load() for url() based font sources
This commit is contained in:
parent
b7526a39b0
commit
28f728dfdb
Notes:
sideshowbarker
2024-07-17 01:12:07 +09:00
Author: https://github.com/ADKaster
Commit: 28f728dfdb
Pull-request: https://github.com/SerenityOS/serenity/pull/24339
4 changed files with 123 additions and 6 deletions
|
@ -72,9 +72,11 @@ public:
|
|||
|
||||
Bindings::FontFaceLoadStatus status() const { return m_status; }
|
||||
|
||||
JS::ThrowCompletionOr<JS::NonnullGCPtr<JS::Promise>> load();
|
||||
JS::NonnullGCPtr<JS::Promise> load();
|
||||
JS::NonnullGCPtr<JS::Promise> loaded() const;
|
||||
|
||||
void load_font_source();
|
||||
|
||||
private:
|
||||
FontFace(JS::Realm&, JS::NonnullGCPtr<WebIDL::Promise> font_status_promise, Vector<ParsedFontFace::Source> urls, ByteBuffer data, String family, FontFaceDescriptors const& descriptors);
|
||||
|
||||
|
@ -87,6 +89,7 @@ private:
|
|||
String m_weight;
|
||||
String m_stretch;
|
||||
String m_unicode_range;
|
||||
Vector<Gfx::UnicodeRange> m_unicode_ranges;
|
||||
String m_feature_settings;
|
||||
String m_variation_settings;
|
||||
String m_display;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue