diff options
| author | Laurenz <laurmaedje@gmail.com> | 2021-03-17 23:14:19 +0100 |
|---|---|---|
| committer | Laurenz <laurmaedje@gmail.com> | 2021-03-17 23:14:19 +0100 |
| commit | 49bb7f9a2bd2404fa6e14208041ef6a94068c1ec (patch) | |
| tree | e915ef96a1429def1135a8e17a9cfd875c37b728 /src/library/mod.rs | |
| parent | 8cdfc7faafc1d8df60d44e5db9d1c9e26345675b (diff) | |
Switch from name to ratio for font stretch parameter 📐
Diffstat (limited to 'src/library/mod.rs')
| -rw-r--r-- | src/library/mod.rs | 11 |
1 files changed, 1 insertions, 10 deletions
diff --git a/src/library/mod.rs b/src/library/mod.rs index 7e968994..09fda20f 100644 --- a/src/library/mod.rs +++ b/src/library/mod.rs @@ -23,7 +23,7 @@ pub use spacing::*; use std::fmt::{self, Display, Formatter}; -use fontdock::{FontStretch, FontStyle, FontWeight}; +use fontdock::{FontStyle, FontWeight}; use crate::eval::{Scope, ValueAny, ValueFunc}; use crate::exec::Softness; @@ -81,15 +81,6 @@ pub fn new() -> Scope { set!(any: "bold", FontWeight::BOLD); set!(any: "extrabold", FontWeight::EXTRABOLD); set!(any: "black", FontWeight::BLACK); - set!(any: "ultra-condensed", FontStretch::UltraCondensed); - set!(any: "extra-condensed", FontStretch::ExtraCondensed); - set!(any: "condensed", FontStretch::Condensed); - set!(any: "semi-condensed", FontStretch::SemiCondensed); - set!(any: "normal", FontStretch::Normal); - set!(any: "semi-expanded", FontStretch::SemiExpanded); - set!(any: "expanded", FontStretch::Expanded); - set!(any: "extra-expanded", FontStretch::ExtraExpanded); - set!(any: "ultra-expanded", FontStretch::UltraExpanded); std } |
