1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-06-01 06:28:13 +00:00

LibGfx: Take into account unicode ranges to find font for space glyph

Instead of assuming that the first font in the cascade font list will
have a glyph for space, we need to find it in the list taking into
account unicode ranges.
This commit is contained in:
Aliaksandr Kalenik 2024-01-08 00:10:10 +01:00 committed by Andreas Kling
parent 8b32f4ae7a
commit 5c02b960ab
3 changed files with 36 additions and 1 deletions

View file

@ -0,0 +1,13 @@
<!DOCTYPE html>
<html>
<head>
<style>
.text {
font-size: 100px;
}
</style>
</head>
<body>
<div class="text">A B</div>
</body>
</html>