1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 21:27:35 +00:00

LibWeb: Improvements to font lookup

Parse out the font-family, font-size and font-weight values from CSS
and use them to perform a kinda-best-effort lookup against the system
font library.

We also now handle standard font names like "sans-serif", "monospace"
and others.
This commit is contained in:
Andreas Kling 2020-12-14 15:56:01 +01:00
parent 861d22838d
commit 08517daa5a
5 changed files with 216 additions and 129 deletions

View file

@ -103,6 +103,20 @@ enum class ValueID {
Right,
Justify,
VendorSpecificCenter,
Bold,
Bolder,
Large,
Larger,
Lighter,
Medium,
Normal,
Small,
Smaller,
XLarge,
XSmall,
XxLarge,
XxSmall,
XxxLarge,
};
enum class Position {