diff options
author | Christian Duerr <contact@christianduerr.com> | 2020-05-05 22:50:23 +0000 |
---|---|---|
committer | GitHub <noreply@github.com> | 2020-05-05 22:50:23 +0000 |
commit | 81ce93574f62d4b117fdd79af65391f30316a457 (patch) | |
tree | 951a0578860c6028e2dfff0ca83879001c6b2385 /font/src/ft/fc/mod.rs | |
parent | 04f0bcaf54ed373128ca0f84ee8fcdd8e52bce23 (diff) |
Extend style guideline documentation
Diffstat (limited to 'font/src/ft/fc/mod.rs')
-rw-r--r-- | font/src/ft/fc/mod.rs | 12 |
1 files changed, 6 insertions, 6 deletions
diff --git a/font/src/ft/fc/mod.rs b/font/src/ft/fc/mod.rs index ecb056f7..b1b66be6 100644 --- a/font/src/ft/fc/mod.rs +++ b/font/src/ft/fc/mod.rs @@ -72,7 +72,7 @@ pub fn font_sort(config: &ConfigRef, pattern: &PatternRef) -> Option<FontSet> { let ptr = FcFontSort( config.as_ptr(), pattern.as_ptr(), - 1, // Trim font list + 1, // Trim font list. &mut charsets, &mut result, ); @@ -102,14 +102,14 @@ pub fn font_list( } } -/// Available font sets +/// Available font sets. #[derive(Debug, Copy, Clone)] pub enum SetName { System = FcSetSystem as isize, Application = FcSetApplication as isize, } -/// When matching, how to match +/// When matching, how to match. #[derive(Debug, Copy, Clone)] pub enum MatchKind { Font = FcMatchFont as isize, @@ -187,7 +187,7 @@ impl From<isize> for Width { } } -/// Subpixel geometry +/// Subpixel geometry. #[derive(Debug)] pub enum Rgba { Unknown, @@ -237,7 +237,7 @@ impl From<isize> for Rgba { } } -/// Hinting Style +/// Hinting Style. #[derive(Debug, Copy, Clone)] pub enum HintStyle { None, @@ -257,7 +257,7 @@ impl fmt::Display for HintStyle { } } -/// Lcd filter, used to reduce color fringing with subpixel rendering +/// Lcd filter, used to reduce color fringing with subpixel rendering. pub enum LcdFilter { None, Default, |