aboutsummaryrefslogtreecommitdiff
path: root/src/ui/exit_confirm_dialog.rs
diff options
context:
space:
mode:
Diffstat (limited to 'src/ui/exit_confirm_dialog.rs')
-rw-r--r--src/ui/exit_confirm_dialog.rs2
1 files changed, 2 insertions, 0 deletions
diff --git a/src/ui/exit_confirm_dialog.rs b/src/ui/exit_confirm_dialog.rs
index 9ffae3a7..6458558f 100644
--- a/src/ui/exit_confirm_dialog.rs
+++ b/src/ui/exit_confirm_dialog.rs
@@ -109,6 +109,7 @@ fn render(scale: f64) -> anyhow::Result<MemoryBuffer> {
let surface = ImageSurface::create(cairo::Format::ARgb32, 0, 0)?;
let cr = cairo::Context::new(&surface)?;
let layout = pangocairo::functions::create_layout(&cr);
+ layout.context().set_round_glyph_positions(false);
layout.set_font_description(Some(&font));
layout.set_alignment(Alignment::Center);
layout.set_markup(TEXT);
@@ -124,6 +125,7 @@ fn render(scale: f64) -> anyhow::Result<MemoryBuffer> {
cr.move_to(padding.into(), padding.into());
let layout = pangocairo::functions::create_layout(&cr);
+ layout.context().set_round_glyph_positions(false);
layout.set_font_description(Some(&font));
layout.set_alignment(Alignment::Center);
layout.set_markup(TEXT);