dead code: remove old FontHinting, FontAntialiasing bits

This commit is contained in:
Wez Furlong committed 2021-05-22 15:04:42 -07:00
1 parent 8418495dbd
commit e29fdae3b9
2 files changed
-39

No files matched your search

-35
View File
@@ -216,41 +216,6 @@ impl FreeTypeLoadFlags {
}
}
#[derive(Debug, Copy, Deserialize, Serialize, Clone, PartialEq, Eq, Hash)]
pub enum FontHinting {
/// No hinting is performed
None,
/// Light vertical hinting is performed to fit the terminal grid
Vertical,
/// Vertical hinting is performed, with additional processing
/// for subpixel anti-aliasing.
/// This level is equivalent to Microsoft ClearType.
VerticalSubpixel,
/// Vertical and horizontal hinting is performed.
Full,
}
impl_lua_conversion!(FontHinting);
impl Default for FontHinting {
fn default() -> Self {
Self::Full
}
}
#[derive(Debug, Copy, Deserialize, Serialize, Clone, PartialEq, Eq, Hash)]
pub enum FontAntiAliasing {
None,
Greyscale,
Subpixel,
}
impl_lua_conversion!(FontAntiAliasing);
impl Default for FontAntiAliasing {
fn default() -> Self {
Self::Greyscale
}
}
#[derive(Debug, Serialize, Deserialize, Clone, PartialEq, Eq, Hash)]
pub struct FontAttributes {
/// The font family name
-4
View File
@@ -804,10 +804,6 @@ pub struct Config {
pub font_rasterizer: FontRasterizerSelection,
#[serde(default)]
pub font_shaper: FontShaperSelection,
#[serde(default)]
pub font_hinting: FontHinting,
#[serde(default)]
pub font_antialias: FontAntiAliasing,
#[serde(default)]
pub freetype_load_target: FreeTypeLoadTarget,