1
1
mirror of https://github.com/rsms/inter.git synced 2024-12-02 07:46:55 +03:00
inter/README.md

152 lines
5.8 KiB
Markdown
Raw Normal View History

2019-02-03 01:29:56 +03:00
# Inter
2017-08-22 10:05:20 +03:00
2019-02-03 01:29:56 +03:00
Inter is a typeface specially designed for user interfaces
2018-01-16 21:02:35 +03:00
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.
2017-08-22 10:05:20 +03:00
2020-04-24 01:36:26 +03:00
[![Sample](docs/res/sample.png)](https://rsms.me/inter/samples/)
2017-08-22 10:05:20 +03:00
2019-10-23 06:18:22 +03:00
### [⬇︎ Download the latest release](https://github.com/rsms/inter/releases/latest)
2017-08-22 10:05:20 +03:00
After downloading the zip from above:
1. Double-click the downloaded zip file to unpack or open it.
2. Follow the instructions in "install-mac.txt" or "install-win.txt", depending
on what operating system you're using.
Font files are also available from the following third-party distributors:
- [`inter-ui` on npm](https://www.npmjs.com/package/inter-ui)
- [`font-inter` in Homebrew's Fonts cask](https://github.com/Homebrew/homebrew-cask-fonts)
- See [Repology](https://repology.org/project/fonts:inter/versions) for a list of Linux distributions that include the font in their repositories.
**Disclaimer:** Third-party packages may not always be up-to-date.
2017-08-22 10:05:20 +03:00
## Design
2019-02-03 01:29:56 +03:00
Inter is similar to Roboto, San Francisco, Akkurat, Asap, Lucida Grande and other "UI" and "Text" typefaces. Some trade-offs were made in order to make this typeface work really well at small sizes:
2017-08-22 10:05:20 +03:00
- Currently not suitable for very large sizes because of some small-scale glyph optimizations (like "pits" and "traps") that help rasterization at small sizes but stand out and interfere at large sizes.
2017-08-23 18:44:56 +03:00
- Rasterized at sizes below 12px, some stems—like the horizontal center of "E", "F", or vertical center of "m"—are drawn with two semi-opaque pixels instead of one solid. This is because we "prioritize" (optimize for) higher-density rasterizations. If we move these stems to an off-center position—so that they can be drawn sharply at e.g. 11px—text will be less legible at higher resolutions.
2017-08-22 10:05:20 +03:00
Current font styles:
2018-09-10 03:11:23 +03:00
| Name | Weight class
| -------------------- | ----------------
| Thin | 100
| Thin Italic | 100
| Extra Light | 200
| Extra Light Italic | 200
| Light | 300
| Light Italic | 300
2018-09-10 03:11:23 +03:00
| Regular | 400
| Italic | 400
| Medium | 500
| Medium Italic | 500
| Semi Bold | 600
| Semi Bold Italic | 600
2018-09-10 03:11:23 +03:00
| Bold | 700
| Bold Italic | 700
| Extra Bold | 800
| Extra Bold Italic | 800
| Black | 900
| Black Italic | 900
2019-02-03 01:29:56 +03:00
Inter also ships as a variable font.
2017-08-22 10:05:20 +03:00
### Font metrics
This font was originally designed to work at a specific size: 11px. Thus, the Units per [EM](https://en.wikipedia.org/wiki/Em_(typography)) (UPM) is defined in such a way that a power-of-two multiple of one EM unit ends up at an integer value compared to a pixel. Most fonts are designed with a UPM of either 1000 or 2048. Because of this we picked a value that is as high as possible but also as close as possible to one of those common values (since it's reasonable to assume that some layout engines and rasterizers are optimized for those value magnitudes.) We ended up picking a UPM of 2816 which equates to exactly 256 units per pixel when rasterized for size 11pt at 1x scale. This also means that when rasterized at power-of-two scales (like 2x and 4x) the number of EM units corresponding to a pixel is an integer (128 units for 2x, 64 for 4x, and so on.)
However, as the project progressed and the typeface was put into use, it quickly
2017-08-23 18:44:56 +03:00
became clear that for anything longer than a short word, it was actually hard to
2017-08-22 10:05:20 +03:00
read the almost monotonically-spaced letters.
2019-02-12 10:23:54 +03:00
A second major revision was created where the previously-strict rule of geometry being even multiples of 256 was relaxed and now the rule is "try to stick with 128x, if you can't, stick with 64x and if you can't do that either, never go below 16x." This means that Inter is now much more variable in pace than it used to be, making it work better at higher resolutions and work much better in longer text, but losing some contrast and sharpness at small sizes.
2017-08-22 10:05:20 +03:00
2020-04-24 01:36:26 +03:00
![Metrics](docs/res/metrics.png)
2017-08-22 10:05:20 +03:00
The glyphs are designed based on this "plan"; most stems and lines will be positioned at EM units that are even multiples of 128, and in a few cases they are at even multiples of 64 or as low as 16.
Metrics:
- UPM: 2816
- Descender: -640
- x-height: 1536
- Cap height: 2048
- Ascender: 2688
Translating between EM units and pixels:
- Rasterized at 11px: 1px = 256 units
- Rasterized at 22px: 1px = 128 units
- Rasterized at 44px: 1px = 64 units
2019-02-03 01:29:56 +03:00
There's a Figma workspace for glyphs, with configured metrics: ["Inter glyphs"](https://www.figma.com/file/RtScFU5NETY3j9E0yOmnW4gv/)
2017-08-22 10:05:20 +03:00
2020-10-06 23:32:13 +03:00
## Supporters
A wholehearted **Thank You** to everyone who supports the Inter project!
### Donors
- @adrianmg
- @artemc
- @bapun26
- @brianlovin
- @chadlittle
- @colinkeany
- @danrowden
- @davo
- @emuravjev
- @gbougakov
- @jakejarvis
- @lukesbeard
- @lustfullyCake
- @mamuso
- @mbullington
- @muuvmuuv
- @NetOperatorWibby
- @pedromvpg
- @pmarsceill
- @romashamin
- @ruslangirichev
- @saishmenon
- @satyakresna
- @sorentwo
- @StandardResumeSponsors
- @stpnkcrk
- @taravancil
- @usmanity
- @zethussuen
- Stefan Kempf
_(Private donors excluded)_
### Contributors
- @thundernixon
- @KatjaSchimmel
- @kdrag0n
- @gabrielizaias
- @fractaledmind
- @davelab6
- @Veratyr
- @Calinou
2019-09-07 22:56:11 +03:00
## Development
2017-08-22 10:05:20 +03:00
2019-09-07 22:56:11 +03:00
For instructions on how to work with the source files and how to
[compile & build font files](CONTRIBUTING.md#compiling-font-files),
refer to [CONTRIBUTING.md](CONTRIBUTING.md).
Inter is licensed under the [SIL Open Font License](LICENSE.txt)