mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-01 21:59:07 +00:00
LibWeb/CSS: Add functions that report font format/technology support
Both `@supports` and `@font-face` need this. There may be some automatic way of querying whether our renderer supports these, but I couldn't figure it out, so here's a basic hard-coded list. I think the font-tech list has false negatives, as I don't know enough about fonts to determine what we support accurately.
This commit is contained in:
parent
1e6f703b30
commit
adfe8a9dcb
Notes:
github-actions[bot]
2025-03-17 10:01:24 +00:00
Author: https://github.com/AtkinsSJ
Commit: adfe8a9dcb
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/3941
2 changed files with 56 additions and 0 deletions
|
@ -113,4 +113,7 @@ private:
|
|||
bool m_is_css_connected { false };
|
||||
};
|
||||
|
||||
bool font_format_is_supported(FlyString const& name);
|
||||
bool font_tech_is_supported(FlyString const& name);
|
||||
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue