mirror of
https://github.com/RGBCube/serenity
synced 2025-05-31 18:28:12 +00:00
LibWeb: Add Canvas Context2D basic font property support
This commit is contained in:
parent
b05fe22d39
commit
bba14f6014
7 changed files with 181 additions and 27 deletions
|
@ -80,6 +80,8 @@ public:
|
|||
Bindings::ImageSmoothingQuality image_smoothing_quality { Bindings::ImageSmoothingQuality::Low };
|
||||
float global_alpha = { 1 };
|
||||
Optional<CanvasClip> clip;
|
||||
RefPtr<CSS::StyleValue> font_style_value { nullptr };
|
||||
RefPtr<Gfx::Font const> current_font { 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