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:
parent
8b32f4ae7a
commit
5c02b960ab
3 changed files with 36 additions and 1 deletions
13
Tests/LibWeb/Ref/reference/space-glyph-width-ref.html
Normal file
13
Tests/LibWeb/Ref/reference/space-glyph-width-ref.html
Normal 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>
|
Loading…
Add table
Add a link
Reference in a new issue