Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Markdown preview is rendered with strange fonts #97374

Closed
dimitry-ishenko opened this issue May 9, 2020 · 3 comments
Closed

Markdown preview is rendered with strange fonts #97374

dimitry-ishenko opened this issue May 9, 2020 · 3 comments
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug markdown Markdown support issues verified Verification succeeded
Milestone

Comments

@dimitry-ishenko
Copy link

dimitry-ishenko commented May 9, 2020

Issue Type: Bug

  1. Remove all font settings in settings.json.
  2. Create new file and change language to Markdown.
  3. Enter the following:

  1. Press Ctrl+Shift+V to show preview:

  1. Observe the file rendered with Ubuntu for the plain text and Courier New for the code block. I do not have these fonts specified anywhere in my settings (including GNOME settings). My settings are:
dimitry@laptop:~$ fc-match monospace
CourierMod-Regular.ttf: "Courier" "Regular"
dimitry@laptop:~$ fc-match sans-serif
CenturyGothic-Regular.ttf: "Century Gothic" "Regular"
dimitry@laptop:~$ fc-match system-ui
CenturyGothic-Regular.ttf: "Century Gothic" "Regular"
  1. Change Markdown preview font to your favorite font, eg:
    "markdown.preview.fontFamily": "'Roboto Mono'"

  2. Observe the plain text rendered in the proper font, but the code block is still rendered using Courier New:

Current behavior:

The code blocked are rendered using Courier New font, disregarding the markdown.preview.fontFamily setting.

Expected behavior:

Code blocks are rendered respecting the markdown.preview.fontFamily setting or at least using the monospace font.

VS Code version: Code 1.45.0 (d69a79b, 2020-05-07T16:10:24.511Z)
OS version: Linux x64 5.4.0-29-generic

System Info
Item Value
CPUs Intel(R) Core(TM) i7-1065G7 CPU @ 1.30GHz (8 x 3237)
GPU Status 2d_canvas: enabled
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
oop_rasterization: disabled_off
protected_video_decode: unavailable_off
rasterization: disabled_software
skia_renderer: disabled_off_ok
video_decode: unavailable_off
viz_display_compositor: enabled_on
viz_hit_test_surface_layer: disabled_off_ok
webgl: enabled
webgl2: enabled
Load (avg) 1, 1, 1
Memory (System) 15.23GB (4.95GB free)
Process Argv --no-sandbox --unity-launch
Screen Reader no
VM 0%
DESKTOP_SESSION ubuntu
XDG_CURRENT_DESKTOP Unity
XDG_SESSION_DESKTOP ubuntu
XDG_SESSION_TYPE x11
Extensions (8)
Extension Author (truncated) Version
gitlens eam 10.2.1
vscode-docker ms- 1.1.0
python ms- 2020.4.76186
cmake-tools ms- 1.3.1
cpptools ms- 0.27.1
cmake twx 0.0.17
vscodeintellicode Vis 1.2.7
vscode-icons vsc 10.1.1
@dimitry-ishenko
Copy link
Author

If I completely uninstall Courier New from the system, the code blocks are now rendered with DejaVu Sans Mono, which again is not specified in any of my settings:

@mjbvz mjbvz self-assigned this May 10, 2020
@mjbvz mjbvz added bug Issue identified by VS Code Team member as probable bug markdown Markdown support issues labels May 11, 2020
@mjbvz mjbvz added this to the May 2020 milestone May 11, 2020
@mjbvz mjbvz closed this as completed in df88d8a May 11, 2020
@dimitry-ishenko
Copy link
Author

Thank you @mjbvz. It's working great now.

@isidorn isidorn added the verified Verification succeeded label Jun 4, 2020
@isidorn
Copy link
Contributor

isidorn commented Jun 4, 2020

Adding verified per Dimitry's comment

@github-actions github-actions bot locked and limited conversation to collaborators Jun 25, 2020
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.
Labels
bug Issue identified by VS Code Team member as probable bug markdown Markdown support issues verified Verification succeeded
Projects
None yet
Development

No branches or pull requests

3 participants