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

Antialiasing enum #157

Open
carewolf opened this issue Nov 9, 2017 · 3 comments
Open

Antialiasing enum #157

carewolf opened this issue Nov 9, 2017 · 3 comments
Labels

Comments

@carewolf
Copy link

carewolf commented Nov 9, 2017

While text is currently not part of the standard a possible antialiasing technique might still be using sub-pixel rendering. If an image is to be displayed between two different screen or is expected to be rescaled, you don't want subpixel scaling you want generic antialiasin. So you might want to consider instead or in addtional of good/best to have best for device and best for generic.

@mikebmcl
Copy link
Member

mikebmcl commented Dec 1, 2017

The current plan is to have a separate enum for text antialiasing. Right now, the four fundamental drawing operations are "paint", "stroke", "fill", and "mask". Rendering text will be the fifth (and final, to the best of my knowledge) operation. Generally, text antialiasing strategies are different from rasterized image antialiasing strategies. So to me it me it makes sense to have separate enum classes for each. But I'm happy to consider arguments to the contrary.

@carewolf
Copy link
Author

carewolf commented Dec 2, 2017

The argument is more that it could technically make sense to use subpixel antialiasing on non-text rendering. Of course that is not that common.

@mikebmcl
Copy link
Member

mikebmcl commented Dec 3, 2017

Graphics technologies that I'm familiar with don't do subpixel rendering for non-text rendering; if they do, they don't expose it via any API.

The nice thing about enum classes is that adding enumerators to them does not break ABI. So if this turns out to be something that should exist either now or in the future, adding it would not cause any breaking changes.

If you think of particular graphics technologies, please do let me know. You can always propose the change yourself, of course, and I'd make it if LEWG came to a consensus that it should be done. But that whole process can be bypassed if you convince me or Guy that it should be done.

Best regards,

-Mike

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

No branches or pull requests

2 participants