mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-09-03 16:16:43 +00:00
LibWeb/CSS: Parse font-width descriptor and its font-stretch alias
This commit is contained in:
parent
4a67b28600
commit
b1870e7029
Notes:
github-actions[bot]
2024-09-28 12:43:32 +00:00
Author: https://github.com/AtkinsSJ
Commit: b1870e7029
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/1554
5 changed files with 24 additions and 6 deletions
|
@ -23,7 +23,7 @@ public:
|
|||
Optional<FlyString> format;
|
||||
};
|
||||
|
||||
ParsedFontFace(FlyString font_family, Optional<int> weight, Optional<int> slope, Vector<Source> sources, Vector<Gfx::UnicodeRange> unicode_ranges, Optional<Percentage> ascent_override, Optional<Percentage> descent_override, Optional<Percentage> line_gap_override, FontDisplay font_display, Optional<FlyString> font_named_instance);
|
||||
ParsedFontFace(FlyString font_family, Optional<int> weight, Optional<int> slope, Optional<int> width, Vector<Source> sources, Vector<Gfx::UnicodeRange> unicode_ranges, Optional<Percentage> ascent_override, Optional<Percentage> descent_override, Optional<Percentage> line_gap_override, FontDisplay font_display, Optional<FlyString> font_named_instance);
|
||||
~ParsedFontFace() = default;
|
||||
|
||||
Optional<Percentage> ascent_override() const { return m_ascent_override; }
|
||||
|
@ -33,6 +33,7 @@ public:
|
|||
Optional<FlyString> font_named_instance() const { return m_font_named_instance; }
|
||||
Optional<int> slope() const { return m_slope; }
|
||||
Optional<int> weight() const { return m_weight; }
|
||||
Optional<int> width() const { return m_width; }
|
||||
Optional<Percentage> line_gap_override() const { return m_line_gap_override; }
|
||||
Vector<Source> const& sources() const { return m_sources; }
|
||||
Vector<Gfx::UnicodeRange> const& unicode_ranges() const { return m_unicode_ranges; }
|
||||
|
@ -40,8 +41,9 @@ public:
|
|||
private:
|
||||
FlyString m_font_family;
|
||||
Optional<FlyString> m_font_named_instance;
|
||||
Optional<int> m_weight { 0 };
|
||||
Optional<int> m_slope { 0 };
|
||||
Optional<int> m_weight;
|
||||
Optional<int> m_slope;
|
||||
Optional<int> m_width;
|
||||
Vector<Source> m_sources;
|
||||
Vector<Gfx::UnicodeRange> m_unicode_ranges;
|
||||
Optional<Percentage> m_ascent_override;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue