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:
@@ -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");
|
||||
|
||||
Reference in New Issue
Block a user