Text pasted into rich text programs does not specify a fallback font #75279
Labels
bug
Issue identified by VS Code Team member as probable bug
editor-clipboard
Editor clipboard issues
Milestone
Issue Type: Bug
When pasting text from the editor to another program, such as an email, the HTML generated to specifies only the editor font as the font-family of text elements, so if the user has specified a custom editor font that doesn't exist on most systems, recipients of the code will see it rendered in a default, non-monospaced font. In this case, pasting code from VS Code (with font set to Inconsolata) into an outlook email causes the code to be rendered in Times New Roman for recipients that don't have Inconsolata installed.
Current paste result:
Proposed paste result:
A good solution might be to always specify a fallback font corresponding to the class of the editor font:
monospace
,sans-serif
, orserif
.VS Code version: Code 1.35.0 (553cfb2, 2019-06-04T01:17:12.481Z)
OS version: Windows_NT x64 10.0.17763
System Info
checker_imaging: disabled_off
flash_3d: enabled
flash_stage3d: enabled
flash_stage3d_baseline: enabled
gpu_compositing: enabled
multiple_raster_threads: enabled_on
native_gpu_memory_buffers: disabled_software
rasterization: enabled
surface_synchronization: enabled_on
video_decode: enabled
webgl: enabled
webgl2: enabled
The text was updated successfully, but these errors were encountered: