mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 08:48:11 +00:00
LibGfx+LibWeb: Update for_each_glyph_position to use font cascade list
This change updates function that builds list of glyphs to use font cascade list to find font for each code point.
This commit is contained in:
parent
2cb0039a13
commit
df57d7ca68
8 changed files with 66 additions and 16 deletions
21
Tests/LibWeb/Ref/unicode-range.html
Normal file
21
Tests/LibWeb/Ref/unicode-range.html
Normal file
|
@ -0,0 +1,21 @@
|
|||
<!DOCTYPE html>
|
||||
<html>
|
||||
<head>
|
||||
<link rel="match" href="reference/unicode-range-ref.html" />
|
||||
<style>
|
||||
@font-face {
|
||||
font-family: 'HashFont';
|
||||
src: url('assets/HashSans.woff');
|
||||
unicode-range: U+0041; /* Only letter 'A' */
|
||||
}
|
||||
|
||||
.text {
|
||||
font-family: 'HashFont', 'SerenitySans';
|
||||
font-size: 100px;
|
||||
}
|
||||
</style>
|
||||
</head>
|
||||
<body>
|
||||
<div class="text">AB</div>
|
||||
</body>
|
||||
</html>
|
Loading…
Add table
Add a link
Reference in a new issue