mirror of
https://github.com/ghostty-org/ghostty.git
synced 2026-04-20 14:25:19 +00:00
update font_size to f32 in libghostty
This commit is contained in:
@@ -314,7 +314,7 @@ pub const Surface = struct {
|
||||
scale_factor: f64 = 1,
|
||||
|
||||
/// The font size to inherit. If 0, default font size will be used.
|
||||
font_size: u8 = 0,
|
||||
font_size: f32 = 0,
|
||||
|
||||
/// The working directory to load into.
|
||||
working_directory: [*:0]const u8 = "",
|
||||
@@ -1049,7 +1049,7 @@ pub const Surface = struct {
|
||||
}
|
||||
|
||||
fn newSurfaceOptions(self: *const Surface) apprt.Surface.Options {
|
||||
const font_size: u8 = font_size: {
|
||||
const font_size: f32 = font_size: {
|
||||
if (!self.app.config.@"window-inherit-font-size") break :font_size 0;
|
||||
break :font_size self.core_surface.font_size.points;
|
||||
};
|
||||
|
||||
Reference in New Issue
Block a user