diff --git a/.gitignore b/.gitignore index b3a43f28a..57e02b3ec 100644 --- a/.gitignore +++ b/.gitignore @@ -17,6 +17,7 @@ nohup.out build /_* /docs/lab/fonts +/docs/_site src/FontInspector.html src/svg diff --git a/Makefile b/Makefile index 66eac073c..82a12ecbe 100644 --- a/Makefile +++ b/Makefile @@ -159,13 +159,13 @@ install_otf: all_otf install: install_otf -geninfo: docs/info.json docs/lab/glyphinfo.json docs/glyphs/metrics.json +geninfo: docs/_data/fontinfo.json docs/lab/glyphinfo.json docs/glyphs/metrics.json src/glyphorder.txt: src/Inter-UI-Regular.ufo/lib.plist src/Inter-UI-Black.ufo/lib.plist src/diacritics.txt misc/gen-glyphorder.py misc/gen-glyphorder.py src/Inter-UI-*.ufo > src/glyphorder.txt -docs/info.json: misc/fontinfo.py docs/font-files/Inter-UI-*.otf - misc/fontinfo.py -pretty docs/font-files/Inter-UI-Regular.otf > docs/info.json +docs/_data/fontinfo.json: misc/fontinfo.py docs/font-files/Inter-UI-*.otf + misc/fontinfo.py -pretty docs/font-files/Inter-UI-Regular.otf > docs/_data/fontinfo.json docs/lab/glyphinfo.json: _local/UnicodeData.txt src/glyphorder.txt src/fontbuild.cfg misc/gen-glyphinfo.py misc/gen-glyphinfo.py -ucd _local/UnicodeData.txt \ diff --git a/docs/_config.yml b/docs/_config.yml new file mode 100644 index 000000000..f00875d90 --- /dev/null +++ b/docs/_config.yml @@ -0,0 +1,10 @@ +port: 3000 +lsi: false +permalink: /:title +markdown: kramdown +# Since GH pages override this to "true", we test this value to see if we are running locally +safe: false +kramdown: + input: GFM + auto_ids: true + hard_wrap: false diff --git a/docs/info.json b/docs/_data/fontinfo.json similarity index 98% rename from docs/info.json rename to docs/_data/fontinfo.json index 97fde5b79..6d4e8c038 100644 --- a/docs/info.json +++ b/docs/_data/fontinfo.json @@ -1,5 +1,5 @@ -{ - "Inter UI Regular:2018:86daccf": { +[ + { "head": { "checkSumAdjustment": 3690365233, "created": 3563720514, @@ -117,6 +117,7 @@ "minMemType42": 0, "underlinePosition": -422, "underlineThickness": 170 - } + }, + "version": "2.5" } -} \ No newline at end of file +] diff --git a/docs/_includes/autoreload-in-debug.html b/docs/_includes/autoreload-in-debug.html new file mode 100644 index 000000000..13840defa --- /dev/null +++ b/docs/_includes/autoreload-in-debug.html @@ -0,0 +1,46 @@ +{% if site.safe == false %} + + +{% endif %} \ No newline at end of file diff --git a/docs/_layouts/default.html b/docs/_layouts/default.html new file mode 100644 index 000000000..d694ce3bd --- /dev/null +++ b/docs/_layouts/default.html @@ -0,0 +1,88 @@ +{% +assign build_version = site.time | date: "%Y%m%d%H%M%S" %}{% +assign description = "Inter UI is a new typeface optimized for computer user interfaces" %}{% + +capture url_root + %}{% if site.safe == false %}/{% else %}/inter/{% endif +%}{% +endcapture %}{% + +capture release_version + %}{{ site.data.fontinfo[0].version }}{% +endcapture %}{% + +capture download_url + %}https://github.com/rsms/inter/releases/download/v{{ release_version }}/Inter-UI-{{ release_version }}.zip{% +endcapture %}{% + +for file in site.static_files %}{% + assign _path = file.path | remove_first: "/inter" %}{% + if _path == "/res/base.css" %}{% + assign base_css_v = file.modified_time | date: "%Y%m%d%H%M%S" %}{% + elsif _path == "/res/base.js" %}{% + assign base_js_v = file.modified_time | date: "%Y%m%d%H%M%S" %}{% + endif %}{% +endfor + +%} + +
+ ++ There's of course no absolute right or wrong when it comes to expressing + yourself with typography, but Inter UI Dynamic Metrics provides guidelines + for good typography. + You simply provide the optical font size, and the tracking and leading + (letter spacing and line height) will be calculated using the following + formula: +
+
+
+ View this on a larger screen to enable interactive control. +
+- This shows the complete set of glyphs in Inter UI Regular. - You can zoom in and out by pressing - ⌘+ and - ⌘− on your keyboard. - Click on a glyph to see more details about it. -
-+ This shows the complete set of glyphs in Inter UI Regular. + You can zoom in and out by pressing + ⌘+ and + ⌘− on your keyboard. + Click on a glyph to see more details about it. +
++ Inter UI is a typeface specially designed for user interfaces + with focus on high legibility of small-to-medium sized text on computer screens. +
++ The family features a tall x-height to aid in readability of mixed-case and + lower-case text. Several OpenType features are provided as well, + like contextual alternates that adjusts punctuation depending on the shape of + surrounding glyphs, slashed zero for when you need to disambiguate "0" from "o", + tabular numbers, etc. +
+- Inter UI is a typeface specially designed for user interfaces - with focus on high legibility of small-to-medium sized text on computer screens. -
-- The family features a tall x-height to aid in readability of mixed-case and - lower-case text. Several OpenType features are provided as well, - like contextual alternates that adjusts punctuation depending on the shape of - surrounding glyphs, slashed zero for when you need to disambiguate "0" from "o", - tabular numbers, etc. -
-
+ More samples ->
+
+
- More samples ->
-
-
+ Using the font is as easy as + download & installing locally on your computer. +
++ You're free to bundle copies of Inter UI with your software, even if it's + commercial and you charge money for your software. Inter UI can also be used + on the web by either hosting the font files yourself or by including this CSS: +
+@import url('https://rsms.me/inter/inter-ui.css');
+ Use the following CSS rules to specify the Inter UI family:
+font-family: 'Inter UI', sans-serif;
- - Using the font is as easy as - download & installing locally on your computer. -
-- You're free to bundle copies of Inter UI with your software, even if it's - commercial and you charge money for your software. Inter UI can also be used - on the web by either hosting the font files yourself or by including this CSS: -
-@import url('https://rsms.me/inter/inter-ui.css');
- Use the following CSS rules to specify the Inter UI family:
-font-family: 'Inter UI', sans-serif;
+ -
+
+ There's of course no absolute right or wrong when it comes to expressing yourself with typography, but Inter UI Dynamic Metrics provides guidelines for good typography. You simply provide the optical font size, and the tracking and leading is calculated for you to produce the best results. + Learn about Dynamic Metrics —> +
-- Inter UI is a free and open source font family. You are free to use this font in almost any way imaginable. - Refer to the SIL Open Font License 1.1 for exact details on what the conditions and restrictions are. -
+-
+ Inter UI is a free and open source font family. You are free to use this font in almost any way imaginable. + Refer to the SIL Open Font License 1.1 for exact details on what the conditions and restrictions are. +
-tnum)
+ There are currently four weights +
+calt)
zero)
tnum)
frac)
zero)
ss01)
frac)
case)
ss01)
case)
- Also includes some
- Localized Forms (locl
),
- Numerators (numr
) and
- Denominators (dnom
).
-
+
+ Also includes some
+ Localized Forms (locl
),
+ Numerators (numr
) and
+ Denominators (dnom
).
+
- +
- Inter UI started out in late 2016 as an experiment to build a perfectly - pixel-fitting font at a specific small size (11px.) The idea was that - by crafting a font in a particular way, with a particular coordinate system - (Units Per EM), and for a particular target rasterization size (11), it would - be possible to get the best of both sharpness and readability. -
-- However after a few months of using an early version of Inter UI, it dawned - on everyone exposed to the test that this approach had some serious real-world - problems. Most notably that it was really hard to read longer text. Because of - the pixel-aligning nature of that approach, the font took an almost - mono-spaced appearance, - making it really easy to read numbers, punctuation and very short - words, but eye-straining to read anything longer. -
-- The project was rebooted with a different approach, sticking with the - specific UPM, but crafting glyphs and kerning in a way that made for - more variation in the rhythm and smoother vertical and horizontal stems. - As Inter UI was being developed, it was tested on an internal version of - Figma—where the author of Inter UI works as a designer—and slowly improved upon based on experience and feedback. -
+ -+
+ Inter UI started out in late 2016 as an experiment to build a perfectly + pixel-fitting font at a specific small size (11px.) The idea was that + by crafting a font in a particular way, with a particular coordinate system + (Units Per EM), and for a particular target rasterization size (11), it would + be possible to get the best of both sharpness and readability. +
++ However after a few months of using an early version of Inter UI, it dawned + on everyone exposed to the test that this approach had some serious real-world + problems. Most notably that it was really hard to read longer text. Because of + the pixel-aligning nature of that approach, the font took an almost + mono-spaced appearance, + making it really easy to read numbers, punctuation and very short + words, but eye-straining to read anything longer. +
++ The project was rebooted with a different approach, sticking with the + specific UPM, but crafting glyphs and kerning in a way that made for + more variation in the rhythm and smoother vertical and horizontal stems. + As Inter UI was being developed, it was tested on an internal version of + Figma—where the author of Inter UI works as a designer—and slowly improved upon based on experience and feedback. +
-- Inter UI works great for English-language text, and pretty well for other - Latin and Cyrillic languages. There's still a lot of work to be done, and - contributions are warmly welcomed. The playground contains a lot of samples, including some common non English-language words in the playground. -
+-
- Please refer to the glyph repertoire - for an overview of currently-available glyphs and their quality. -
++ Inter UI works great for English-language text, and pretty well for other + Latin and Cyrillic languages. There's still a lot of work to be done, and + contributions are warmly welcomed. The playground contains a lot of samples, including some common non English-language words in the playground. +
-+
+ Please refer to the glyph repertoire + for an overview of currently-available glyphs and their quality. +
--
font-feature-settings. - In Figma you can access features via the - Advanced Typography panel. - In Illustrator, Photoshop and friends, you can access features via the - Characters and OpenType panels. - Sketch doesn't provide a UI for configuring font features, but there's - a workaround using macOS's native font UI. -
font-feature-settings. + In Figma you can access features via the + Advanced Typography panel. + In Illustrator, Photoshop and friends, you can access features via the + Characters and OpenType panels. + Sketch doesn't provide a UI for configuring font features, but there's + a workaround using macOS's native font UI. +
https://rsms.me/inter/inter-ui.cssand associated font - files very reliable and fast throughout the world. -
https://rsms.me/inter/inter-ui.cssand associated font + files very reliable and fast throughout the world. +