diff options
author | Sam Atkins <atkinssj@serenityos.org> | 2022-03-31 16:39:52 +0100 |
---|---|---|
committer | Andreas Kling <kling@serenityos.org> | 2022-04-07 21:20:14 +0200 |
commit | dbbd6d35083af61963d25da21fae26572dedc4eb (patch) | |
tree | 4bbe615aa42b8ad3c6ea5f4b9192cb5caebbf9d6 /Userland/Libraries/LibWeb/CSS/FontFace.h | |
parent | ef7d80ced2b6d6ed8fcd7be4de9db839df7073b9 (diff) | |
download | serenity-dbbd6d35083af61963d25da21fae26572dedc4eb.zip |
LibWeb: Parse `@font-face` `unicode-range` descriptor
Diffstat (limited to 'Userland/Libraries/LibWeb/CSS/FontFace.h')
-rw-r--r-- | Userland/Libraries/LibWeb/CSS/FontFace.h | 7 |
1 files changed, 5 insertions, 2 deletions
diff --git a/Userland/Libraries/LibWeb/CSS/FontFace.h b/Userland/Libraries/LibWeb/CSS/FontFace.h index e90aa75b19..821a33cd46 100644 --- a/Userland/Libraries/LibWeb/CSS/FontFace.h +++ b/Userland/Libraries/LibWeb/CSS/FontFace.h @@ -8,6 +8,7 @@ #include <AK/FlyString.h> #include <AK/URL.h> +#include <LibWeb/CSS/UnicodeRange.h> namespace Web::CSS { @@ -17,16 +18,18 @@ public: AK::URL url; }; - FontFace(FlyString font_family, Vector<Source> sources); + FontFace(FlyString font_family, Vector<Source> sources, Vector<UnicodeRange> unicode_ranges); ~FontFace() = default; FlyString font_family() const { return m_font_family; } Vector<Source> const& sources() const { return m_sources; } - // FIXME: font-style, font-weight, font-stretch, unicode-range, font-feature-settings + Vector<UnicodeRange> const& unicode_ranges() const { return m_unicode_ranges; } + // FIXME: font-style, font-weight, font-stretch, font-feature-settings private: FlyString m_font_family; Vector<Source> m_sources; + Vector<UnicodeRange> m_unicode_ranges; }; } |