Font settings widget saves nonexistent font families without validation - apps silently fall back to arbitrary fonts
まだ誰も着手していません。
評価
調査の方向性
Start with xapp/SettingsWidgets.py and inspect how FontButton binds Gtk.FontButton.font-name to GSettings; the issue reports that the chooser accepts arbitrary typed family names. Check what family validation is available through GTK, fontconfig, or Pango, and how the widget is reused by settings modules. Done means nonexistent families are refused or clearly flagged instead of being silently saved; the issue gives no test file to run.
索引モデルが issue の本文から書いたものです。
説明
Environment
- Cinnamon 6.6.7 on Gentoo (upstream settings UI:
cinnamon-settings-> Font Selection module) - python3-xapp 3.0.2 / xapp 3.2.2 (Python widget
xapp/SettingsWidgets.py) - GTK 3.24.52
Steps to reproduce
- Open System Settings -> Font Selection.
- On any row (e.g. "Default font"), open the font chooser, type into the Family field a family that is not installed - for example
DejaVu Sans Semi-Condensed(DejaVu Sans only ships a "Condensed" variant, not "Semi-Condensed") - and confirm. - The typed string is persisted verbatim into the gsettings key:
gsettings get org.cinnamon.desktop.interface font-name->'DejaVu Sans Semi-Condensed 11'- the same happens for
document-font-name,org.nemo.desktop fontandtitlebar-font.
Observed
- The stored family cannot be resolved by fontconfig:
fc-match "DejaVu Sans Semi-Condensed"returnsLiberationSans-Regular.ttf. - GTK applications then silently render with a different, unrelated font. Because every app/toolkit resolves the fallback differently, the UI becomes inconsistent - some parts use the intended font, others a fallback, with no error or warning shown anywhere.
Expected
- The font widget should validate the selected family against fontconfig (e.g. against the GtkFontChooser family list, or fc-list / Pango) and refuse or flag families that cannot be resolved instead of saving them.
Root cause
xapp/SettingsWidgets.py->FontButtonbindsGtk.FontButton.font-namedirectly to the gsettings key (Gio.SettingsBindFlags.DEFAULT) with no validation.GtkFontChooser's family entry also accepts arbitrary typed family names, so any typo or non-existent variant (e.g. a width such as Semi-Condensed that the family does not ship) reaches the settings keys.
Notes
- The invalid value is spread to all GTK apps at once: csd-xsettings reads
org.gnome.desktop.interface font-nameand publishes it as the XSettingsGtk/FontNamekey. - The widget is reused by many Mint settings modules, so this silent path is not specific to one app.
- A repair/warning on startup when a stored font family cannot be resolved would help users who already have such values in dconf.
- 主要言語
- C
- スター
- 173
- フォーク
- 52
- PR マージ指標
- 30日以内にマージされた PR はありません
環境構築
このプロジェクトには開発コンテナ、Dockerfile、コントリビューションガイドがありません。まず README を読み、一般的な手順ははじめてのコントリビューションガイドを参照してください。
はじめの一歩
- issue を最後まで読み、次にプロジェクトのコントリビューションガイドを読みます。
- 着手することを issue にコメントします — 二人が同じ作業をするのを防げます。
- リポジトリをフォークし、ブランチを切って変更します。
- issue 番号を参照したプルリクエストを送ります。
linuxmint/xapp のほかの issue
-
難易度 1/5 1時間未満 初心者へのやさしさ 78/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 42/100
-
xapp-sn-watcher segfaults in g_dbus_proxy_get_name every time Blip (Flatpak) registers its tray iconオープン
難易度 4/5 3〜5日 初心者へのやさしさ 20/100
-
難易度 4/5 3〜5日 初心者へのやさしさ 48/100
-
難易度 3/5 1〜2日 初心者へのやさしさ 72/100
似ている issue
-
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
メンテナーはふだん 1 日以内に返信
-
isolation2 lockmodes fails on cassert builds: extra AccessShareLock on partition root対応中かも @tuhaihe が今日担当しました。 オープン
難易度 2/5 1〜3時間 初心者へのやさしさ 78/100
apache/cloudberry#2356 ·
メンテナーはふだん 2 日以内に返信
-
windows-artifacts: the win-arm64 job uses a Visual Studio generator missing from windows-11-armオープン
難易度 1/5 1時間未満 初心者へのやさしさ 86/100
-
難易度 2/5 1〜3時間 初心者へのやさしさ 66/100
wasm-micro-runtime/wasm-micro-runtime#5217 ·
メンテナーはふだん 3 日以内に返信
-
難易度 2/5 1〜3時間 初心者へのやさしさ 65/100
メンテナーはふだん 1 日以内に返信