summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/CSS/FontFace.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-03-31 16:39:52 +0100
committerAndreas Kling <kling@serenityos.org>2022-04-07 21:20:14 +0200
commitdbbd6d35083af61963d25da21fae26572dedc4eb (patch)
tree4bbe615aa42b8ad3c6ea5f4b9192cb5caebbf9d6 /Userland/Libraries/LibWeb/CSS/FontFace.h
parentef7d80ced2b6d6ed8fcd7be4de9db839df7073b9 (diff)
downloadserenity-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.h7
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;
};
}