mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 23:17:45 +00:00
LibWeb: Find font that has whitespace glyph in first_available_font()
Fixes https://github.com/SerenityOS/serenity/issues/22853
This commit is contained in:
parent
6685e4cb61
commit
1294cfb55c
3 changed files with 25 additions and 3 deletions
|
@ -0,0 +1,14 @@
|
|||
<!doctype html><link rel="match" href="reference/first-available-font-should-include-whitespace-ref.html" /><style>
|
||||
* {
|
||||
outline: 1px solid black;
|
||||
font-family: HashFont, SerenitySans;
|
||||
}
|
||||
div {
|
||||
width: min-content;
|
||||
}
|
||||
@font-face {
|
||||
font-family: 'HashFont';
|
||||
src: url('assets/HashSans.woff');
|
||||
unicode-range: U+0;
|
||||
}
|
||||
</style><div class="test">hello friends
|
|
@ -0,0 +1,9 @@
|
|||
<!doctype html><style>
|
||||
* {
|
||||
outline: 1px solid black;
|
||||
font-family: SerenitySans;
|
||||
}
|
||||
div {
|
||||
width: min-content;
|
||||
}
|
||||
</style><div class="test">hello friends
|
Loading…
Add table
Add a link
Reference in a new issue