LibWeb: Parse @font-face unicode-range descriptor

This commit is contained in:
Sam Atkins 2022-03-31 16:39:52 +01:00 committed by Andreas Kling
commit dbbd6d3508
Notes: sideshowbarker 2024-07-17 22:55:25 +09:00
4 changed files with 43 additions and 4 deletions

View file

@ -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)