mirror of
https://github.com/ghostty-org/ghostty.git
synced 2025-07-16 16:56:09 +03:00

This adds a new configuration "font-synthetic-style" to enable or disable synthetic styles. This is different from "font-style-*" which specifies a named style or disables a style completely. Instead, "font-synthetic-style" will disable only the creation of synthetic styles in the case a font does not support a given style. This is useful for users who want to obviously know when a font doesn't support a given style or a user who wants to explicitly only use the styles that were designed by the font designer. The default value is to enable all synthetic styles.
39 lines
1.5 KiB
Zig
39 lines
1.5 KiB
Zig
const builtin = @import("builtin");
|
|
|
|
const formatter = @import("config/formatter.zig");
|
|
pub const Config = @import("config/Config.zig");
|
|
pub const string = @import("config/string.zig");
|
|
pub const edit = @import("config/edit.zig");
|
|
pub const url = @import("config/url.zig");
|
|
|
|
pub const FileFormatter = formatter.FileFormatter;
|
|
pub const entryFormatter = formatter.entryFormatter;
|
|
pub const formatEntry = formatter.formatEntry;
|
|
|
|
// Field types
|
|
pub const ClipboardAccess = Config.ClipboardAccess;
|
|
pub const CopyOnSelect = Config.CopyOnSelect;
|
|
pub const CustomShaderAnimation = Config.CustomShaderAnimation;
|
|
pub const FontSyntheticStyle = Config.FontSyntheticStyle;
|
|
pub const FontStyle = Config.FontStyle;
|
|
pub const Keybinds = Config.Keybinds;
|
|
pub const MouseShiftCapture = Config.MouseShiftCapture;
|
|
pub const NonNativeFullscreen = Config.NonNativeFullscreen;
|
|
pub const OptionAsAlt = Config.OptionAsAlt;
|
|
pub const RepeatableCodepointMap = Config.RepeatableCodepointMap;
|
|
pub const RepeatableFontVariation = Config.RepeatableFontVariation;
|
|
pub const RepeatableString = Config.RepeatableString;
|
|
pub const ShellIntegrationFeatures = Config.ShellIntegrationFeatures;
|
|
pub const WindowPaddingColor = Config.WindowPaddingColor;
|
|
|
|
// Alternate APIs
|
|
pub const CAPI = @import("config/CAPI.zig");
|
|
pub const Wasm = if (!builtin.target.isWasm()) struct {} else @import("config/Wasm.zig");
|
|
|
|
test {
|
|
@import("std").testing.refAllDecls(@This());
|
|
|
|
// Vim syntax file, not used at runtime but we want to keep it tested.
|
|
_ = @import("config/vim.zig");
|
|
}
|