serenity/Tests/LibWeb/Ref/space-glyph-width.html
Aliaksandr Kalenik 5c02b960ab 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.
2024-01-08 01:00:24 +01:00

22 lines
443 B
HTML

<!DOCTYPE html>
<html>
<head>
<link rel="match" href="reference/space-glyph-width-ref.html" />
<style>
@font-face {
font-family: 'HashFont';
src: url('assets/HashSans.woff');
unicode-range: U+0;
}
.text {
font-family: 'HashFont', 'SerenitySans';
font-size: 100px;
}
</style>
</head>
<body>
<div class="text">A B</div>
</body>
</html>