summaryrefslogtreecommitdiff
path: root/src/library/font.rs
diff options
context:
space:
mode:
authorLaurenz <laurmaedje@gmail.com>2020-10-03 11:32:24 +0200
committerLaurenz <laurmaedje@gmail.com>2020-10-03 11:32:24 +0200
commit8dbc5b60cc4a88f68ee82607af3a3c454cd8f68b (patch)
treeffd9bf1bf62d4d94060aec5e5a6c20fee6e050c0 /src/library/font.rs
parent75e6dbfbe6cbd3c3245c825627881a16bfbd6c5d (diff)
Update font docs 📖
Diffstat (limited to 'src/library/font.rs')
-rw-r--r--src/library/font.rs31
1 files changed, 28 insertions, 3 deletions
diff --git a/src/library/font.rs b/src/library/font.rs
index 1ffc50a8..1d58c4ce 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