mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-10-09 03:16:33 +00:00
feat(font): Non-integer point sizes
Allows for high dpi displays to get odd numbered pixel sizes, for example, 13.5pt @ 2px/pt for 27px font. This implementation performs all the sizing calculations with f32, rounding to the nearest pixel size when it comes to rendering. In the future this can be enhanced by adding fractional scaling to support fractional pixel sizes.
This commit is contained in:
@@ -250,8 +250,10 @@ fn parseIntoField(
|
||||
0,
|
||||
) catch return error.InvalidValue,
|
||||
|
||||
f64 => std.fmt.parseFloat(
|
||||
f64,
|
||||
f32,
|
||||
f64,
|
||||
=> |Float| std.fmt.parseFloat(
|
||||
Float,
|
||||
value orelse return error.ValueRequired,
|
||||
) catch return error.InvalidValue,
|
||||
|
||||
|
Reference in New Issue
Block a user