mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2026-04-18 09:50:27 +00:00
Pass the requested font weight and slope to generic_font_name() and use them to select the most suitable font family. Families that have the exact requested weight are strongly preferred, followed by families with more style variety. This ensures that when CSS requests bold text with a generic font family like `serif`, we select a family that actually supports bold weights rather than one that only has regular weight. Co-authored-by: Jelle Raaijmakers <jelle@ladybird.org> |
||
|---|---|---|
| .. | ||
| EventLoopPlugin.cpp | ||
| EventLoopPlugin.h | ||
| FontPlugin.cpp | ||
| FontPlugin.h | ||
| ImageCodecPlugin.cpp | ||
| ImageCodecPlugin.h | ||
| Timer.cpp | ||
| Timer.h | ||