Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibWeb/CSS: Add valid default font if no font can be found
- Before: If a font cannot computed based on style values, e.g. if the family is incorrect (try 'lolol'), then the list of found fonts contains only the default emoji font. - After: The default font of the Font plugin is added to the top of an empty list of computed fonts. This way, we're failing gracefully on author error, and we still display emojis :]m Bonus: renamed `found_font` (misleading name; seems artifact) to `last_resort_font` (what it is)
- Loading branch information