Skip to content

Commit

Permalink
Introduce font-shaping-break config option
Browse files Browse the repository at this point in the history
  • Loading branch information
dpatterbee committed Jan 26, 2025
1 parent 71e62f9 commit 0d8bc2b
Show file tree
Hide file tree
Showing 9 changed files with 411 additions and 109 deletions.
1 change: 1 addition & 0 deletions src/config.zig
Original file line number Diff line number Diff line change
Expand Up @@ -18,6 +18,7 @@ pub const ConfirmCloseSurface = Config.ConfirmCloseSurface;
pub const CopyOnSelect = Config.CopyOnSelect;
pub const CustomShaderAnimation = Config.CustomShaderAnimation;
pub const FontSyntheticStyle = Config.FontSyntheticStyle;
pub const FontShapingBreak = Config.FontShapingBreak;
pub const FontStyle = Config.FontStyle;
pub const FreetypeLoadFlags = Config.FreetypeLoadFlags;
pub const Keybinds = Config.Keybinds;
Expand Down
11 changes: 11 additions & 0 deletions src/config/Config.zig
Original file line number Diff line number Diff line change
Expand Up @@ -257,6 +257,12 @@ pub const renamed = std.StaticStringMap([]const u8).initComptime(&.{
/// This is currently only supported on macOS.
@"font-thicken-strength": u8 = 255,

/// Where to break font shaping runs.
///
/// Currently only one option, "cursor", which is enabled by default and breaks
/// text runs under the cursor.
@"font-shaping-break": FontShapingBreak = .{},

/// What color space to use when performing alpha blending.
///
/// This affects how text looks for different background/foreground color pairs.
Expand Down Expand Up @@ -5588,6 +5594,11 @@ pub const FontSyntheticStyle = packed struct {
@"bold-italic": bool = true,
};

/// See "font-shaping-break" for documentation
pub const FontShapingBreak = packed struct {
cursor: bool = true,
};

/// See "link" for documentation.
pub const RepeatableLink = struct {
const Self = @This();
Expand Down
Loading

0 comments on commit 0d8bc2b

Please sign in to comment.