Better support for outputs with fractional scaling #5

Closed
opened 2 years ago by dnkl · 0 comments
dnkl commented 2 years ago
Owner

Non-integral scaling is something some compositors support, and is typically implemented by letting the client application upscale the image by some integral factor that is larger than the wanted non-integral factor, and then downscaled again by the compositor.

For example, with a scale factor of 1.25, the client will typically see a scale factor of 2.

Besides the obvious problem with the resulting font no longer being pixel perfect (aka blurry), this is a problem for foot which uses the monitor's physical dimensions and DPI to scale the font.

For integral scale factors this works nicely since the image isn't touched by the compositor. But for non-integral scale factors the result is a font that looks smaller.

Add some kind of configuration option that changes how foot scales fonts. Instead of using the physical DPI, using the logical DPI (calculated from the scaled monitor dimensions) should work better. The scale factor probably has to be applied as well.

@nikp123

Non-integral scaling is something some compositors support, and is typically implemented by letting the client application upscale the image by some integral factor that is larger than the wanted non-integral factor, and then downscaled again by the compositor. For example, with a scale factor of 1.25, the client will typically see a scale factor of 2. Besides the obvious problem with the resulting font no longer being pixel perfect (aka blurry), this is a problem for foot which uses the monitor's physical dimensions and DPI to scale the font. For integral scale factors this works nicely since the image isn't touched by the compositor. But for non-integral scale factors the result is a font that looks smaller. Add some kind of configuration option that changes how foot scales fonts. Instead of using the physical DPI, using the logical DPI (calculated from the scaled monitor dimensions) should work better. The scale factor probably has to be applied as well. @nikp123
dnkl self-assigned this 2 years ago
dnkl changed title from Better support for outputs with non-integral scale factors to Better support for outputs with fractional scaling 2 years ago
dnkl referenced this issue from a commit 2 years ago
dnkl closed this issue 2 years ago
dnkl referenced this issue from a commit 2 years ago
Sign in to join this conversation.
No Milestone
No Assignees
1 Participants
Notifications
Due Date

No due date set.

Dependencies

This issue currently doesn't have any dependencies.

Loading…
There is no content yet.