You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
fix(rich text): Make the tests less sensitive to env changes
Different Tk theme / fontconfig mapping: Tk reports whatever font the current theme gives it. On Linux that often is a logical family like "sans" which fontconfig resolves to a real family (Helvetica, DejaVu Sans, etc.). On another environment (pip vs uv) the system/theme/fontconfig mapping differs, so get_widget_font_family_and_size can return "sans-serif" or "Helvetica".
Different display/DPI and unit conventions: Tk reports font "size" as either points (positive) or pixels (negative). Many Linux themes specify pixel sizes (e.g. -12 means 12 pixels). On Windows the theme often uses point sizes (e.g. 9). With a typical DPI (96) 12 px ≈ 9 pt, so the two numbers are consistent in physical size but different numerically and signed.
Different runtime environments used by pip and uv: they may run tests under different user/system fonts, different themes, headless vs desktop, or different X11/Wayland/backends — all of which change the default Tk font.
0 commit comments