mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-05-30 23:12:56 +00:00
LibWeb: Store FontCascadeList instead of Font in CanvasState
This is required to implement per-glyph font fallbacks in the upcoming changes.
This commit is contained in:
parent
455700d379
commit
2c64c6d773
Notes:
github-actions[bot]
2025-04-21 07:52:30 +00:00
Author: https://github.com/kalenikaliaksandr
Commit: 2c64c6d773
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/4409
4 changed files with 22 additions and 20 deletions
|
@ -14,6 +14,7 @@
|
|||
#include <LibGfx/CompositingAndBlendingOperator.h>
|
||||
#include <LibGfx/Filter.h>
|
||||
#include <LibGfx/Font/Font.h>
|
||||
#include <LibGfx/FontCascadeList.h>
|
||||
#include <LibGfx/PaintStyle.h>
|
||||
#include <LibGfx/Path.h>
|
||||
#include <LibGfx/WindingRule.h>
|
||||
|
@ -99,7 +100,7 @@ public:
|
|||
float global_alpha = { 1 };
|
||||
Gfx::CompositingAndBlendingOperator current_compositing_and_blending_operator = Gfx::CompositingAndBlendingOperator::SourceOver;
|
||||
RefPtr<CSS::CSSStyleValue const> font_style_value { nullptr };
|
||||
RefPtr<Gfx::Font const> current_font { nullptr };
|
||||
RefPtr<Gfx::FontCascadeList const> current_font_cascade_list { nullptr };
|
||||
Bindings::CanvasTextAlign text_align { Bindings::CanvasTextAlign::Start };
|
||||
Bindings::CanvasTextBaseline text_baseline { Bindings::CanvasTextBaseline::Alphabetic };
|
||||
};
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue