skadi-cloud/gist

Standardised editor setting for screenshots

Open

#26 opened on Oct 3, 2021

 (0 comments) (0 reactions) (0 assignees)Kotlin (1 fork)auto 404
good first issuehelp wantedide

Repository metrics

Stars
 (6 stars)
PR merge metrics
 (PR metrics pending)

Description

Right now screenshots are taken with the editor settings of the user. Which means font, font size, etc can vary depending on which user is uploading the gist. Ideally we want to use the same settings on the client side to generate the screenshot to ensure a consistent look at the website. Extremely large or small font sizes can make it hard to read the screenshots at the website. Especially large fonts can easily render the preview feature on the front page useless because we might only see one or two lines of the gist.

The images are produced in ide-plugin/src/main/kotlin/cloud/skadi/gist/mps/plugin/EditorAsImage.kt

Contributor guide