mirror of
https://github.com/RGBCube/serenity
synced 2025-07-26 14:47:35 +00:00
LibGUI+LibGfx: Defer to fonts when setting Editor line height
Fonts now provide their preferred line height based on maximum height and requested line gap. TTFs provide a preferred line gap from table metrics while BitmapFonts are hardcoded at the previous default for now.
This commit is contained in:
parent
07910c12e3
commit
d94db1900e
5 changed files with 7 additions and 5 deletions
|
@ -116,7 +116,6 @@ public:
|
|||
TextDocumentLine const& line(size_t index) const { return document().line(index); }
|
||||
NonnullOwnPtrVector<TextDocumentLine>& lines() { return document().lines(); }
|
||||
NonnullOwnPtrVector<TextDocumentLine> const& lines() const { return document().lines(); }
|
||||
int line_spacing() const { return m_line_spacing; }
|
||||
int line_height() const;
|
||||
TextPosition cursor() const { return m_cursor; }
|
||||
TextRange normalized_selection() const { return m_selection.normalized(); }
|
||||
|
@ -351,7 +350,6 @@ private:
|
|||
bool m_visualize_trailing_whitespace { true };
|
||||
bool m_visualize_leading_whitespace { false };
|
||||
bool m_cursor_line_highlighting { true };
|
||||
int m_line_spacing { 4 };
|
||||
size_t m_soft_tab_width { 4 };
|
||||
int m_horizontal_content_padding { 3 };
|
||||
TextRange m_selection;
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue