misterdownloadmanager: The ultimate open-source, clean-room download manager written from scratch in pure Rust for Windows, Mac, and Linux
Rust bittorrent-clientdebriddownload-acceleratordownload-managerdownloadmanagereguifile-downloadergallery-dlidmidm-alternativeinternet-download-managerm3u8-downloadermagnetplaylist-downloaderreal-debridrusttorrent-clientvideo-downloaderyoutube-downloaderyt-dlp
Smooth Windows text (View → Text) and 110 / 115 / 120 % interface sizes (#478)
Joe Abou Serhal42e0a83b3e4f
diff --git a/CHANGELOG.md b/CHANGELOG.mdindex 6602c46c..c8866048 100644--- a/CHANGELOG.md+++ b/CHANGELOG.md@@ -117,6 +117,7 @@ A big fixes release: YouTube and video downloads, crashes and freezes, downloads- **YouTube's look-up failing with "Requested format is not available"** ([#352](https://github.com/anefzaoui/misterdownloadmanager/issues/352)): signed-in cookies make yt-dlp use only YouTube's players that need a JavaScript runtime, and without one no video is left. The page is now looked up again without the cookies, and lists its qualities.- **Download video offering only the sound, with no reason given** ([#351](https://github.com/anefzaoui/misterdownloadmanager/issues/351)): when a page's better videos need ffmpeg and it isn't installed, the window now says so.- Adding a link again after its finished file was moved or deleted starts a new download, instead of asking about a duplicate that isn't there ([#342](https://github.com/anefzaoui/misterdownloadmanager/issues/342)).+- **Smooth text on Windows, and finer interface sizes:** **View → Text → Smooth** draws letters anti-aliased at their own size instead of as thick, whole-pixel letters that are hard to read on a 1440p screen; **Classic**, the default, keeps the look MDM had. **View → Interface size** now offers 110 %, 115 % and 120 % between 100 % and 125 %.- **Sharp, evenly spaced text on Windows:** letters no longer run together or drift apart. English and other Latin, Greek and Cyrillic text is drawn the way Windows draws its own classic controls, with each letter's shape and width fitted together; every other script uses hinting suited to anti-aliased rendering ([#323](https://github.com/anefzaoui/misterdownloadmanager/issues/323), [#334](https://github.com/anefzaoui/misterdownloadmanager/issues/334)).## [0.5.1] - 2026-11-08diff --git a/ROADMAP.md b/ROADMAP.mdindex cc5e756a..427f1b8c 100644--- a/ROADMAP.md+++ b/ROADMAP.md@@ -30,6 +30,13 @@ Everything below ships together, in version 0.5.0.- ✅ **View → Interface size**: every window larger, 100 % to 200 %, with Ctrl + / Ctrl − / Ctrl 0as in a browser; a window larger than the screen scrolls. Sharper text on Windows (part of[#262](https://github.com/anefzaoui/misterdownloadmanager/issues/262))+- ✅ Windows: **View → Text → Smooth** draws the text anti-aliased at its own size, not as+ thick, hard-edged whole-pixel letters that read badly on a 1440p screen; **Classic**, the+ default, keeps the hinted look MDM had. **Interface size** gains 110 %, 115 % and 120 % between 100 % and+ 125 %+- ✅ Windows: sharp, evenly spaced text at every interface size: letters no longer run together+ or drift apart ([#323](https://github.com/anefzaoui/misterdownloadmanager/issues/323),+ [#334](https://github.com/anefzaoui/misterdownloadmanager/issues/334))- ✅ Linux: Update now asks the package manager which package MDM is; a copy installed byanother package manager (pacman) is left to the system's updates, with a plain message- ✅ Linux: the .deb and .rpm install the browsers' host files for everyone and remove them ondiff --git a/crates/app/src/app.rs b/crates/app/src/app.rsindex 8d4b2f60..d19280fa 100644--- a/crates/app/src/app.rs+++ b/crates/app/src/app.rs@@ -116,6 +116,9 @@ enum Cmd {DrawWith(crate::renderer::Api),/// View → Interface size → a size in percent (#262).InterfaceSize(u16),+ /// View → Text → Smooth (`true`) or Classic (Windows).+ #[cfg(windows)]+ SmoothText(bool),/// View → Language: a catalog's code, or follow Windows (`None`).Language(Option<&'static str>),/// View → Language...: the language picker.@@ -5266,6 +5269,12 @@ impl App {}// Every window at once (the frames after this one); saved by `follow_zoom`.Cmd::InterfaceSize(percent) => crate::scale::set(ctx, percent),+ #[cfg(windows)]+ Cmd::SmoothText(on) => {+ crate::theme::set_smooth_text(ctx, on);+ self.settings.smooth_text = on;+ self.dirty = true;+ }#[cfg(gpu)]Cmd::DrawWith(api) => {// Chosen again after it failed here: its next start is tried.@@ -5923,8 +5932,13 @@ impl App {{menu.insert(at + 1, self.theme_menu());menu.insert(at + 2, self.interface_size_menu());+ #[cfg(windows)]+ menu.insert(at + 3, self.text_menu());#[cfg(gpu)]- menu.insert(at + 3, self.draw_with_menu());+ menu.insert(+ at + if cfg!(windows) { 4 } else { 3 },+ self.draw_with_menu(),+ );}menu}@@ -6004,6 +6018,20 @@ impl App {MenuEntry::Sub("&Interface size", true, items)}+ /// View → Text (Windows): how the letters are drawn. Smooth is DirectWrite's natural look+ /// (any size, each letter where it falls: easy to read on a dense screen); Classic is the+ /// hinted whole-pixel look of Windows' old controls. Applies at once.+ #[cfg(windows)]+ fn text_menu(&self) -> MenuEntry<Cmd> {+ let smooth = self.settings.smooth_text;+ // i18n: View → Text: letters drawn smooth, as Windows' modern apps draw them, anti-aliased at any size+ let a = MenuEntry::Radio("&Smooth", Cmd::SmoothText(true), true, smooth);+ // i18n: View → Text: letters drawn the classic way, hinted to whole pixels (crisp, coarse on a dense screen)+ let b = MenuEntry::Radio("&Classic", Cmd::SmoothText(false), true, !smooth);+ // i18n: View menu: submenu choosing how the text is drawn (smooth or classic)+ MenuEntry::Sub("&Text", true, vec![a, b])+ }+/// View → Draw with (#89, #206): OpenGL or the system's own graphics API (Direct3D on/// Windows, Vulkan on Linux, Metal on macOS), used from the next start. Greyed lines say when/// what draws now isn't the choice: the system's API failed here (and why), or the choicediff --git a/crates/app/src/crashui.rs b/crates/app/src/crashui.rsindex 662994f9..defe82b6 100644--- a/crates/app/src/crashui.rs+++ b/crates/app/src/crashui.rs@@ -91,6 +91,7 @@ pub fn monitor_main(m: MonitorArgs) -> eframe::Result {// And its interface size (#262): the window is made before the zoom applies, so its size is// given zoomed (brought inside the screen at its first frame).let zoom = crate::scale::startup(settings.interface_size);+ crate::theme::init_smooth_text(settings.smooth_text);let builder = crate::quiet(ViewportBuilder::default().with_title(crate::i18n::t("Mister Download Manager crash report"))diff --git a/crates/app/src/main.rs b/crates/app/src/main.rsindex 5a2feff7..0e0b6bc8 100644--- a/crates/app/src/main.rs+++ b/crates/app/src/main.rs@@ -339,6 +339,7 @@ fn app() -> eframe::Result {// screenshots, the windows' sizing at high display scaling). The window is made before the// zoom applies: its sizes are given zoomed here.let z = scale::startup(loaded.settings.interface_size);+ theme::init_smooth_text(loaded.settings.smooth_text);// The log (release builds too) and the crash monitor.if let Some(data) = mdm_ipc::data_dir() {mdm_crash::logs::init(&data, mdm_crash::logs::APP);diff --git a/crates/app/src/scale.rs b/crates/app/src/scale.rsindex f90a4b4e..625d88fe 100644--- a/crates/app/src/scale.rs+++ b/crates/app/src/scale.rs@@ -8,8 +8,9 @@use egui::{Pos2, Rect, Ui, Vec2, pos2, vec2};-/// The sizes offered, in percent.-pub const STEPS: [u16; 5] = [100, 125, 150, 175, 200];+/// The sizes offered, in percent. 110 to 120 sit between 100 and 125, for a dense screen (1440p+/// at 100 % is small, 125 % large): the text is drawn at its own fractional size.+pub const STEPS: [u16; 8] = [100, 110, 115, 120, 125, 150, 175, 200];/// A size as one of [`STEPS`]: the nearest (a value edited into the settings file).pub fn step(percent: u16) -> u16 {@@ -396,15 +397,20 @@ mod tests {fn sizes_step_like_a_browsers_zoom() {assert_eq!(step(100), 100);assert_eq!(step(130), 125);+ assert_eq!(step(112), 110);+ assert_eq!(step(118), 120);assert_eq!(step(0), 100);assert_eq!(step(500), 200);assert_eq!(factor(175), 1.75);assert_eq!(of_zoom(1.5), 150);assert_eq!(of_zoom(1.3), 125);- assert_eq!(next(100, true), 125);+ assert_eq!(of_zoom(1.1), 110);+ assert_eq!(next(100, true), 110);+ assert_eq!(next(120, true), 125);assert_eq!(next(175, true), 200);assert_eq!(next(200, true), 200);- assert_eq!(next(125, false), 100);+ assert_eq!(next(125, false), 120);+ assert_eq!(next(110, false), 100);assert_eq!(next(100, false), 100);}@@ -436,6 +442,9 @@ mod tests {of_zoom(ctx.zoom_factor())};let ctrl = egui::Modifiers::COMMAND;+ assert_eq!(press(egui::Key::Plus, ctrl), 110);+ assert_eq!(press(egui::Key::Plus, ctrl), 115);+ assert_eq!(press(egui::Key::Plus, ctrl), 120);assert_eq!(press(egui::Key::Plus, ctrl), 125);assert_eq!(press(egui::Key::Equals, ctrl), 150);assert_eq!(press(egui::Key::Plus, ctrl | egui::Modifiers::SHIFT), 175);diff --git a/crates/app/src/settings.rs b/crates/app/src/settings.rsindex db5e1ac9..afb60ca9 100644--- a/crates/app/src/settings.rs+++ b/crates/app/src/settings.rs@@ -108,9 +108,13 @@ pub struct Settings {/// View → Draw with (#89): OpenGL or Direct3D (Windows only), used from the next start./// None: MDM's default (`renderer::DEFAULT`), which may change.pub renderer: Option<crate::renderer::Api>,- /// View → Interface size (#262), percent: 100, 125, 150, 175 or 200 (crate::scale). Every+ /// View → Interface size (#262), percent: one of `crate::scale::STEPS` (100 to 200). Every/// window drawn that much larger than the display's own scale makes it.pub interface_size: u16,+ /// View → Text (Windows): smooth text as Windows' modern apps draw it, or the classic+ /// controls' hinted, whole-pixel look, the default (`crate::theme::set_smooth_text`): text+ /// doesn't change look on an update; a dense screen can choose Smooth.+ pub smooth_text: bool,/// Scheduler → Download limits: "Download no more than `limits_mb` MBytes every/// `limits_hours` hours" (IDM defaults 200 / 5), with a warning before stopping.pub limits_on: bool,@@ -369,6 +373,7 @@ impl Default for Settings {theme: "classic".into(),renderer: None,interface_size: 100,+ smooth_text: false,limits_on: false,limits_mb: 200,limits_hours: 5,diff --git a/crates/app/src/theme.rs b/crates/app/src/theme.rsindex 884c28e0..f113a92c 100644--- a/crates/app/src/theme.rs+++ b/crates/app/src/theme.rs@@ -886,17 +886,36 @@ fn fonts(ctx: &egui::Context, code: &str, all: bool) {#[cfg(windows)]fn classic_text(ctx: &egui::Context) {use std::sync::atomic::{AtomicI8, Ordering};- static RTL: AtomicI8 = AtomicI8::new(-1);+ static DRAWN: AtomicI8 = AtomicI8::new(-1);let rtl = crate::i18n::rtl();- if RTL.swap(i8::from(rtl), Ordering::Relaxed) != i8::from(rtl) {+ let smooth = SMOOTH_TEXT.load(Ordering::Relaxed);+ let now = i8::from(rtl) | (i8::from(smooth) << 1);+ if DRAWN.swap(now, Ordering::Relaxed) != now {ctx.set_glyph_rasterizers(- crate::win32::text_rasterizer(font_dir(), rtl)+ crate::win32::text_rasterizer(font_dir(), rtl, smooth).into_iter().collect(),);}}+/// View → Text: smooth (DirectWrite's natural look) or classic (hinted whole-pixel text, as+/// Windows' old controls, the default). Only Windows has the choice: elsewhere egui draws the text.+static SMOOTH_TEXT: std::sync::atomic::AtomicBool = std::sync::atomic::AtomicBool::new(false);++/// The setting's value, before the first frame (it is read at start).+pub fn init_smooth_text(on: bool) {+ SMOOTH_TEXT.store(on, std::sync::atomic::Ordering::Relaxed);+}++/// Draw the text smooth (`true`) or classic from now on, in every window. Windows only: View →+/// Text exists only there, where DirectWrite draws the text; elsewhere egui draws it.+#[cfg(windows)]+pub fn set_smooth_text(ctx: &egui::Context, on: bool) {+ init_smooth_text(on);+ classic_text(ctx);+}+/// The text [`classic_text`] leaves to egui (Arabic, Hebrew, Indic, Thai, CJK; marks clustered/// with their letter), fitted to whole pixels (#262) with hinting for egui's anti-aliased output./// Mono hinting targets black-and-white bitmaps: at small sizes it can distort curves and makediff --git a/crates/app/src/win32.rs b/crates/app/src/win32.rsindex 195d8b25..1bf91f0b 100644--- a/crates/app/src/win32.rs+++ b/crates/app/src/win32.rs@@ -4686,6 +4686,12 @@ pub fn keep_awake(reason: Option<&str>) -> bool {/// to whole pixels while the letters themselves were fitted to pixels: the two disagreed by up to/// a pixel, so letters touched in one place ("download") and stood apart in another ("Resum e").///+/// `smooth` picks how a letter is drawn: `false`, the classic controls' look (hinted in both+/// directions at a whole pixel size, letters on whole pixels: crisp, and coarse on a large,+/// dense screen), or `true`, DirectWrite's natural look (the size as it is, hinted up and down+/// only, each letter where it falls between two pixels, with all 256 levels of grey: the text of+/// Windows' own modern apps, much easier to read at 1440p).+////// `None` from DirectWrite's factory or a font's file keeps egui's rasterizer. A cluster it isn't/// for ([`classic_char`]) is left to egui too, which shapes it. The rasterizer is told the/// interface's direction: a bracket in a right-to-left line is mirrored by the shaper, so those@@ -4693,6 +4699,7 @@ pub fn keep_awake(reason: Option<&str>) -> bool {pub fn text_rasterizer(font_dir: std::path::PathBuf,rtl: bool,+ smooth: bool,) -> Option<egui::epaint::text::GlyphRasterizer> {let glyphs = classic_text::Glyphs::new(font_dir).map_err(|e| tracing::warn!("text: DirectWrite unavailable, egui draws the text ({e})"))@@ -4702,7 +4709,7 @@ pub fn text_rasterizer(egui::epaint::text::GlyphRasterizer::new("mdm::win32::classic_text",move |req: &egui::epaint::text::GlyphRasterizerRequest<'_>| {- glyphs.lock().ok()?.glyph(req, rtl)+ glyphs.lock().ok()?.glyph(req, rtl, smooth)},).with_priority(egui::epaint::text::FontPriority::Highest),@@ -4759,10 +4766,14 @@ mod classic_text {DWRITE_FACTORY_TYPE_SHARED, DWRITE_FONT_FACE_TYPE_TRUETYPE, DWRITE_FONT_METRICS,DWRITE_FONT_SIMULATIONS_NONE, DWRITE_GLYPH_METRICS, DWRITE_GLYPH_OFFSET, DWRITE_GLYPH_RUN,DWRITE_GRID_FIT_MODE_ENABLED, DWRITE_MEASURING_MODE_GDI_CLASSIC,- DWRITE_RENDERING_MODE_GDI_CLASSIC, DWRITE_TEXT_ANTIALIAS_MODE_GRAYSCALE,+ DWRITE_MEASURING_MODE_NATURAL, DWRITE_RENDERING_MODE_GDI_CLASSIC,+ DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC, DWRITE_TEXT_ANTIALIAS_MODE_GRAYSCALE,DWRITE_TEXTURE_ALIASED_1x1, DWriteCreateFactory, IDWriteFactory2, IDWriteFontFace,};+ /// How much the smooth look thins its edges: 1.0 keeps DirectWrite's coverage as it is.+ const SMOOTH_COVERAGE_GAMMA: f32 = 1.8;+pub struct Glyphs {factory: IDWriteFactory2,dir: PathBuf,@@ -4819,6 +4830,7 @@ mod classic_text {&mut self,req: &GlyphRasterizerRequest<'_>,rtl: bool,+ smooth: bool,) -> Option<RasterizedGlyph> {let mut chars = req.cluster.chars();let ch = chars.next()?;@@ -4829,8 +4841,12 @@ mod classic_text {return None;}let face = self.face(super::classic_font_file(req.family)?)?;- // GDI's sizes are whole pixels.- let em = req.font_size_px.round();+ // GDI's sizes are whole pixels; the natural look keeps the size it is asked for.+ let em = if smooth {+ req.font_size_px+ } else {+ req.font_size_px.round()+ };let mut id = 0u16;let mut metrics = DWRITE_GLYPH_METRICS::default();let mut font = DWRITE_FONT_METRICS::default();@@ -4840,32 +4856,49 @@ mod classic_text {if id == 0 {return None;}- face.GetGdiCompatibleGlyphMetrics(- em,- 1.0,- None,- false,- &id,- 1,- &mut metrics,- false,- )- .ok()?;+ if smooth {+ face.GetDesignGlyphMetrics(&id, 1, &mut metrics, false)+ .ok()?;+ } else {+ face.GetGdiCompatibleGlyphMetrics(+ em,+ 1.0,+ None,+ false,+ &id,+ 1,+ &mut metrics,+ false,+ )+ .ok()?;+ }face.GetMetrics(&mut font);}- let advance_px =- (metrics.advanceWidth as f32 * em / f32::from(font.designUnitsPerEm)).round();- let bitmap = self.draw(face, id, em).unwrap_or(GlyphBitmap {- // A space: egui still wants a bitmap to carry the advance.- image: ColorImage::new([1, 1], vec![Color32::TRANSPARENT]),- offset_px: egui::vec2(0.0, 0.0),- is_color: false,- });+ let advance = metrics.advanceWidth as f32 * em / f32::from(font.designUnitsPerEm);+ // Smooth: the font's own width, as egui lays a line out by it (and places each letter+ // at a quarter pixel). Classic: the whole pixels GDI's hinting gives.+ let advance_px = if smooth { advance } else { advance.round() };+ let origin = if smooth { req.subpixel_offset_px } else { 0.0 };+ let bitmap = self+ .draw(face, id, em, smooth, origin)+ .unwrap_or(GlyphBitmap {+ // A space: egui still wants a bitmap to carry the advance.+ image: ColorImage::new([1, 1], vec![Color32::TRANSPARENT]),+ offset_px: egui::vec2(0.0, 0.0),+ is_color: false,+ });Some(RasterizedGlyph { bitmap, advance_px })}/// The glyph in grey, placed from its origin; `None` when it has no ink.- fn draw(&self, face: IDWriteFontFace, id: u16, em: f32) -> Option<GlyphBitmap> {+ fn draw(+ &self,+ face: IDWriteFontFace,+ id: u16,+ em: f32,+ smooth: bool,+ origin_x: f32,+ ) -> Option<GlyphBitmap> {let (ids, advances, offsets) = ([id], [0f32], [DWRITE_GLYPH_OFFSET::default()]);let run = DWRITE_GLYPH_RUN {fontFace: std::mem::ManuallyDrop::new(Some(face)),@@ -4884,11 +4917,19 @@ mod classic_text {.CreateGlyphRunAnalysis(&run,None,- DWRITE_RENDERING_MODE_GDI_CLASSIC,- DWRITE_MEASURING_MODE_GDI_CLASSIC,+ if smooth {+ DWRITE_RENDERING_MODE_NATURAL_SYMMETRIC+ } else {+ DWRITE_RENDERING_MODE_GDI_CLASSIC+ },+ if smooth {+ DWRITE_MEASURING_MODE_NATURAL+ } else {+ DWRITE_MEASURING_MODE_GDI_CLASSIC+ },DWRITE_GRID_FIT_MODE_ENABLED,DWRITE_TEXT_ANTIALIAS_MODE_GRAYSCALE,- 0.0,+ origin_x,0.0,).and_then(|a| {@@ -4908,9 +4949,16 @@ mod classic_text {return None;}// White with alpha, premultiplied (`GlyphBitmap`).+ // Smooth: less ink at the edges, so the weight matches what Windows' own+ // DirectWrite text shows (WPF's grey-scale text, compared side by side): coverage+ // blended as it is reads bolder, most of all light on dark.+ let gamma = if smooth { SMOOTH_COVERAGE_GAMMA } else { 1.0 };let pixels = coverage.into_iter()- .map(|a| Color32::from_rgba_premultiplied(a, a, a, a))+ .map(|a| {+ let a = ((f32::from(a) / 255.0).powf(gamma) * 255.0).round() as u8;+ Color32::from_rgba_premultiplied(a, a, a, a)+ }).collect();Some(GlyphBitmap {image: ColorImage::new([w, h], pixels),@@ -5054,7 +5102,7 @@ mod classic_text_tests {for size in [11.0, 12.0, 13.2, 15.0, 16.5, 18.0, 24.0] {for ch in "downloadefaultakeDRsum".chars() {let text = ch.to_string();- let glyph = g.glyph(&req(&text, &family, size), false).unwrap();+ let glyph = g.glyph(&req(&text, &family, size), false, false).unwrap();assert_eq!(glyph.advance_px.fract(), 0.0, "{ch} at {size}");assert!(glyph.advance_px >= 1.0, "{ch} at {size}");let right = glyph.bitmap.offset_px.x + glyph.bitmap.image.size[0] as f32;@@ -5068,11 +5116,36 @@ mod classic_text_tests {}}+ /// The smooth look keeps the font's own width and draws more levels of grey than the+ /// classic one, whose letters are fitted to whole pixels.+ #[test]+ fn smooth_letters_keep_their_width_and_their_greys() {+ let mut g = glyphs();+ let f = FontFamily::Proportional;+ let levels = |glyph: &egui::epaint::text::RasterizedGlyph| {+ let mut l: Vec<u8> = glyph.bitmap.image.pixels.iter().map(|p| p.a()).collect();+ l.sort_unstable();+ l.dedup();+ l.len()+ };+ let classic = g.glyph(&req("o", &f, 13.2), false, false).unwrap();+ let smooth = g.glyph(&req("o", &f, 13.2), false, true).unwrap();+ assert_eq!(classic.advance_px.fract(), 0.0);+ assert!(smooth.advance_px.fract() != 0.0, "{}", smooth.advance_px);+ assert!(levels(&smooth) > levels(&classic));+ // A quarter pixel to the right changes the picture, not the width.+ let mut shifted = req("o", &f, 13.2);+ shifted.subpixel_offset_px = 0.5;+ let moved = g.glyph(&shifted, false, true).unwrap();+ assert_eq!(moved.advance_px, smooth.advance_px);+ assert_ne!(moved.bitmap.image.pixels, smooth.bitmap.image.pixels);+ }+#[test]fn a_space_keeps_its_advance() {let mut g = glyphs();let s = g- .glyph(&req(" ", &FontFamily::Proportional, 12.0), false)+ .glyph(&req(" ", &FontFamily::Proportional, 12.0), false, false).unwrap();assert!(s.advance_px > 0.0);}@@ -5089,13 +5162,16 @@ mod classic_text_tests {"e\u{301}","\u{1F600}",] {- assert!(g.glyph(&req(not, &f, 12.0), false).is_none(), "{not:?}");+ assert!(+ g.glyph(&req(not, &f, 12.0), false, false).is_none(),+ "{not:?}"+ );}// A bracket is mirrored by the shaper in a right-to-left line, only.- assert!(g.glyph(&req("(", &f, 12.0), false).is_some());- assert!(g.glyph(&req("(", &f, 12.0), true).is_none());+ assert!(g.glyph(&req("(", &f, 12.0), false, false).is_some());+ assert!(g.glyph(&req("(", &f, 12.0), true, false).is_none());// A family it isn't told about stays with egui.let other = FontFamily::Name("other".into());- assert!(g.glyph(&req("a", &other, 12.0), false).is_none());+ assert!(g.glyph(&req("a", &other, 12.0), false, false).is_none());}}diff --git a/docs/ARCHITECTURE.md b/docs/ARCHITECTURE.mdindex 1c3cbfff..6e24baf4 100644--- a/docs/ARCHITECTURE.md+++ b/docs/ARCHITECTURE.md@@ -67,9 +67,10 @@ toolbar, key and IPC commands into actions. Each dialog is its own module and retheir Linux and macOS counterparts to `unix.rs` (starting with the session, the browsers' host,sounds, show in folder, the crash handler); every other file is safe, portable Rust. Fonts come from the system:Windows' Fonts folder, macOS's system fonts, fontconfig on Linux (`theme.rs`). On Windows, Latin,-Greek and Cyrillic text is drawn by DirectWrite in GDI-classic mode (`win32.rs`, through egui's-glyph rasterizer hook), so each letter's hinted shape and whole-pixel width come together; other-scripts are shaped and drawn by egui.+Greek and Cyrillic text is drawn by DirectWrite (`win32.rs`, through egui's glyph rasterizer hook):+View → Text → Smooth in its natural mode, anti-aliased at the size asked for and placed at quarter+pixels with the font's own advances; Classic (the default) in GDI-classic mode, so each letter's+hinted shape and whole-pixel width come together. Other scripts are shaped and drawn by egui.### Themesdiff --git a/docs/getting-started.md b/docs/getting-started.mdindex 43214fd3..a3284198 100644--- a/docs/getting-started.md+++ b/docs/getting-started.md@@ -168,7 +168,7 @@ From top to bottom:- **Tasks** — add downloads, torrents, magnet links, batch downloads and videos from a page; **Torrent settings**; **Link grabber**; **RSS feeds**; show the drop target; import and export the list; exit.- **File** — the selected download: **Stop Download**, **Remove**, **Download Now**, **Redownload**.- **Downloads** — **Pause All**, **Stop All**, **Delete All Completed**, **Find**, the **Scheduler**, queues, the **Speed Limiter** and **Options**.- - **View** — show or hide the categories, sort the list (**Arrange files**), **Dark Mode support**, **Always dark**, **Theme**, **Interface size** (every window larger, 100 % to 200 %; **Ctrl +**, **Ctrl −** and **Ctrl 0** too), **Draw with** (OpenGL, or Direct3D on Windows, Vulkan on Linux, Metal on macOS) and **Language**.+ - **View** — show or hide the categories, sort the list (**Arrange files**), **Dark Mode support**, **Always dark**, **Theme**, **Interface size** (every window larger, 100 % to 200 %; **Ctrl +**, **Ctrl −** and **Ctrl 0** too), **Text** (Windows: smooth or classic letters), **Draw with** (OpenGL, or Direct3D on Windows, Vulkan on Linux, Metal on macOS) and **Language**.- **Help** — help pages and tutorials (on the website, in your language when it has it), **Keyboard shortcuts**, **Report a problem**, **Check for updates**, **About**, **Tell a friend** and **Support MDM** (its creator's GitHub Sponsors page: optional, nothing in MDM changes).- **Toolbar.** **Add URL**, **Add Torrent**, **Resume**, **Stop**, **Stop All**, **Delete**, **Delete Completed**, **Options**, **Scheduler**, **Start Queue**, **Stop Queue**. The small arrow next to **Add Torrent**, **Start Queue** and **Stop Queue** opens more choices.- **Categories** (left). Choose what the list shows: **All Downloads**, **Unfinished**, **Finished** and **Queues**, each with its categories. Drag the gap between the pane and the list to make it wider.diff --git a/docs/troubleshooting.md b/docs/troubleshooting.mdindex 29e8f5d2..0e153f49 100644--- a/docs/troubleshooting.md+++ b/docs/troubleshooting.md@@ -67,7 +67,7 @@ Closed to the notification area, MDM gives its memory back to Windows: **Memory*## The text is too small or blurry-MDM keeps Internet Download Manager's compact sizes. On a large or high-resolution screen, choose **View → Interface size** (125 %, 150 %, 175 % or 200 %), or press **Ctrl +** and **Ctrl −** in any MDM window, as in a browser; **Ctrl 0** goes back to 100 %. Every window follows at once, and MDM starts at that size next time. It comes on top of Windows' own display scale (**Settings → System → Display → Scale**).+MDM keeps Internet Download Manager's compact sizes. On a large or high-resolution screen, choose **View → Interface size** (110 %, 115 %, 120 %, 125 %, 150 %, 175 % or 200 %), or press **Ctrl +** and **Ctrl −** in any MDM window, as in a browser; **Ctrl 0** goes back to 100 %. Every window follows at once, and MDM starts at that size next time. It comes on top of Windows' own display scale (**Settings → System → Display → Scale**).A window larger than the screen at that size (Options at 200 % on a 1366 × 768 screen) opens as large as the screen allows, and the rest scrolls: with the scroll bars, the mouse wheel, or **Tab** to the next control.diff --git a/i18n/en.tsv b/i18n/en.tsvindex c0d404c7..b3a19e02 100644--- a/i18n/en.tsv+++ b/i18n/en.tsv@@ -4462,6 +4462,10 @@ menu &Add new download &Add new download#. & marks the keyboard shortcut letter: keep one & before a letter of the translation#. the trailing ... means it opens a window: keep itmenu &Add new download... &Add new download...+#. menu command in the main window+#. View → Text: letters drawn the classic way, hinted to whole pixels (crisp, coarse on a dense screen)+#. & marks the keyboard shortcut letter: keep one & before a letter of the translation+menu &Classic &Classic#. menu command in standard windows#. & marks the keyboard shortcut letter: keep one & before a letter of the translationmenu &Copy &Copy@@ -4530,12 +4534,20 @@ menu &Scheduler and queues &Scheduler and queues#. & marks the keyboard shortcut letter: keep one & before a letter of the translationmenu &Show hidden tabs &Show hidden tabs#. menu command in the main window+#. View → Text: letters drawn smooth, as Windows' modern apps draw them, anti-aliased at any size+#. & marks the keyboard shortcut letter: keep one & before a letter of the translation+menu &Smooth &Smooth+#. menu command in the main window#. & marks the keyboard shortcut letter: keep one & before a letter of the translationmenu &Stop All &Stop All#. menu command in the main window#. & marks the keyboard shortcut letter: keep one & before a letter of the translationmenu &Stop Download &Stop Download#. menu command in the main window+#. View menu: submenu choosing how the text is drawn (smooth or classic)+#. & marks the keyboard shortcut letter: keep one & before a letter of the translation+menu &Text &Text+#. menu command in the main window#. & marks the keyboard shortcut letter: keep one & before a letter of the translationmenu &Tray icon &Tray icon#. menu command in the main window