forked from SerenityOS/serenity
-
Notifications
You must be signed in to change notification settings - Fork 0
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
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.
- Loading branch information
1 parent
335097e
commit f50c462
Showing
3 changed files
with
36 additions
and
1 deletion.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
<!DOCTYPE html> | ||
<html> | ||
<head> | ||
<style> | ||
.text { | ||
font-size: 100px; | ||
} | ||
</style> | ||
</head> | ||
<body> | ||
<div class="text">A B</div> | ||
</body> | ||
</html> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,21 @@ | ||
<!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> |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters