mirror of
https://github.com/wez/wezterm.git
synced 2024-11-24 07:46:59 +03:00
tweak log level for ignored freetype error
This commit is contained in:
parent
5ccff722ef
commit
75a950328a
@ -6,7 +6,7 @@ use crate::font::ftfont::FreeTypeFontImpl;
|
||||
use crate::font::{fcwrap, ftwrap};
|
||||
use crate::font::{shape_with_harfbuzz, FallbackIdx, Font, FontSystem, GlyphInfo, NamedFont};
|
||||
use failure::{bail, ensure, err_msg, Error};
|
||||
use log::error;
|
||||
use log::{error, warn};
|
||||
|
||||
pub type FontSystemImpl = FontConfigAndFreeType;
|
||||
|
||||
@ -89,7 +89,7 @@ impl NamedFontImpl {
|
||||
// care to abort the rest of what we're doing
|
||||
match lib.set_lcd_filter(ftwrap::FT_LcdFilter::FT_LCD_FILTER_DEFAULT) {
|
||||
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
|
||||
|
@ -6,7 +6,7 @@ use crate::font::{
|
||||
ftwrap, shape_with_harfbuzz, FallbackIdx, Font, FontSystem, GlyphInfo, NamedFont,
|
||||
};
|
||||
use failure::{format_err, Error};
|
||||
use log::{debug, error};
|
||||
use log::{debug, warn};
|
||||
|
||||
struct NamedFontImpl {
|
||||
_lib: ftwrap::Library,
|
||||
@ -42,7 +42,7 @@ impl FontSystem for FontLoaderAndFreeType {
|
||||
// care to abort the rest of what we're doing
|
||||
match lib.set_lcd_filter(ftwrap::FT_LcdFilter::FT_LCD_FILTER_DEFAULT) {
|
||||
Ok(_) => (),
|
||||
Err(err) => error!("Ignoring: FT_LcdFilter failed: {:?}", err),
|
||||
Err(err) => warn!("Ignoring: FT_LcdFilter failed: {:?}", err),
|
||||
};
|
||||
|
||||
let mut fonts = Vec::new();
|
||||
|
Loading…
Reference in New Issue
Block a user