mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2025-07-31 21:29:06 +00:00
LibWeb: Remove Gfx::BitmapFont
This class supported the binary bitmap font file format in SerenityOS, and isn't something we need in Ladybird.
This commit is contained in:
parent
30a92911fa
commit
04a6e2f83d
Notes:
sideshowbarker
2024-07-17 04:34:25 +09:00
Author: https://github.com/awesomekling
Commit: 04a6e2f83d
Pull-request: https://github.com/LadybirdBrowser/ladybird/pull/42
16 changed files with 24 additions and 914 deletions
|
@ -298,15 +298,11 @@ Gfx::Path CanvasRenderingContext2D::text_path(StringView text, float x, float y,
|
|||
|
||||
void CanvasRenderingContext2D::fill_text(StringView text, float x, float y, Optional<double> max_width)
|
||||
{
|
||||
if (is<Gfx::BitmapFont>(*current_font()))
|
||||
return bitmap_font_fill_text(text, x, y, max_width);
|
||||
fill_internal(text_path(text, x, y, max_width), Gfx::Painter::WindingRule::Nonzero);
|
||||
}
|
||||
|
||||
void CanvasRenderingContext2D::stroke_text(StringView text, float x, float y, Optional<double> max_width)
|
||||
{
|
||||
if (is<Gfx::BitmapFont>(*current_font()))
|
||||
return bitmap_font_fill_text(text, x, y, max_width);
|
||||
stroke_internal(text_path(text, x, y, max_width));
|
||||
}
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue