From 65ce56b9527ce698214f24db779b7a8a2a4783a1 Mon Sep 17 00:00:00 2001
From: Rasmus Andersson
Date: Wed, 6 Feb 2019 11:49:18 -0800
Subject: [PATCH] website
---
docs/_data/feature_samples.yml | 126 +++++++++++
docs/_includes/ctxedit.html | 7 +-
docs/_includes/preload-font-files.html | 7 +-
docs/_layouts/default.html | 11 +-
docs/dynmetrics/icons/letter-spacing.svg | 1 +
docs/dynmetrics/icons/line-height.svg | 1 +
docs/dynmetrics/icons/style.svg | 1 +
docs/dynmetrics/index.html | 136 +++++++----
docs/glyphs/index.html | 7 +-
docs/index.css | 15 +-
docs/index.html | 274 ++++++-----------------
docs/res/base.css | 227 +++++++++++++++----
docs/res/base.js | 2 +-
docs/samples/index.html | 7 +-
14 files changed, 509 insertions(+), 313 deletions(-)
create mode 100644 docs/_data/feature_samples.yml
create mode 100755 docs/dynmetrics/icons/letter-spacing.svg
create mode 100755 docs/dynmetrics/icons/line-height.svg
create mode 100755 docs/dynmetrics/icons/style.svg
diff --git a/docs/_data/feature_samples.yml b/docs/_data/feature_samples.yml
new file mode 100644
index 000000000..b92da1030
--- /dev/null
+++ b/docs/_data/feature_samples.yml
@@ -0,0 +1,126 @@
+- title: Contextual alternates
+ tag: calt
+ description:
+ This feature is enabled by default and causes certain characters to adjust
+ themselves or be replaced depending on the surrounding context.
+ footer:
+ There are many more contextual alternates.
+ samples:
+ - "12›:‹34, FE›—‹X"
+ - "4›.‹2"
+ - "›(‹SEMI›)‹PERMANENT"
+ - "SFO ›->‹ STO"
+ - "IIA ›—>‹ OGG"
+ - "ARN ›<-->‹ OGG"
+ - "M›@‹N m@n"
+ - "Smile ›:-)‹"
+
+- title: Tabular numbers
+ tag: tnum
+ description:
+ Fixed-width numbers are useful for tabular data, where comparing
+ columns across rows is desired.
+ samples:
+ - "1234567890"
+ - "1131711› ‹"
+ - "0040900› ‹"
+ - "11:31,711› ‹"
+ - "00:40.900› ‹"
+ - "0.45, 0.91, +0.08› ‹"
+ - "1.00, 9.44, −0.13› ‹"
+ - "0.00, 1.13, ~7.12› ‹"
+
+- title: Numerators
+ tag: numr
+ samples:
+ - "Hello ›0123‹"
+
+- title: Denominators
+ tag: dnom
+ samples:
+ - "Hello ›0123‹"
+
+- title: Superscript
+ tag: sups
+ samples:
+ - "X›0123 (+)-[=]‹"
+ - "X›abcdefghijklmnopqrstuvwxyz‹"
+
+- title: Subscript
+ tag: subs
+ samples:
+ - "H›0123 (+)-[=]‹"
+ - "X›abcdefghijklmnopqrstuvwxyz‹"
+
+- title: Fractions
+ tag: frac
+ description:
+ This feature is contextually sensitive and will convert "words" of
+ numbers separated by forward slash into proper fractions.
+ This feature is dynamic and allows for any fractions.
+ Note that the digits used for fractions are custom-made for their
+ small size, and are even made separately from the slightly larger
+ Superscript and Subscript numbers.
+ samples:
+ - "›1/3‹ ›3/4‹ ›1/5‹ ›1337/5910‹"
+
+- title: Case alternates
+ tag: case
+ description:
+ Switches out some glyphs to work better with capital letters and numbers.
+ samples:
+ - "›(‹Hello›)‹ ›[‹World›]‹ ›{‹9000›}‹"
+ - "SCHOOL ›@‹ RUN"
+ - "3 ›+‹ 9 ›=‹ 12 ›*‹ 1"
+ - "›*+÷±×=≠≈•~<>≤≥‹"
+ - "›→‹ ›←‹ ›⟶‹ ›⟵‹ ›−‹ ›-‹ ›–‹ ›—‹ ›:‹"
+
+- title: "Stylistic set 1: Alternate digits"
+ tag: ss01
+ description:
+ An alternate style of digits.
+ Note that individual digit styles can be cherry-picked using the cvXX
+ features.
+ samples:
+ - "›1‹2›34‹5›6‹78›9‹0"
+ - "›13469‹"
+
+- title: "Stylistic set 2: Disambiguation"
+ tag: ss02
+ description:
+ Alternate glyph set that increases visual difference between
+ similar-looking characters.
+ samples:
+ - "WP›0‹ACO9XS›I‹1›0‹12O9"
+ - "›Ill‹ega›l‹"
+ - "βeta ›ß‹eta Busine›ß‹"
+
+- title: Discretionary ligatures
+ tag: dlig
+ description:
+ Alternate glyph set that increases visual difference between
+ similar-looking characters.
+ samples:
+ - "›¡¿‹What›?!‹"
+ - "›¿¡‹What›!?‹"
+
+- title: Slashed zero
+ tag: zero
+ samples:
+ - "O›0‹123"
+
+- title: Character variants
+ tag: cvXX
+ description: "Allows cherry-picking alternate characters."
+ samples:
+ - {feat: cv01, alt: "Alternate one", sample: "1"}
+ - {feat: cv02, alt: "Open four", sample: "4"}
+ - {feat: cv03, alt: "Open six", sample: "6"}
+ - {feat: cv04, alt: "Open nine", sample: "9"}
+ - {feat: cv05, alt: "Lower case L with tail", sample: "l ł ƚ ɫ ɬ ŀ ĺ ļ ľ ḷ ḹ ḻ ḽ"}
+ - {feat: cv06, alt: "Lower case R with straight tail", sample: "r ɽ ɍ ɼ ŕ ŗ ř ȑ ȓ ṙ ṛ ṝ ṟ"}
+ - {feat: cv07, alt: "Alternate German double-s", sample: "ß"}
+ - {feat: cv08, alt: "Upper-case i with serif", sample: "I Ï Ḯ Ɨ Ḭ Ì Í Î Ĩ Ī Ĭ Į İ Ǐ Ȉ Ȋ Ỉ Ị Ι Ί Ϊ Ἰ Ἱ Ἲ"}
+ - {feat: cv09, alt: "Flat top three", sample: "3"}
+ - {feat: cv10, alt: "Capital G with spur", sample: "G Ǥ Ɠ Ĝ Ğ Ġ Ģ Ǧ Ǵ Ḡ"}
+
diff --git a/docs/_includes/ctxedit.html b/docs/_includes/ctxedit.html
index 64dea24e6..791a0739c 100644
--- a/docs/_includes/ctxedit.html
+++ b/docs/_includes/ctxedit.html
@@ -1,9 +1,8 @@
{%
-capture url_root
- %}{% if site.safe == false %}/{% else %}/inter/{% endif
-%}{%
-endcapture %}{%
+if site.safe == false %}{%
+assign url_root = "/" %}{% else %}{%
+assign url_root = "/inter/" %}{% endif %}{%
for file in site.static_files %}{%
assign _path = file.path | remove_first: "/inter" %}{%
diff --git a/docs/_includes/preload-font-files.html b/docs/_includes/preload-font-files.html
index f744690f6..f6bf15651 100644
--- a/docs/_includes/preload-font-files.html
+++ b/docs/_includes/preload-font-files.html
@@ -1,9 +1,8 @@
{%
-capture url_root
- %}{% if site.safe == false %}/{% else %}/inter/{% endif
-%}{%
-endcapture %}{%
+if site.safe == false %}{%
+assign url_root = "/" %}{% else %}{%
+assign url_root = "/inter/" %}{% endif %}{%
for file in site.static_files %}{%
assign _path = file.path | remove_first: "/inter" %}{%
diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html
index abcb16aa5..c1300b70e 100644
--- a/docs/_layouts/default.html
+++ b/docs/_layouts/default.html
@@ -2,14 +2,11 @@
assign build_version = site.time | date: "%Y%m%d%H%M%S" %}{%
assign description = "Inter is a typeface optimized for computer-user interfaces" %}{%
-capture url_root
- %}{% if site.safe == false %}/{% else %}/inter/{% endif
-%}{%
-endcapture %}{%
+if site.safe == false %}{%
+assign url_root = "/" %}{% else %}{%
+assign url_root = "/inter/" %}{% endif %}{%
-capture release_version
- %}{{ site.data.fontinfo[0].version }}{%
-endcapture %}{%
+assign release_version = site.data.fontinfo[0].version %}{%
capture download_url
%}https://github.com/rsms/inter/releases/download/v{{ release_version }}/Inter-{{ release_version }}.zip{%
diff --git a/docs/dynmetrics/icons/letter-spacing.svg b/docs/dynmetrics/icons/letter-spacing.svg
new file mode 100755
index 000000000..267c0ac62
--- /dev/null
+++ b/docs/dynmetrics/icons/letter-spacing.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/docs/dynmetrics/icons/line-height.svg b/docs/dynmetrics/icons/line-height.svg
new file mode 100755
index 000000000..04c1e66a9
--- /dev/null
+++ b/docs/dynmetrics/icons/line-height.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/docs/dynmetrics/icons/style.svg b/docs/dynmetrics/icons/style.svg
new file mode 100755
index 000000000..0dd668a3d
--- /dev/null
+++ b/docs/dynmetrics/icons/style.svg
@@ -0,0 +1 @@
+
\ No newline at end of file
diff --git a/docs/dynmetrics/index.html b/docs/dynmetrics/index.html
index e43be7c9c..d6cbbc49a 100644
--- a/docs/dynmetrics/index.html
+++ b/docs/dynmetrics/index.html
@@ -4,10 +4,9 @@ title: Dynamic Metrics
---
{%
-capture url_root
- %}{% if site.safe == false %}/{% else %}/inter/{% endif
-%}{%
-endcapture %}{%
+if site.safe == false %}{%
+assign url_root = "/" %}{% else %}{%
+assign url_root = "/inter/" %}{% endif %}{%
for file in site.static_files %}{%
assign _path = file.path | remove_first: "/inter" %}{%
@@ -41,13 +40,13 @@ endfor
a + b ×
e (c × z )
-
+
- a = -0.02
- b = 0.205
- c = -0.175
+ a = -0.038
+ b = 0.161
+ c = -0.12
z = font size
@@ -76,14 +75,9 @@ endfor