1
Fork 0
mirror of https://github.com/RGBCube/serenity synced 2025-07-25 03:37:34 +00:00

GTextEditor: Fix line_content_rect() behavior with custom alignments.

This commit is contained in:
Andreas Kling 2019-04-24 22:46:27 +02:00
parent 62f0aae4ca
commit 5c240af3f7
2 changed files with 8 additions and 8 deletions

View file

@ -90,6 +90,7 @@ public:
int line_height() const { return font().glyph_height() + m_line_spacing; }
GTextPosition cursor() const { return m_cursor; }
GTextRange normalized_selection() const { return m_selection.normalized(); }
// FIXME: This should take glyph spacing into account, no?
int glyph_width() const { return font().glyph_width('x'); }
bool write_to_file(const String& path);