egui/crates
Emil Ernerfeldt 29fa63317e
Fix text sizes being too small (#2069)
Closes https://github.com/emilk/egui/issues/2068

Before this PR, the default font, Ubuntu-Light, was ~11% smaller
than it should have been, and the default monospace font, Hack,
was ~14% smaller. This means that setting the font size `12` in egui
would yield smaller text than using that font size in any other app.
Ooops!

The change is that this PR now takes into account the ttf properties
`units_per_em` and `height_unscaled`.

If your egui application has specified you own font sizes or text styles
you will see the text in your application grow
larger, unless you go in and compensate by dividing all font sizes by
~1.21 for Ubuntu-Light/Proportional and ~1.16 for Hack/Monospace,
and with something else if you are using a custom font!
This effects any use of `FontId`, `RichText::size`, etc.

This PR changes the default `Style::text_styles` to compensate,
so the default egui style should look the same before and after this PR.
2022-09-21 21:31:08 +02:00
..
eframe Make eframe::App::as_any_mut optional to implement (#2061) 2022-09-20 13:58:55 +02:00
egui Fix text sizes being too small (#2069) 2022-09-21 21:31:08 +02:00
egui-wgpu egui-wgpu: Fix crash on zero-sized scissor rects (#2039) 2022-09-13 09:32:05 +02:00
egui-winit update arboard to 3.0 (#2067) 2022-09-21 09:14:55 +02:00
egui_demo_app Make eframe::App::as_any_mut optional to implement (#2061) 2022-09-20 13:58:55 +02:00
egui_demo_lib Fix text sizes being too small (#2069) 2022-09-21 21:31:08 +02:00
egui_extras egui_extras: Add Table::vertical_scroll_offset (#1946) 2022-08-28 09:37:23 +02:00
egui_glium egui-winit: don't repaint when just moving window (#1980) 2022-08-29 11:20:19 +02:00
egui_glow Fix sRGB blending and cleanup the relevant code (#2070) 2022-09-21 21:30:02 +02:00
egui_web Fix broken GitHub source links due to #1940 2022-08-20 15:18:02 +02:00
emath Release 0.19.0 - wgpu backend, repaint_after, continue-after-close 2022-08-20 16:49:58 +02:00
epaint Fix text sizes being too small (#2069) 2022-09-21 21:31:08 +02:00