mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb/CSS: Make "CSSStyleValue -> list of font sources" code accessible
We'll want this in FontFace.
This commit is contained in:
parent
3288c71953
commit
0121e7028f
Notes:
github-actions[bot]
2025-04-07 09:01:54 +00:00
Author: https://github.com/AtkinsSJ
Commit: 0121e7028f
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4224
2 changed files with 34 additions and 26 deletions
|
@ -24,6 +24,7 @@ public:
|
|||
Optional<FlyString> format;
|
||||
};
|
||||
|
||||
static Vector<Source> sources_from_style_value(CSSStyleValue const&);
|
||||
static ParsedFontFace from_descriptors(CSSFontFaceDescriptors const&);
|
||||
|
||||
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, Optional<FlyString> font_language_override, Optional<OrderedHashMap<FlyString, i64>> font_feature_settings, Optional<OrderedHashMap<FlyString, double>> font_variation_settings);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue