In the earlier times wezterm supported different font rasterizers,
and the configuration was a bit vague and generic to accomodate
differences in how the rasterizers worked.
Since then, we've standardized on freetype.
One of the things that's been bothering me for a while is that
we have some fiddly logic to transform from the config to the freetype
flags.
This commit does away with the transformation and simply exposes
the two sets of freetype options.
The main thing that I expect people to play with is
`freetype_load_target` which can have one of the following values:
```
pub enum FreeTypeLoadTarget {
/// This corresponds to the default hinting algorithm, optimized
for standard gray-level rendering.
Normal,
/// A lighter hinting algorithm for non-monochrome modes. Many
generated glyphs are more fuzzy but better resemble its original
shape. A bit like rendering on Mac OS X. This target implies
FT_LOAD_FORCE_AUTOHINT.
Light,
/// Strong hinting algorithm that should only be used for
monochrome output. The result is probably unpleasant if the glyph
is rendered in non-monochrome modes.
Mono,
/// A variant of Normal optimized for horizontally decimated LCD displays.
HorizontalLcd,
/// A variant of Normal optimized for vertically decimated LCD displays.
VerticalLcd,
}
```
I expect most people will want to set this to one of `Normal`, `Light`
or `HorizontalLcd`. `HorizontalLcd` is what `font_antialias=Subpixel`
used to select.
refs: #491
42 lines
1.0 KiB
TOML
42 lines
1.0 KiB
TOML
[package]
|
|
name = "config"
|
|
version = "0.1.0"
|
|
authors = ["Wez Furlong <wez@wezfurlong.org>"]
|
|
edition = "2018"
|
|
build = "build.rs"
|
|
|
|
# See more keys and their definitions at https://doc.rust-lang.org/cargo/reference/manifest.html
|
|
|
|
[build-dependencies]
|
|
vergen = "3"
|
|
|
|
[dev-dependencies]
|
|
pretty_env_logger = "0.4"
|
|
|
|
[dependencies]
|
|
anyhow = "1.0"
|
|
bitflags = "1.0"
|
|
bstr = "0.2"
|
|
dirs-next = "2.0"
|
|
filenamegen = "0.2"
|
|
hostname = "0.3"
|
|
lazy_static = "1.4"
|
|
libc = "0.2"
|
|
log = "0.4"
|
|
luahelper = { path = "../luahelper" }
|
|
mlua = {version="0.5", features=["vendored", "lua54", "async", "send"]}
|
|
# file change notification
|
|
notify = "4.0"
|
|
portable-pty = { path = "../pty", features = ["serde_support"]}
|
|
promise = { path = "../promise" }
|
|
serde = {version="1.0", features = ["rc", "derive"]}
|
|
smol = "1.2"
|
|
termwiz = { path = "../termwiz" }
|
|
toml = "0.5"
|
|
umask = { path = "../umask" }
|
|
wezterm-input-types = { path = "../wezterm-input-types" }
|
|
wezterm-term = { path = "../term", features=["use_serde"] }
|
|
|
|
[target."cfg(windows)".dependencies]
|
|
winapi = { version = "0.3", features = ["winuser"]}
|