From 8dbc5b60cc4a88f68ee82607af3a3c454cd8f68b Mon Sep 17 00:00:00 2001 From: Laurenz Date: Sat, 3 Oct 2020 11:32:24 +0200 Subject: [PATCH] =?UTF-8?q?Update=20font=20docs=20=F0=9F=93=96?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/library/font.rs | 31 ++++++++++++++++++++++++++++--- 1 file changed, 28 insertions(+), 3 deletions(-) diff --git a/src/library/font.rs b/src/library/font.rs index 1ffc50a85..1d58c4cea 100644 --- a/src/library/font.rs +++ b/src/library/font.rs @@ -11,9 +11,34 @@ use crate::length::ScaleLength; /// - A font family fallback list (optional, identifiers or strings). /// /// # Keyword arguments -/// - `style`: `normal`, `italic` or `oblique`. -/// - `weight`: `100` - `900` or a name like `thin`. -/// - `width`: `1` - `9` or a name like `condensed`. +/// - `style` +/// - `normal` +/// - `italic` +/// - `oblique` +/// +/// - `weight` +/// - `thin` or `hairline` (`100`) +/// - `extralight` (`200`) +/// - `light` (`300`) +/// - `regular` (`400`) +/// - `medium` (`500`) +/// - `semibold` (`600`) +/// - `bold` (`700`) +/// - `extrabold` (`800`) +/// - `black` (`900`) +/// - any integer from the range `100` - `900` (inclusive) +/// +/// - `stretch` +/// - `ultra-condensed` +/// - `extra-condensed` +/// - `condensed` +/// - `semi-condensed` +/// - `normal` +/// - `semi-expanded` +/// - `expanded` +/// - `extra-expanded` +/// - `ultra-expanded` +/// /// - Any other keyword argument whose value is a dictionary of strings defines /// a fallback class, for example: /// ```typst