diff options
author | Joe Wilm <joe@jwilm.com> | 2017-10-08 09:54:00 -0700 |
---|---|---|
committer | Joe Wilm <jwilm@users.noreply.github.com> | 2017-10-08 22:20:58 -0700 |
commit | 31d1087b8614ddd423a6c522d91a1d93a37cd92e (patch) | |
tree | d18d3ec4cf3227ef0700fc7cd09587c47142a0f4 /font/src/ft/fc/mod.rs | |
parent | 46d88ad244eaad84f0da2ef2177730d1293ee157 (diff) | |
download | alacritty-31d1087b8614ddd423a6c522d91a1d93a37cd92e.tar.gz alacritty-31d1087b8614ddd423a6c522d91a1d93a37cd92e.zip |
FreeType rasterizer respects some fontconfig
The FreeType rasterizer now reads settings like antialias, rgba,
lcdfilter, and hintstyle and chooses FreeType settings accordingly. The
result is that Alacritty fonts should look similar to the rest of the
system.
Diffstat (limited to 'font/src/ft/fc/mod.rs')
-rw-r--r-- | font/src/ft/fc/mod.rs | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/font/src/ft/fc/mod.rs b/font/src/ft/fc/mod.rs index c4cb40eb..f6d7d64a 100644 --- a/font/src/ft/fc/mod.rs +++ b/font/src/ft/fc/mod.rs @@ -44,6 +44,8 @@ pub mod pattern; pub use self::pattern::{Pattern, PatternRef}; /// Find the font closest matching the provided pattern. +/// +/// The returned pattern is the result of Pattern::render_prepare. pub fn font_match( config: &ConfigRef, pattern: &mut PatternRef, |