mirror of
https://github.com/LadybirdBrowser/ladybird.git
synced 2024-12-29 06:02:07 +03:00
FontEditor: Fix typos in code
No behavior change.
This commit is contained in:
parent
90e09dd7a8
commit
42a8f99374
Notes:
sideshowbarker
2024-07-18 22:53:48 +09:00
Author: https://github.com/nico Commit: https://github.com/SerenityOS/serenity/commit/42a8f993742 Pull-request: https://github.com/SerenityOS/serenity/pull/5094 Reviewed-by: https://github.com/awesomekling
@ -255,17 +255,17 @@ FontEditorWidget::FontEditorWidget(const String& path, RefPtr<Gfx::BitmapFont>&&
|
||||
fixed_width_checkbox.set_text("Fixed width");
|
||||
fixed_width_checkbox.set_checked(m_edited_font->is_fixed_width());
|
||||
|
||||
// Event hanglers
|
||||
// Event handlers
|
||||
auto update_demo = [&] {
|
||||
demo_label_1.update();
|
||||
demo_label_2.update();
|
||||
};
|
||||
|
||||
auto calculate_prefed_sizes = [&] {
|
||||
int right_site_width = m_edited_font->width("QUICK FOX JUMPS NIGHTLY ABOVE WIZARD!") + 20;
|
||||
right_site_width = max(right_site_width, m_glyph_map_widget->preferred_width());
|
||||
int right_side_width = m_edited_font->width("QUICK FOX JUMPS NIGHTLY ABOVE WIZARD!") + 20;
|
||||
right_side_width = max(right_side_width, m_glyph_map_widget->preferred_width());
|
||||
|
||||
m_preferred_width = m_glyph_editor_widget->width() + right_site_width + 12;
|
||||
m_preferred_width = m_glyph_editor_widget->width() + right_side_width + 12;
|
||||
m_preferred_height = m_glyph_map_widget->relative_rect().height() + 2 * m_edited_font->glyph_height() + 346;
|
||||
};
|
||||
|
||||
|
Loading…
Reference in New Issue
Block a user