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

Add a PPI property to basic_image_surface and a way to query the PPI for basic_output_surface/basic_unmanaged_output_surface #119

Open
mikebmcl opened this issue Jun 14, 2019 · 1 comment
Assignees

Comments

@mikebmcl
Copy link
Member

This is needed to properly support point size sizing for text rendering and other PPI-specific sizing (if added). Need to mull over the proper API since output surfaces are scaled up by default currently, which would introduce fuzzy typography.

@mikebmcl mikebmcl self-assigned this Jun 14, 2019
@ghost
Copy link

ghost commented Jun 28, 2019

Introduce strong types for pixels and physical distance and overload on them? I know that graphics like this seem to be inch based but I would say we make them meter-based so std::ratio<1, 1> would mean meters.

So density can be expressed in negative powers, right?

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

No branches or pull requests

1 participant