From 75a950328a07a5891ae6956d573991503beee984 Mon Sep 17 00:00:00 2001 From: Wez Furlong Date: Sat, 8 Jun 2019 15:40:57 -0700 Subject: [PATCH] tweak log level for ignored freetype error --- src/font/fontconfigandfreetype.rs | 4 ++-- src/font/fontloader_and_freetype.rs | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) diff --git a/src/font/fontconfigandfreetype.rs b/src/font/fontconfigandfreetype.rs index c20d70516..910be0f26 100644 --- a/src/font/fontconfigandfreetype.rs +++ b/src/font/fontconfigandfreetype.rs @@ -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 diff --git a/src/font/fontloader_and_freetype.rs b/src/font/fontloader_and_freetype.rs index 6c25e62b2..887c6b6db 100644 --- a/src/font/fontloader_and_freetype.rs +++ b/src/font/fontloader_and_freetype.rs @@ -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();