1
1
mirror of https://github.com/wez/wezterm.git synced 2024-11-28 09:12:19 +03:00

tweak log level for ignored freetype error

This commit is contained in:
Wez Furlong 2019-06-08 15:40:57 -07:00
parent 5ccff722ef
commit 75a950328a
2 changed files with 4 additions and 4 deletions

View File

@ -6,7 +6,7 @@ use crate::font::ftfont::FreeTypeFontImpl;
use crate::font::{fcwrap, ftwrap}; use crate::font::{fcwrap, ftwrap};
use crate::font::{shape_with_harfbuzz, FallbackIdx, Font, FontSystem, GlyphInfo, NamedFont}; use crate::font::{shape_with_harfbuzz, FallbackIdx, Font, FontSystem, GlyphInfo, NamedFont};
use failure::{bail, ensure, err_msg, Error}; use failure::{bail, ensure, err_msg, Error};
use log::error; use log::{error, warn};
pub type FontSystemImpl = FontConfigAndFreeType; pub type FontSystemImpl = FontConfigAndFreeType;
@ -89,7 +89,7 @@ impl NamedFontImpl {
// care to abort the rest of what we're doing // care to abort the rest of what we're doing
match lib.set_lcd_filter(ftwrap::FT_LcdFilter::FT_LCD_FILTER_DEFAULT) { match lib.set_lcd_filter(ftwrap::FT_LcdFilter::FT_LCD_FILTER_DEFAULT) {
Ok(_) => (), Ok(_) => (),
Err(err) => error!("Ignoring: FT_LcdFilter failed: {:?}", err), Err(err) => warn!("Ignoring: FT_LcdFilter failed: {:?}", err),
}; };
// Enable some filtering options and pull in the standard // Enable some filtering options and pull in the standard

View File

@ -6,7 +6,7 @@ use crate::font::{
ftwrap, shape_with_harfbuzz, FallbackIdx, Font, FontSystem, GlyphInfo, NamedFont, ftwrap, shape_with_harfbuzz, FallbackIdx, Font, FontSystem, GlyphInfo, NamedFont,
}; };
use failure::{format_err, Error}; use failure::{format_err, Error};
use log::{debug, error}; use log::{debug, warn};
struct NamedFontImpl { struct NamedFontImpl {
_lib: ftwrap::Library, _lib: ftwrap::Library,
@ -42,7 +42,7 @@ impl FontSystem for FontLoaderAndFreeType {
// care to abort the rest of what we're doing // care to abort the rest of what we're doing
match lib.set_lcd_filter(ftwrap::FT_LcdFilter::FT_LCD_FILTER_DEFAULT) { match lib.set_lcd_filter(ftwrap::FT_LcdFilter::FT_LCD_FILTER_DEFAULT) {
Ok(_) => (), Ok(_) => (),
Err(err) => error!("Ignoring: FT_LcdFilter failed: {:?}", err), Err(err) => warn!("Ignoring: FT_LcdFilter failed: {:?}", err),
}; };
let mut fonts = Vec::new(); let mut fonts = Vec::new();