summaryrefslogtreecommitdiff
path: root/Userland/Libraries/LibWeb/Painting/ShadowPainting.h
diff options
context:
space:
mode:
authorSam Atkins <atkinssj@serenityos.org>2022-03-24 15:20:25 +0000
committerAndreas Kling <kling@serenityos.org>2022-03-24 18:08:34 +0100
commit5aad32b5042ebd3fedc8f0d0dc5871d78a7ac6c5 (patch)
tree9fd3d1b8439c04db3b1d124ce1dae5a8dbfba1bd /Userland/Libraries/LibWeb/Painting/ShadowPainting.h
parent03daa4653fcc336262e6592fd2080cbfc437490b (diff)
downloadserenity-5aad32b5042ebd3fedc8f0d0dc5871d78a7ac6c5.zip
LibWeb: Implement text-shadow painting
We don't yet take the spread-distance parameter into account, since we don't have a way to "inflate" the text shadow. Also, I'm not sure if we need to inflate the shadow slightly anyway. Blurred shadows of our pixel fonts seem very faint. Part of this is that a blur of < 3px does nothing, see #13231, but even so we might want to inflate it a little.
Diffstat (limited to 'Userland/Libraries/LibWeb/Painting/ShadowPainting.h')
-rw-r--r--Userland/Libraries/LibWeb/Painting/ShadowPainting.h2
1 files changed, 2 insertions, 0 deletions
diff --git a/Userland/Libraries/LibWeb/Painting/ShadowPainting.h b/Userland/Libraries/LibWeb/Painting/ShadowPainting.h
index 2e6738b75e..129a969682 100644
--- a/Userland/Libraries/LibWeb/Painting/ShadowPainting.h
+++ b/Userland/Libraries/LibWeb/Painting/ShadowPainting.h
@@ -7,6 +7,7 @@
#pragma once
#include <LibGfx/Color.h>
+#include <LibWeb/Forward.h>
#include <LibWeb/Painting/PaintContext.h>
namespace Web::Painting {
@@ -26,5 +27,6 @@ struct ShadowData {
};
void paint_box_shadow(PaintContext&, Gfx::IntRect const&, Vector<ShadowData> const&);
+void paint_text_shadow(PaintContext&, Layout::LineBoxFragment const&, Vector<ShadowData> const&);
}