-
-
Notifications
You must be signed in to change notification settings - Fork 1.2k
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
LibGfx+LibWeb: Use harfbuzz for text shaping
This replaces glyph positioning system with harfbuzz's shaping algorithm. Adding support for bidirectional encoded text.
- Loading branch information
1 parent
0d05ab2
commit 0d63269
Showing
48 changed files
with
363 additions
and
331 deletions.
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
20 changes: 10 additions & 10 deletions
20
Tests/LibWeb/Layout/expected/block-and-inline/button-with-after-pseudo.txt
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline | ||
BlockContainer <html> at (0,0) content-size 800x75 [BFC] children: not-inline | ||
BlockContainer <body> at (8,8) content-size 784x59 children: inline | ||
frag 0 from BlockContainer start: 0, length: 0, rect: [13,10 414.640625x55] baseline: 44.484375 | ||
BlockContainer <button.button_button___eDCW> at (13,10) content-size 414.640625x55 positioned inline-block [BFC] children: not-inline | ||
BlockContainer <(anonymous)> at (13,10) content-size 414.640625x55 flex-container(column) [FFC] children: not-inline | ||
BlockContainer <(anonymous)> at (13,10) content-size 414.640625x55 flex-item [BFC] children: inline | ||
frag 0 from TextNode start: 0, length: 14, rect: [13,10 414.640625x55] baseline: 42.484375 | ||
frag 0 from BlockContainer start: 0, length: 0, rect: [13,10 414.703125x55] baseline: 44.484375 | ||
BlockContainer <button.button_button___eDCW> at (13,10) content-size 414.703125x55 positioned inline-block [BFC] children: not-inline | ||
BlockContainer <(anonymous)> at (13,10) content-size 414.703125x55 flex-container(column) [FFC] children: not-inline | ||
BlockContainer <(anonymous)> at (13,10) content-size 414.703125x55 flex-item [BFC] children: inline | ||
frag 0 from TextNode start: 0, length: 14, rect: [13,10 414.703125x55] baseline: 42.484375 | ||
"See more games" | ||
TextNode <#text> | ||
BlockContainer <(anonymous)> at (9,9) content-size 422.640625x57 positioned [BFC] children: inline | ||
BlockContainer <(anonymous)> at (9,9) content-size 422.703125x57 positioned [BFC] children: inline | ||
TextNode <#text> | ||
|
||
ViewportPaintable (Viewport<#document>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x75] | ||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x59] | ||
PaintableWithLines (BlockContainer<BUTTON>.button_button___eDCW) [8,8 424.640625x59] | ||
PaintableWithLines (BlockContainer(anonymous)) [13,10 414.640625x55] | ||
PaintableWithLines (BlockContainer(anonymous)) [13,10 414.640625x55] | ||
PaintableWithLines (BlockContainer<BUTTON>.button_button___eDCW) [8,8 424.703125x59] | ||
PaintableWithLines (BlockContainer(anonymous)) [13,10 414.703125x55] | ||
PaintableWithLines (BlockContainer(anonymous)) [13,10 414.703125x55] | ||
TextPaintable (TextNode<#text>) | ||
PaintableWithLines (BlockContainer(anonymous)) [9,9 422.640625x57] | ||
PaintableWithLines (BlockContainer(anonymous)) [9,9 422.703125x57] |
20 changes: 10 additions & 10 deletions
20
Tests/LibWeb/Layout/expected/block-and-inline/button-with-before-pseudo.txt
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 |
---|---|---|
@@ -1,21 +1,21 @@ | ||
Viewport <#document> at (0,0) content-size 800x600 children: not-inline | ||
BlockContainer <html> at (0,0) content-size 800x75 [BFC] children: not-inline | ||
BlockContainer <body> at (8,8) content-size 784x59 children: inline | ||
frag 0 from BlockContainer start: 0, length: 0, rect: [13,10 414.640625x55] baseline: 44.484375 | ||
BlockContainer <button.button_button___eDCW> at (13,10) content-size 414.640625x55 positioned inline-block [BFC] children: not-inline | ||
BlockContainer <(anonymous)> at (9,9) content-size 422.640625x57 positioned [BFC] children: inline | ||
frag 0 from BlockContainer start: 0, length: 0, rect: [13,10 414.703125x55] baseline: 44.484375 | ||
BlockContainer <button.button_button___eDCW> at (13,10) content-size 414.703125x55 positioned inline-block [BFC] children: not-inline | ||
BlockContainer <(anonymous)> at (9,9) content-size 422.703125x57 positioned [BFC] children: inline | ||
TextNode <#text> | ||
BlockContainer <(anonymous)> at (13,10) content-size 414.640625x55 flex-container(column) [FFC] children: not-inline | ||
BlockContainer <(anonymous)> at (13,10) content-size 414.640625x55 flex-item [BFC] children: inline | ||
frag 0 from TextNode start: 0, length: 14, rect: [13,10 414.640625x55] baseline: 42.484375 | ||
BlockContainer <(anonymous)> at (13,10) content-size 414.703125x55 flex-container(column) [FFC] children: not-inline | ||
BlockContainer <(anonymous)> at (13,10) content-size 414.703125x55 flex-item [BFC] children: inline | ||
frag 0 from TextNode start: 0, length: 14, rect: [13,10 414.703125x55] baseline: 42.484375 | ||
"See more games" | ||
TextNode <#text> | ||
|
||
ViewportPaintable (Viewport<#document>) [0,0 800x600] | ||
PaintableWithLines (BlockContainer<HTML>) [0,0 800x75] | ||
PaintableWithLines (BlockContainer<BODY>) [8,8 784x59] | ||
PaintableWithLines (BlockContainer<BUTTON>.button_button___eDCW) [8,8 424.640625x59] | ||
PaintableWithLines (BlockContainer(anonymous)) [9,9 422.640625x57] | ||
PaintableWithLines (BlockContainer(anonymous)) [13,10 414.640625x55] | ||
PaintableWithLines (BlockContainer(anonymous)) [13,10 414.640625x55] | ||
PaintableWithLines (BlockContainer<BUTTON>.button_button___eDCW) [8,8 424.703125x59] | ||
PaintableWithLines (BlockContainer(anonymous)) [9,9 422.703125x57] | ||
PaintableWithLines (BlockContainer(anonymous)) [13,10 414.703125x55] | ||
PaintableWithLines (BlockContainer(anonymous)) [13,10 414.703125x55] | ||
TextPaintable (TextNode<#text>) |
Oops, something went wrong.