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:
Andreas Kling 2024-06-03 17:14:05 +02:00
commit 04a6e2f83d
Notes: sideshowbarker 2024-07-17 04:34:25 +09:00
16 changed files with 24 additions and 914 deletions

View file

@ -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));
}