mirror of
https://github.com/SerenityOS/serenity
synced 2024-07-22 02:26:11 +00:00
![Aliaksandr Kalenik](/assets/img/avatar_default.png)
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.
22 lines
443 B
HTML
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>
|