mirror of
https://github.com/RGBCube/serenity
synced 2025-07-27 07:17:35 +00:00
LibGfx: Slim down Gfx::TextLayout API by removing unused accessors
Also store the Font as a const reference instead of a raw pointer, since we don't allow a null Font here.
This commit is contained in:
parent
65c8cd37e3
commit
6b421fb521
4 changed files with 14 additions and 23 deletions
|
@ -1724,7 +1724,7 @@ void Painter::do_draw_text(FloatRect const& rect, Utf8View const& text, Font con
|
|||
if (draw_text_get_length(text) == 0)
|
||||
return;
|
||||
|
||||
TextLayout layout(&font, text, rect);
|
||||
TextLayout layout(font, text, rect);
|
||||
|
||||
auto line_height = font.pixel_size() + LINE_SPACING;
|
||||
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue