mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-11-22 23:50:19 +00:00
5c02b960ab
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.
21 lines
443 B
HTML
21 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>
|