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

crispier text / font on html5 canvas #25

Open
JohnRDOrazio opened this issue Jul 5, 2021 · 1 comment
Open

crispier text / font on html5 canvas #25

JohnRDOrazio opened this issue Jul 5, 2021 · 1 comment
Labels
enhancement New feature or request

Comments

@JohnRDOrazio
Copy link
Collaborator

JohnRDOrazio commented Jul 5, 2021

if we think that an html5 canvas is a doable route for previewing the marriage booklet, perhaps we need to look a little closer at getting a nice crisp image (unfortunately canvas is never crisp out of the box). I've already implemented a couple of tricks to make the straight lines a bit crispier, however to get every one of them pixel perfect we may need to implement a Device Pixel Ratio calculation.
Also the fonts / text elements look terrible, perhaps this could be a fix to try out (I believe this solution in fact takes into account Device Pixel Ratio):
https://stackoverflow.com/questions/15661339/how-do-i-fix-blurry-text-in-my-html5-canvas

@JohnRDOrazio JohnRDOrazio added the enhancement New feature or request label Jul 5, 2021
@JohnRDOrazio
Copy link
Collaborator Author

another approach here: https://bel.fi/alankila/lcd/

@JohnRDOrazio JohnRDOrazio changed the title crisper text / font on html5 canvas crispier text / font on html5 canvas Jul 20, 2021
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
enhancement New feature or request
Projects
None yet
Development

No branches or pull requests

1 participant