Editor uses a proportional font with the default Linux font configuration
Nessuno ha ancora preso questa issue.
Valutazione
- Difficoltà
- 4/5
- Tempo stimato
- 3-5 giorni
- Idoneità per principianti
- 48/100
Direzione di ricerca
Riproduci il comportamento di una nuova installazione aprendo /app/share/vscode/flatpak-warning.txt nell’applicazione Flatpak ed eseguendo i comandi fc-match forniti all’interno della sandbox. Esamina fix-flatpak-vscode-fonts.sh e la configurazione dei caratteri predefiniti inclusa nel pacchetto, quindi verifica che l’editor utilizzi un carattere monospaziato senza impostazioni dell’utente, mantenendo l’ambiente riportato.
Scritto dal modello di indicizzazione a partire dal testo della issue.
Descrizione
Description
On a fresh installation of the Flatpak version of Visual Studio Code, plain text in the editor appears to use a proportional font instead of a monospace font.
There was no settings.json in the default user profile when the problem occurred.
Environment
- Application ID:
com.visualstudio.code - VS Code version reported by Flatpak:
1.130.0 - Flatpak branch:
stable - Installation: system-wide
Steps to reproduce
- Launch the Flatpak application with the default user settings.
- Open the bundled
/app/share/vscode/flatpak-warning.txt. - Observe the font used in the editor.
Expected behavior
The editor should use a monospace font with the default settings.
Actual behavior
The editor text appears proportional, including the bundled warning file.
Font diagnostics
The installed VS Code build specifies the following default Linux editor font family:
'Droid Sans Mono', monospace
Running these commands inside the Flatpak sandbox produced:
flatpak run --command=fc-match com.visualstudio.code "Droid Sans Mono"
# DejaVuSans.ttf: "DejaVu Sans" "Book"
flatpak run --command=fc-match com.visualstudio.code monospace
# DejaVuSansMono.ttf: "DejaVu Sans Mono" "Book"
flatpak run --command=fc-match com.visualstudio.code "Source Code Pro" \
-f '%{family} spacing=%{spacing}\n'
# Source Code Pro spacing=100
Monospace fonts are therefore available inside the sandbox. However, the unavailable Droid Sans Mono family resolves to proportional DejaVu Sans when queried directly.
This suggests a font fallback or substitution issue, although the fc-match results alone do not establish exactly how Electron resolves the complete font-family list.
Workaround
Explicitly selecting an available monospace font resolves the editor display issue:
{
"editor.fontFamily": "'Source Code Pro', 'DejaVu Sans Mono', monospace",
"terminal.integrated.fontFamily": "'Source Code Pro', 'DejaVu Sans Mono', monospace"
}
The terminal setting was added as a precaution; the original issue was observed in the editor.
Possible investigation
Could you check whether the packaged default font configuration reliably falls back to a monospace font when Droid Sans Mono is absent?
Using an available monospace default or providing an appropriate font substitution may help avoid this on fresh installations.
- Lingua principale
- Shell
- Stelle
- 217
- Fork
- 81
- Merge medio
- 4g 12h
- PR unite (30g)
- 3
Preparare l'ambiente
Questo progetto non fornisce container di sviluppo, Dockerfile né guida per i contributori, quindi l'ambiente è a tuo carico: parti dal suo README e consulta la nostra guida al primo contributo per i passaggi generali.
Come iniziare
- Leggi tutta la issue e poi la guida ai contributi del progetto.
- Commenta sulla issue per dire che te ne occupi tu — evita che due persone facciano lo stesso lavoro.
- Fai un fork del repository e lavora su un branch.
- Apri una pull request che faccia riferimento al numero della issue.
Altre issue di flathub/com.visualstudio.code
-
Document podman/dockerAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
flathub/com.visualstudio.code#679 · 4 commenti ·
-
App logs to stderr "Warning: 'ms-enable-electron-run-as-node' is not in the list of known options, but still passed to Electron/Chromium."Forse di nuovo libera Una pull request per questa issue è stata chiusa senza essere unita. Aperta
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 65/100
flathub/com.visualstudio.code#563 · 2 reazioni ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 65/100
flathub/com.visualstudio.code#388 ·
-
Difficoltà 2/5 1-3 ore Idoneità per principianti 55/100
flathub/com.visualstudio.code#715 ·
-
Difficoltà 4/5 3-5 giorni Idoneità per principianti 32/100
flathub/com.visualstudio.code#698 ·
Tutte le issue di flathub/com.visualstudio.code
Issue simili
-
review-drift
Difficoltà 2/5 1-3 ore Idoneità per principianti 78/100
oxidecomputer/hansei#14 ·
-
bug
Difficoltà 2/5 1-3 ore Idoneità per principianti 75/100
-
omarchy-menu-keybindings lua bind scan spins at 100% CPU when user config iterates a mocked hl APIAperta
Difficoltà 2/5 1-3 ore Idoneità per principianti 82/100
omacom/omarchy#14302 · 1 commento ·
I maintainer di solito rispondono entro 1 giorno
-
Link Checker ReportForse già presa @keraron l’ha presa oggi. Apertaautomated issue report
Difficoltà 2/5 1-3 ore Idoneità per principianti 68/100
a2aproject/A2A#2297 ·
I maintainer di solito rispondono entro 1 giorno
-
Difficoltà 1/5 Meno di un'ora Idoneità per principianti 88/100
mattpocock/skills#1165 ·