mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-08-09 09:39:39 +00:00
LibWeb: Parse @font-face
unicode-range
descriptor
This commit is contained in:
parent
ef7d80ced2
commit
dbbd6d3508
Notes:
sideshowbarker
2024-07-17 22:55:25 +09:00
Author: https://github.com/AtkinsSJ
Commit: dbbd6d3508
Pull-request: https://github.com/SerenityOS/serenity/pull/13407
Reviewed-by: https://github.com/trflynn89
4 changed files with 43 additions and 4 deletions
|
@ -580,6 +580,13 @@ void dump_font_face_rule(StringBuilder& builder, CSS::CSSFontFaceRule const& rul
|
|||
indent(builder, indent_levels + 2);
|
||||
builder.appendff("{}\n", source.url);
|
||||
}
|
||||
|
||||
indent(builder, indent_levels + 1);
|
||||
builder.append("unicode-ranges:\n");
|
||||
for (auto const& unicode_range : font_face.unicode_ranges()) {
|
||||
indent(builder, indent_levels + 2);
|
||||
builder.appendff("{}\n", unicode_range.to_string());
|
||||
}
|
||||
}
|
||||
|
||||
void dump_import_rule(StringBuilder& builder, CSS::CSSImportRule const& rule, int indent_levels)
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue