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.

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

Terminal window auto-resize leads to intability#3Use logical DPI+scale factor when scaling fonts#6to~~Better support for outputs with non-integral scale factors~~Better support for outputs with fractional scaling2 years ago