mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 05:27:46 +00:00
LibWeb: Parse @font-face
unicode-range
descriptor
This commit is contained in:
parent
ef7d80ced2
commit
dbbd6d3508
4 changed files with 43 additions and 4 deletions
|
@ -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;
|
||||
};
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue