Editor uses a proportional font with the default Linux font configuration
Chưa có ai nhận issue này.
Đánh giá
- Độ khó
- 4/5
- Thời gian dự kiến
- 3-5 ngày
- Mức phù hợp với người mới
- 48/100
Hướng nghiên cứu
Tái hiện hành vi của một bản cài đặt mới bằng cách mở /app/share/vscode/flatpak-warning.txt trong ứng dụng Flatpak và chạy các lệnh fc-match được cung cấp bên trong sandbox. Xem lại fix-flatpak-vscode-fonts.sh và cấu hình phông chữ mặc định được đóng gói, sau đó xác minh rằng trình soạn thảo sử dụng phông chữ đơn cách mà không cần cài đặt người dùng, đồng thời giữ nguyên môi trường được báo cáo.
Do mô hình lập chỉ mục viết ra từ nội dung của issue.
Mô tả
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.
- Ngôn ngữ chính
- Shell
- Star
- 216
- Fork
- 82
- Merge trung bình
- 1 ngày 7 giờ
- Pull request đã merge (30 ngày)
- 1
Hướng dẫn đóng góp
Chưa lập chỉ mục được hướng dẫn đóng góp cho kho mã nguồn này
Bắt đầu từ đâu
- Đọc hết issue, rồi đọc hướng dẫn đóng góp của dự án.
- Bình luận trên issue rằng bạn sẽ nhận — tránh hai người làm cùng một việc.
- Fork repository và làm thay đổi trên một nhánh.
- Mở pull request có tham chiếu số hiệu của issue.
Issue khác của flathub/com.visualstudio.code
-
Document podman/docker Đang mở
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 68/100
flathub/com.visualstudio.code#679 · 4 bình luận ·
-
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 65/100
flathub/com.visualstudio.code#563 · 2 reaction ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 65/100
flathub/com.visualstudio.code#388 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 55/100
flathub/com.visualstudio.code#715 ·
-
Độ khó 4/5 3-5 ngày Mức phù hợp với người mới 32/100
flathub/com.visualstudio.code#698 ·
Tất cả issue của flathub/com.visualstudio.code
Issue tương tự
-
[Bug] reef-hermes tells me to resume with hermes --resume, which does not work from my shell Đang mởarea: harness bug status: needs-triage
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
Human-Agent-Society/reef#625 ·
-
module: core
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
bigbluebutton/bigbluebutton#25849 ·
-
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 75/100
vercel-labs/just-bash#464 ·
-
area:sandbox documentation enhancement platform:linux
Độ khó 1/5 Dưới một giờ Mức phù hợp với người mới 85/100
anthropics/claude-code#96664 ·
-
cost:cheap severity:medium
Độ khó 2/5 1-3 giờ Mức phù hợp với người mới 70/100
fairagro/m4.2_sql_to_arc#227 ·