1
0
mirror of https://github.com/emilk/egui.git synced 2026-08-31 22:00:03 -04:00

Add tessellation option to toggle rounding text to pixel coordinates

On by default and only there for testing
This commit is contained in:
Emil Ernerfeldt
2021-10-27 08:56:06 +02:00
parent 8e4fd942a9
commit ddd52f47c5
2 changed files with 14 additions and 1 deletions

View File

@@ -136,6 +136,7 @@ impl Widget for &mut epaint::TessellationOptions {
aa_size: _,
anti_alias,
coarse_tessellation_culling,
round_text_to_pixels,
debug_paint_clip_rects,
debug_paint_text_rects,
debug_ignore_clip_rects,
@@ -147,6 +148,9 @@ impl Widget for &mut epaint::TessellationOptions {
coarse_tessellation_culling,
"Do coarse culling in the tessellator",
);
ui.checkbox(round_text_to_pixels, "Align text positions to pixel grid")
.on_hover_text("Most text already is, so don't expect to see a large change.");
ui.checkbox(debug_ignore_clip_rects, "Ignore clip rectangles");
ui.checkbox(debug_paint_clip_rects, "Paint clip rectangles");
ui.checkbox(debug_paint_text_rects, "Paint text bounds");