mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 19:27:45 +00:00
LibWeb/Painting: Use scaled font for selected text
Fixes regression introduced in:
681771d210
This commit is contained in:
parent
b7c0815469
commit
f93cab7679
1 changed files with 1 additions and 1 deletions
|
@ -662,7 +662,7 @@ static void paint_text_fragment(PaintContext& context, Layout::TextNode const& t
|
||||||
painter.fill_rect(selection_rect, CSS::SystemColor::highlight());
|
painter.fill_rect(selection_rect, CSS::SystemColor::highlight());
|
||||||
RecordingPainterStateSaver saver(painter);
|
RecordingPainterStateSaver saver(painter);
|
||||||
painter.add_clip_rect(selection_rect);
|
painter.add_clip_rect(selection_rect);
|
||||||
painter.draw_text_run(baseline_start.to_type<int>(), fragment.glyph_run(), CSS::SystemColor::highlight_text(), fragment_absolute_device_rect.to_type<int>());
|
painter.draw_text_run(baseline_start.to_type<int>(), scaled_glyph_run, CSS::SystemColor::highlight_text(), fragment_absolute_device_rect.to_type<int>());
|
||||||
}
|
}
|
||||||
|
|
||||||
paint_text_decoration(context, text_node, fragment);
|
paint_text_decoration(context, text_node, fragment);
|
||||||
|
|
Loading…
Add table
Add a link
Reference in a new issue