mirror of
https://github.com/RGBCube/serenity
synced 2025-07-25 19:57:35 +00:00
GTextEditor: Fix line_content_rect() behavior with custom alignments.
This commit is contained in:
parent
62f0aae4ca
commit
5c240af3f7
2 changed files with 8 additions and 8 deletions
|
@ -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);
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue