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

getting devicePixelRatio via fontSize #83

Open
Thorin-Oakenpants opened this issue Jun 4, 2021 · 1 comment
Open

getting devicePixelRatio via fontSize #83

Thorin-Oakenpants opened this issue Jun 4, 2021 · 1 comment
Labels

Comments

@Thorin-Oakenpants
Copy link
Contributor

source

#define FONT_MAX_SIZE 2000.0

This is in device pixels, so the CSS px size it represents would depend on the devicePixelRatio of the screen; e.g. on a Retina display it'd be 1000px

Something to think about

@Thorin-Oakenpants
Copy link
Contributor Author

not worth it bucket, but tucked away in the back of my mind: I already have a very accurate devicePixelRatio PoC/leak which seems to be too hard to patch upstream

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Development

No branches or pull requests

1 participant