mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 07:57:47 +00:00
LibWeb: Align text shadows the same way we align text
This makes the shadow line-up correctly on Acid3. :^)
This commit is contained in:
parent
05f9146af8
commit
1499d2421e
1 changed files with 1 additions and 1 deletions
|
@ -159,7 +159,7 @@ void paint_text_shadow(PaintContext& context, Layout::LineBoxFragment const& fra
|
||||||
Gfx::Painter shadow_painter { *shadow_bitmap };
|
Gfx::Painter shadow_painter { *shadow_bitmap };
|
||||||
shadow_painter.set_font(context.painter().font());
|
shadow_painter.set_font(context.painter().font());
|
||||||
// FIXME: "Spread" the shadow somehow.
|
// FIXME: "Spread" the shadow somehow.
|
||||||
shadow_painter.draw_text(text_rect, fragment.text(), Gfx::TextAlignment::TopLeft, layer.color);
|
shadow_painter.draw_text(text_rect, fragment.text(), Gfx::TextAlignment::CenterLeft, layer.color);
|
||||||
|
|
||||||
// Blur
|
// Blur
|
||||||
Gfx::FastBoxBlurFilter filter(*shadow_bitmap);
|
Gfx::FastBoxBlurFilter filter(*shadow_bitmap);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue