mirror of
https://github.com/alacritty/alacritty.git
synced 2024-11-18 13:55:23 -05:00
e6c9c5036d
Still a WIP because of unimplemented Linux portion. Support has been added for font rasterization options. At this time, the only supported option is antialias. It's a tri-state flag which can be either ~ for "use default", true to force antialias, and false to force disable antialias. The options may be specified both globally and per font section. The per font sections override global options. An example of a complex config follows. In the example, the global value requests using default antialias settings, and the normal face disables antialias. font: options: antialias: ~ normal: family: monospace options: antialias: false Finally, note that the top level font.options is used for fallback fonts.
28 lines
740 B
TOML
28 lines
740 B
TOML
[package]
|
|
name = "font"
|
|
version = "0.1.0"
|
|
authors = ["Joe Wilm <joe@jwilm.com>"]
|
|
description = "Font rendering using the best available solution per platform"
|
|
license = "Apache-2.0"
|
|
|
|
[features]
|
|
with-serde = ["serde", "serde_derive"]
|
|
|
|
[dependencies]
|
|
euclid = "0.12.0"
|
|
libc = "0.2"
|
|
foreign-types = "0.2.0"
|
|
log = "0.3"
|
|
serde = { version = "1", optional = true }
|
|
serde_derive = { version = "1", optional = true }
|
|
|
|
[target.'cfg(not(target_os = "macos"))'.dependencies]
|
|
servo-fontconfig = { git = "https://github.com/jwilm/rust-fontconfig", branch = "updated-2017-10-8" }
|
|
freetype-rs = "0.13.0"
|
|
|
|
[target.'cfg(target_os = "macos")'.dependencies]
|
|
core-foundation = "0.3.0"
|
|
core-text = "6.1.0"
|
|
core-graphics = "0.8.1"
|
|
core-foundation-sys = "0.3.1"
|
|
|