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

Text pasted into rich text programs does not specify a fallback font #75279

Closed
ryanoshea opened this issue Jun 11, 2019 · 1 comment
Closed
Assignees
Labels
bug Issue identified by VS Code Team member as probable bug editor-clipboard Editor clipboard issues
Milestone

Comments

@ryanoshea
Copy link

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:

<span style='font-size:10.5pt;font-family:Inconsolata;color:#F09483'>...

Proposed paste result:

<span style='font-size:10.5pt;font-family:Inconsolata, monospace;color:#F09483'>...

A good solution might be to always specify a fallback font corresponding to the class of the editor font: monospace, sans-serif, or serif.

VS Code version: Code 1.35.0 (553cfb2, 2019-06-04T01:17:12.481Z)
OS version: Windows_NT x64 10.0.17763

System Info
Item Value
CPUs Intel(R) Core(TM) i7-8550U CPU @ 1.80GHz (8 x 1992)
GPU Status 2d_canvas: enabled
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
Load (avg) undefined
Memory (System) 15.85GB (4.43GB free)
Process Argv
Screen Reader no
VM 0%
@rebornix rebornix added editor-clipboard Editor clipboard issues feature-request Request for new features or functionality labels Jul 27, 2019
@rebornix
Copy link
Member

Good suggestion, thanks!

@rebornix rebornix added this to the On Deck milestone Jul 30, 2019
@rebornix rebornix added bug Issue identified by VS Code Team member as probable bug and removed feature-request Request for new features or functionality labels Jul 31, 2019
@vscodebot vscodebot bot locked and limited conversation to collaborators Sep 14, 2019
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 editor-clipboard Editor clipboard issues
Projects
None yet
Development

No branches or pull requests

2 participants