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:
parent
861d22838d
commit
08517daa5a
5 changed files with 216 additions and 129 deletions
|
@ -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 {
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue