Debian Codegraph @

docs/index.html

raw symbols SCIP
1 ---
2 layout: default
3 ---
4 {% include defs.html %}{%
5
6 assign release_version = site.data.fontinfo[0].version %}{%
7
8 for file in site.static_files %}{%
9 assign _path = file.path | remove_first: "/inter" %}{%
10 if _path == "/index.css" %}{%
11 assign index_css_v = file.modified_time | date: "%Y%m%d%H%M%S" %}{%
12 elsif _path == "/index-var.css" %}{%
13 assign index_var_css_v = file.modified_time | date: "%Y%m%d%H%M%S" %}{%
14 elsif _path == "/index-var.js" %}{%
15 assign index_var_js_v = file.modified_time | date: "%Y%m%d%H%M%S" %}{%
16 endif %}{%
17 endfor %}{%
18
19 assign lang_count = 0 %}{%
20 for c in site.data.languages %}{%
21 for language in c.languages %}{%
22 assign lang_count = lang_count | plus:1 %}{%
23 endfor %}{%
24 endfor -%}
25 <style type="text/css">
26
27 body { overflow-x: hidden }
28
29 h1.title {
30 font-size: 6rem;
31 letter-spacing: -0.03em;
32 margin-bottom: 0.4em;
33 margin-top: 4rem;
34 font-size: calc(100vw / 8);
35 line-height: 1.0;
36 }
37
38 .row.examples .spacer { height: 3rem; }
39 .row.section1-roman {}
40 @media (prefers-color-scheme: light) {
41 /*.row.section1-italic {
42 background: var(--foreground-color);
43 color: var(--background-color);
44 }*/
45 }
46 @media (prefers-color-scheme: dark) {
47 /*.row.section1-italic {
48 background: #555;
49 }*/
50 }
51
52 .row.examples .label { font-size: var(--font-size); opacity: 0.3; }
53 .row.examples a.label:hover { opacity: 1; }
54 .row.examples .label.r { text-align: right }
55 @media only screen and (max-width: 719px) { /* window width <= 719 */
56 .row.examples .example-note { margin: 1em 0 }
57 }
58 .example2 {
59 font-size: 10vw;
60 line-height: initial;
61 margin-left: calc(1em / -18);
62 letter-spacing: -0.02em;
63 }
64 .example2.i { font-style:italic; }
65 .example2.single-line {
66 line-height: 1.0;
67 white-space: nowrap;
68 }
69 .example2.multi-line {
70 font-size: 6vw;
71 padding-top: 0.5rem;
72 padding-bottom: 2rem;
73 line-height: 1.1;
74 }
75 .example2.features {
76 line-height: 1.2;
77 white-space: nowrap;
78 font-size: 16vw;
79 }
80
81 .example-a-z {
82 font-size: 9.5vw;
83 white-space: nowrap;
84 font-weight: 450;
85 line-height: 1.0;
86 display: flex;
87 flex-direction: column; /* ☰ */
88 gap: 1rem; /* label to text */
89 padding: 0 0;
90 margin: 0;
91 width: 100%;
92 }
93
94 .row.features-section1 { padding-bottom:1.5rem; }
95 .row.features-section1 hr:last-child { display: none; }
96 .row.features-section2 { padding-top:3vw; }
97
98 .row.features-section1 {
99 /* light pink:
100 --background-color: #ffb6c1;
101 --em-color: #815159;
102 */
103 --background-color: var(--warm-yellow);
104 --foreground-color: #000011;
105 --em-color: color(display-p3 0.5 0.4 0);
106 --unit-background-color: rgba(0, 0, 0, 0.08);
107 color: var(--foreground-color);
108 background: var(--background-color);
109 }
110 @supports not (color: color(display-p3 1 1 1)) {
111 .row.features-section1 {
112 --em-color: #a07400;
113 }
114 }
115 .feat-example em { color: var(--em-color); }
116
117 .feat-name p { margin-bottom:0 }
118 .feat-example {
119 font-size: 2.5vw;
120 }
121 .feat-example em {
122 font-style: normal;
123 }
124 .feat-table hr.thin {
125 height: 1px;
126 opacity: 0.3;
127 }
128
129
130
131 input[type="checkbox"] {
132 --height: calc(1rem * var(--line-height));
133 --checkbox-size: 1rem;
134 --checkbox-handle-size: calc(var(--checkbox-size) - 8px);
135 --checkbox-border: 2px;
136 --checkbox-bg: black;
137 --checkbox-fg: black;
138 --checkbox-on-bg: black;
139 --checkbox-on-fg: var(--background-color);
140 --focus-color: blue;
141
142 flex: 0 0 auto;
143 margin: calc((var(--height) - var(--checkbox-size)) / 2) 0;
144 appearance: none; -webkit-appearance: none; -moz-appearance: none; -ms-appearance: none;
145 user-select: none; -moz-user-select: none; -webkit-user-select:none;
146 background: none;
147 border: none;
148
149 background-color: transparent;
150
151 border: var(--checkbox-border) solid var(--checkbox-bg);
152 box-sizing: border-box;
153
154 width: calc(var(--checkbox-size) * 2);
155 height: var(--checkbox-size);
156 border-radius: var(--checkbox-size);
157 position:relative;
158 transition: all 168ms ease-out;
159 }
160 input[type="checkbox"]:focus {
161 outline: none;
162 /*box-shadow: 0 0 0 2px var(--background-color), 0 0 0 4px var(--focus-color);*/
163 }
164 input[type="checkbox"]:active {
165 /* trick to avoid flickering outline */
166 box-shadow: none;
167 }
168 input[type="checkbox"]::after {
169 --padding: calc(
170 ( (var(--checkbox-size) - var(--checkbox-handle-size)) / 2 )
171 - var(--checkbox-border)
172 );
173 content: "";
174 background: var(--checkbox-fg);
175 display:block;
176 position:absolute;
177 left: var(--padding);
178 top: var(--padding);
179 width:var(--checkbox-handle-size);
180 height:var(--checkbox-handle-size);
181 border-radius:var(--checkbox-handle-size);
182 transform: translate(0, 0);
183 transition: all 90ms ease-out; /*cubic-bezier(0.09, 0.49, 0.71, 0.98);*/
184 }
185 input[type="checkbox"]:checked {
186 background-color: var(--checkbox-on-bg);
187 }
188 input[type="checkbox"]:checked::after {
189 background-color: var(--checkbox-on-fg);
190 transform: translate(calc(var(--checkbox-size)), 0);
191 /*transition: all 168ms cubic-bezier(0.17, 0.65, 0.48, 1);*/
192 }
193
194
195
196
197 input[type="range"] {
198 --height: calc(1rem * var(--line-height));
199
200 --input-range-color-bg: black;
201 --input-range-color-fg: black;
202 --input-range-color-focus: rgb(0, 130, 255);
203 --input-range-knob-size: 0.75rem;
204 --input-range-track-size: 2px;
205 --input-range-height: var(--height);
206
207 --surface1-color-bg: red;
208
209 -webkit-appearance: none;
210 /*width: 100%;*/
211 background: transparent;
212 cursor: default;
213 margin:0;
214 padding:0 0.5em;
215 box-sizing: border-box;
216 /*margin-left: calc((var(--input-range-height) - var(--input-range-track-size)) / -2);*/
217 }
218 input[type="range"]:focus {
219 outline: none;
220 }
221
222 input[type="range"]::-webkit-slider-thumb {
223 -webkit-appearance: none;
224 border: 0;
225 height: var(--input-range-knob-size);
226 width: var(--input-range-knob-size);
227 border-radius: var(--input-range-knob-size);
228 background: var(--input-range-color-fg);
229 box-shadow: 0 0 0 2px var(--background-color);
230 margin-top: calc((var(--input-range-knob-size) - var(--input-range-track-size)) / -2);
231 }
232 input[type="range"]::-moz-range-thumb {
233 border: 0;
234 height: var(--input-range-knob-size);
235 width: var(--input-range-knob-size);
236 border-radius: var(--input-range-knob-size);
237 background: var(--input-range-color-fg);
238 box-shadow: 0 0 0 2px var(--background-color);
239 margin-top: calc((var(--input-range-knob-size) - var(--input-range-track-size)) / -2);
240 }
241
242
243 input[type="range"]::-webkit-slider-runnable-track {
244 /* Note: hit testing is done on this element so we make it large enough
245 to easily hit with --input-range-height and a border that matches the
246 background color. This is not portable, unfortunately. */
247 box-sizing: border-box;
248 width: 100%;
249 height: var(--input-range-height);
250 background: var(--input-range-color-bg);
251 --border-w: calc((var(--input-range-height) - var(--input-range-track-size)) / 2);
252 border-top: var(--border-w) solid var(--background-color);
253 border-bottom: var(--border-w) solid var(--background-color);
254 }
255 input[type="range"]::-moz-range-track {
256 box-sizing: border-box;
257 width: 100%;
258 height: var(--input-range-height);
259 background: var(--input-range-color-bg);
260 --border-w: calc((var(--input-range-height) - var(--input-range-track-size)) / 2);
261 border-top: var(--border-w) solid var(--background-color);
262 border-bottom: var(--border-w) solid var(--background-color);
263 }
264
265 /*input[type="range"]:focus::-webkit-slider-thumb { background-color: var(--blue) }
266 input[type="range"]:focus::-moz-range-thumb { background-color: var(--blue) }*/
267
268 input[type="range"]:focus::-webkit-slider-runnable-track {
269 box-shadow: 0 0 0 2px var(--focus-color);
270 }
271 input[type="range"]:focus::-moz-range-track {
272 box-shadow: 0 0 0 2px var(--focus-color);
273 }
274
275
276
277
278 .switch-button {
279 --height: calc(1rem * var(--line-height));
280 display: grid;
281 grid-template-columns: auto 1fr;
282 align-items: center;
283 user-select: none;
284 line-height: var(--height);
285 height: var(--height);
286 }
287 .switch-button > input[type="checkbox"] {
288 margin-right: 0.4rem;
289 }
290
291
292
293 .row.glyphs {
294 /*--background-color: var(--medium-green);*/
295 --background-color: color(display-p3 0.28 0.89 1);
296 --background-color-transparent: color(display-p3 0.28 0.89 1 / 0);
297 --grid-color: color(display-p3 0 0.65 0.8);
298
299 --background-color: var(--medium-green);
300 --grid-color: #000;
301
302 --foreground-color: black;
303 --font-weight: 400;
304
305 color: var(--foreground-color);
306 background: var(--background-color);
307 flex-direction: column;
308 padding: 2rem 0 0 0;
309 box-sizing: border-box;
310 scroll-padding-top: 0;
311 }
312 .row.glyphs h2 {
313 font-size: 8rem;
314 margin-left: calc(8rem / -19);
315 line-height: 1.0;
316 }
317 .row.glyphs h2 > a {
318 color: white;
319 }
320 .row.glyphs > *:first-child {
321 padding: 0 var(--row-padding);
322 padding-bottom: 1rem;
323 }
324
325 .glyph-grid {
326 --line-width: 1px;
327 --cell-size: 4rem;
328 display: grid;
329 grid-template-columns: repeat(2, minmax(0,1fr));
330 position: relative;
331 max-width: 100vw;
332 box-sizing: border-box;
333 gap: var(--line-width);
334 flex: 1 0 100%;
335 }
336
337 .glyph-grid .popup-menu {
338 --height: calc(1rem * var(--line-height));
339 position: relative;
340 width: 100%;
341 height: var(--height);
342 overflow: hidden;
343 /*grid-column-start: span 2;*/
344 display: grid;
345 grid-template-columns: auto 1fr;
346 }
347 .glyph-grid .popup-menu .label {
348 display: block;
349 pointer-events: none;
350 white-space: nowrap;
351 overflow: hidden;
352 text-overflow: ellipsis;
353 }
354 .glyph-grid .popup-menu .icon {
355 display: block;
356 pointer-events: none;
357 background-image: url(res/icons/popup-black.svg);
358 background-repeat: no-repeat;
359 background-position: center center;
360 background-size: 100%;
361 width: calc(var(--cell-size) / 3);
362 height: var(--height);
363 }
364 .glyph-grid .popup-menu .label,
365 .glyph-grid .popup-menu select {
366 padding: 0;
367 line-height: var(--height);
368 height: var(--height);
369 box-sizing: border-box;
370 outline: none;
371 }
372 .glyph-grid .popup-menu select {
373 position: absolute;
374 top:0; right:0; left:0;
375 font: inherit;
376 line-height: inherit;
377 -webkit-appearance: none;
378 border: none;
379 background: none;
380 color: transparent;
381 /*color: rgba(255,0,0,0.8);*/
382 }
383 .glyph-grid .popup-menu select option {
384 font-family: var(--font-family), sans-serif;
385 }
386
387 .glyph-grid .inspector {
388 position: sticky;
389 display: grid;
390 grid-template-rows: auto 1fr;
391 top: var(--header-height);
392 left: 0;
393 height: 100%;
394 max-height: calc(100vh - var(--header-height));
395 box-shadow: 0 0 0 var(--line-width) var(--grid-color);
396 }
397 .glyph-grid .toolbar {
398 height: var(--cell-size);
399 padding: 0 0 0 1rem;
400 border-bottom: var(--line-width) solid var(--grid-color);
401 gap: 2rem;
402 display: flex;
403 align-items: center;
404 overflow: hidden;
405 white-space: nowrap;
406 }
407 .glyph-grid .toolbar .popup-menu {
408 /*align-self: start;
409 margin-top: 4px;*/
410 }
411 .glyph-grid .toolbar .slider {
412 display:flex;
413 user-select: none;
414 }
415 .glyph-grid .toolbar .slider > input { flex: 0 0 auto; }
416 .glyph-grid .toolbar .slider > input { width: 2rem; padding:0; margin-right: 0.4rem }
417 .glyph-grid .toolbar .opsz-switch { display: none; }
418 .glyph-grid .toolbar .identification {
419 display: flex;
420 flex-direction: column;
421 flex: 1 1 auto;
422 overflow: hidden;
423 }
424 .glyph-grid .toolbar .identification > * {
425 user-select: all;
426 }
427 .glyph-grid .toolbar .identification .name {
428 overflow: hidden;
429 text-overflow: ellipsis;
430 }
431 .glyph-grid .toolbar .identification .unicode {
432 font-variant: tabular-nums slashed-zero;
433 }
434 .glyph-grid .toolbar .preview {
435 display: flex;
436 flex: 0 0 auto;
437 width: var(--cell-size);
438 height: var(--cell-size);
439 align-items: center;
440 justify-content: center;
441 font-size: 2em;
442 font-weight: var(--inspector-wght);
443 font-variation-settings: "opsz" var(--inspector-opsz);
444 border-left: var(--line-width) solid var(--grid-color);
445 user-select: all;
446 }
447 .glyph-grid .canvas {
448 user-select: none;
449 font-size: 40vw;
450 text-align: center;
451 line-height: 1.0;
452 height: 100%;
453 max-height: 50vw;
454 overflow: hidden;
455 position: relative;
456 }
457 .glyph-grid .canvas > canvas {
458 position: absolute;
459 top:0; left:0;
460 /*cursor:
461 url(res/cursor-glyph-inspector.svg) 10 10,
462 url(res/cursor-glyph-inspector.png) 10 10,
463 crosshair;*/
464 cursor: crosshair;
465 }
466
467 .glyph-grid .glyph-list .clipview {
468 position: relative;
469 }
470
471 .glyph-grid .glyph-list .clipview .content {
472 display: grid;
473 grid-template-columns: repeat( auto-fit, minmax(var(--cell-size), 1fr) );
474 gap: var(--line-width);
475 font-size: calc(var(--cell-size) / 2);
476 }
477 .glyph-grid .glyph-list .clipview .content > * {
478 height: var(--cell-size);
479 line-height: calc(var(--cell-size) + 1px);
480 text-align: center;
481 text-decoration: none;
482 overflow: hidden;
483 box-shadow: 0 0 0 var(--line-width) var(--grid-color);
484 scroll-padding-top: 0;
485 }
486 .glyph-grid .glyph-list .clipview .content > .fill-row { grid-column: 1 / -1 }
487 .glyph-grid .glyph-list .clipview .content > :hover {
488 color: inherit;
489 text-decoration: none;
490 overflow: unset;
491 z-index: 1;
492 box-shadow: 0 0 0 2px var(--foreground-color);
493 }
494 .glyph-grid .glyph-list .clipview .content > .selected {
495 color: white;
496 background: black;
497 }
498 .glyph-grid .glyph-list .clipview .content > :focus {
499 outline: none;
500 }
501
502 .glyph-grid .glyph-list .fade-cover { display: none; } /* small screens only */
503
504 .columns {
505 column-width: 22em;
506 column-count: 4;
507 column-gap: 3em;
508 column-fill: balance;
509 }
510 .columns > p {
511 -webkit-column-break-inside: avoid;
512 page-break-inside: avoid;
513 break-inside: avoid;
514 }
515 .columns > h1,
516 .columns > h2,
517 .columns > h3,
518 .columns > h4,
519 .columns > h5,
520 .columns > h6 {
521 break-after: avoid;
522 }
523 /*.columns.size1 { font-size: var(--font-size); }*/
524
525 @media only screen and (min-width: 1800px) { /* window width >= 1800 */
526 .columns.size1 { font-size: 0.9vw }
527 }
528 @media only screen and (min-width: 1600px) { /* window width >= 1600 */
529 .columns.size1 { font-size: var(--font-size); }
530 }
531 @media only screen and (min-width: 1392px) { /* window width >= 1392 */
532 .example-a-z { font-size: 8.9em; }
533 }
534 @media only screen and (min-width: 1000px) { /* window width >= 1000 */
535 .glyph-grid .toolbar > :first-child { min-width: 45% }
536 }
537 @media only screen and (max-width: 1000px) { /* window width <= 1000 */
538 .example2.features { font-size: 15.5vw; }
539 }
540 @media only screen and (max-width: 880px) { /* window width <= 880 */
541 .columns.size1 { font-size: 14px; }
542 .example2.features { font-size: 15vw; }
543 .glyph-grid .toolbar .opsz-switch { display: flex; }
544 .glyph-grid .toolbar .opsz-slider { display: none; }
545 }
546 @media only screen and (max-width: 719px) { /* window width <= 719 */
547 .example-a-z { font-size: 13vw; }
548 .glyph-grid { --cell-size: 10vw; }
549 .example2.features { font-size: 16vw; }
550 }
551 @media only screen and (max-width: 500px) { /* window width <= 500 */
552 .feat-table > r-grid > r-cell { grid-column: 1 / -1 }
553 .feat-table .col-head { display: none }
554 .feat-table hr.thin { opacity:1; height:2px; margin-top: 4rem }
555 .feat-name { margin-top: 0; margin-bottom: 1rem }
556 .feat-name p { display: none; }
557 /*.feat-name p {
558 margin-bottom: 1em; font-style: italic; font-size: inherit;
559 opacity: 0.4;
560 }*/
561 .feat-example { margin-top: 0; font-size: 2em; line-height:1.5 }
562 .feat-example:nth-child(odd) { padding:2rem 0 3rem 0 }
563 .feat-example:nth-child(even) {}
564 .row.features-section1 { padding-bottom: 4rem }
565 .row.features-section2 r-cell:first-child { padding: 2rem 0 }
566
567 .row.glyphs { padding: 0; margin-top: 6rem; position:relative }
568 .row.glyphs::before {
569 content: "Glyphs";
570 font-weight: 600;
571 font-size: 2em;
572 position:absolute;
573 top:-4rem; left: 1rem;
574 color: var(--foreground-color-bright);
575 }
576 .row.glyphs > :first-child { display: none }
577 /*.row.glyphs h2 { font-size: 2rem; margin-bottom: 1rem }*/
578 .glyph-grid {
579 --cell-size: 16vw; --line-width: 1px;
580 --glyph-list-height: 40vh;
581 --inspector-height: calc(60vh - (var(--header-height)/2));
582 display: grid;
583 grid-template-columns: none;
584 grid-template-rows: var(--inspector-height) auto;
585 }
586 .glyph-grid .toolbar { gap: 1.4rem }
587 .glyph-grid .inspector {
588 position: initial;
589 height: var(--inspector-height);
590 max-height: var(--inspector-height);
591 background: var(--background-color);
592 }
593 .glyph-grid .inspector .canvas { max-height: unset }
594 .glyph-grid .glyph-list {
595 position: relative;
596 }
597 .glyph-grid .glyph-list .clipview {
598 display: grid;
599 height: var(--glyph-list-height);
600 grid-auto-flow: column;
601 overflow-x: scroll;
602 overflow-y: hidden;
603 max-width: 100vw;
604 box-sizing: border-box;
605 }
606 .glyph-grid .glyph-list .fade-cover {
607 display: block;
608 position: absolute;
609 top:0; bottom:0;
610 width: 1rem;
611 z-index: 2;
612 pointer-events: none;
613 background: linear-gradient(270deg, var(--background-color-transparent) 0%, var(--background-color) 100%);
614 /*background: rgba(255,0,0,0.4);*/
615 }
616 .glyph-grid .glyph-list .fade-cover.left { left: 0; display:none }
617 .glyph-grid .glyph-list .fade-cover.right {
618 right: 0;
619 width: 3rem;
620 background: linear-gradient(270deg, var(--background-color) 0%, var(--background-color-transparent) 100%);
621 /*background: rgba(0,0,255,0.4);*/
622 }
623 .glyph-grid .glyph-list .clipview .content {
624 /*grid-template-columns: none;*/
625 /*grid-template-rows: repeat( auto-fit, minmax(var(--cell-size), 1fr) );*/
626
627 grid-template-columns: repeat(auto-fill, var(--cell-size));
628 grid-auto-rows: var(--cell-size);
629
630 grid-auto-flow: column;
631 grid-template-rows: repeat(auto-fill, var(--cell-size));
632 }
633 .glyph-grid .glyph-list .clipview .content > * {
634 width: var(--cell-size);
635 height: unset;
636 }
637 }
638
639 #faq {
640 margin-top: 2em;
641 }
642 #faq .columns > p {
643 margin-bottom: 2em;
644 }
645 #faq h2 {
646 margin: 0 0 1.5em 0;
647 }
648 #faq h4:target {
649 background: var(--active-bgcolor);
650 outline: 8px solid var(--active-bgcolor);
651 border-radius: 4px;
652 }
653 @media (prefers-color-scheme: dark) { #faq h4:target {
654 color: white;
655 }}
656
657 </style>
658
659
660 <div class="row"><div>
661 <r-grid columns=8>
662 <r-cell span=row>
663 <h1 class=title>The Inter typeface family</h1>
664 </r-cell>
665 <r-cell span=1-2 span-s=row>
666 The 21st century standard<br>
667 <br>
668 <a class=button href="{{url_root}}download/">Download ↓</a><br>
669 <br>
670 </r-cell>
671 <r-cell span=3-5 span-s=row>
672 <p>
673 Inter is a workhorse of a typeface carefully crafted &amp; designed for
674 a wide range of applications, from detailed user interfaces to marketing &amp; signage.
675 The Inter typeface family features over <a href="#glyphs">2000&nbsp;glyphs</a>
676 covering <a href="#languages">{{lang_count}}&nbsp;languages</a>.
677 Weights range from a delicate thin 100 all the way up to a heavy 900. Each glyph has three dedicated designs for weights 100, 400 and 900 to ensure excellent quality at any weight. Optical size ranges from "text" to "display" and there is a true italic variant.
678 </p>
679 <p>
680 Inter is one of the world's most used typefaces with applications ranging from computer interfaces, advertising &amp; airports, to NASA instrumentation &amp; medical equipment.
681 </p>
682 </r-cell>
683 <r-cell span=6.. span-s=row>
684 <p>
685 The smaller "text" optical-size designs features a tall x-height to aid in legibility of lower-case text, with several contrast-enhancing details like ink traps and bridges. The larger "display" optical-size designs offers clean lines, smooth curves and delicate details for excellent rhythm of large text.
686 </p><p>
687 Many <a href="#features">OpenType features</a> are provided as well,
688 including contextual alternates which adjusts punctuation depending on the
689 shape of surrounding glyphs, slashed zero for when you need to
690 disambiguate "0" from "o", tabular numbers, and much more.
691 </p>
692 </r-cell>
693 </r-grid>
694 </div></div>
695
696
697 <div class="row"><div>
698 <p class="example-a-z only-large-screen" contenteditable spellcheck=false>
699 ABCDEFGHIJKLMN<br>
700 OPQRSTUVWXYZ<br>
701 abcdefghijklm<br>
702 nopqrstuvwxyz<br>
703 0123456789 &amp;→!
704 </p>
705 <p class="example-a-z only-small-screen" contenteditable spellcheck=false>
706 ABCDEFGHIJ<br>
707 KLMNOPQRS<br>
708 TUVWXYZ →<br>
709 abcdefghijklm<br>
710 nopqrstuvwxyz<br>
711 0123456789&amp;!
712 </p>
713 </div></div>
714
715
716 <div class="row"><div>
717 <r-grid columns=8>
718
719 <r-cell span=2 span-s=row>
720 <h3><a id="usage" href="#usage">Usage</a></h3>
721 </r-cell>
722 <r-cell span=3.. span-s=row>
723 <p>
724 Using Inter is as easy as
725 <a class="download-link" href="download/">downloading &amp; installing</a>
726 the font files.<br>
727 If you're making a web thing, you can use the following HTML and CSS:
728 </p>
729 <pre>&lt;!-- HTML in your document's head --&gt;
730 &lt;link rel=&quot;preconnect&quot; href=&quot;https://rsms.me/&quot;&gt;
731 &lt;link rel=&quot;stylesheet&quot; href=&quot;https://rsms.me/inter/inter.css&quot;&gt;
732
733 /* CSS */
734 :root {
735 font-family: Inter, sans-serif;
736 font-feature-settings: 'liga' 1, 'calt' 1; /* fix for Chrome */
737 }
738 @supports (font-variation-settings: normal) {
739 :root { font-family: InterVariable, sans-serif; }
740 }</pre>
741 <p>Global <abbr title="Content Delivery Network">CDN</abbr>
742 sponsored by <a href="https://cloudflare.com/">Cloudflare</a></p>
743 </r-cell>
744
745
746
747 <r-cell class=spacer></r-cell>
748
749
750 <r-cell span=2 span-s=row>
751 <h3><a id="free" href="#free">Free &amp; open source</a></h3>
752 </r-cell>
753 <r-cell span=3.. span-s=row>
754 <p>
755 Inter is a <a href="https://github.com/rsms/inter">free and open source</a> font family.<br>
756 You are free to use this font in almost any way imaginable.<br>
757 Refer to the <a href="https://raw.githubusercontent.com/rsms/inter/v{{release_version}}/LICENSE.txt">SIL Open Font License 1.1</a> for exact details on what the conditions and restrictions are.
758 </p>
759 <p>
760 <a id="sponsor-button"
761 title="Help Inter by becoming a sponsor and donating a coffee or two"
762 href="https://github.com/sponsors/rsms">
763 <span>Sponsor</span>
764 </a>
765 </p>
766 </r-cell>
767
768 </r-grid>
769 </div></div>
770
771
772
773 <div class="row examples section1-roman">
774 <r-grid columns=6>
775 <r-cell span=2 class=label>Thin</r-cell>
776 <r-cell span=3.. class="label r">100</r-cell>
777 <r-cell span=row class="example2 single-line" contenteditable spellcheck=false style="font-weight:100;letter-spacing:-0.01em;">Salient gazelle eyes</r-cell>
778
779 <r-cell class=spacer></r-cell>
780
781 <r-cell span=2 class=label>ExtraLight</r-cell>
782 <r-cell span=3.. class="label r">200</r-cell>
783 <r-cell span=row class="example2 single-line" contenteditable spellcheck=false style="font-weight:200;letter-spacing:-0.01em;">Internationalization</r-cell>
784
785 <r-cell class=spacer></r-cell>
786
787 <r-cell span=2 class=label>Light</r-cell>
788 <r-cell span=3.. class="label r">300</r-cell>
789 <r-cell span=row class="example2 single-line" contenteditable spellcheck=false style="font-weight:300">Millimeter waves</r-cell>
790
791 <r-cell class=spacer></r-cell>
792
793 <r-cell span=2 class=label>Regular</r-cell>
794 <r-cell span=3.. class="label r">400</r-cell>
795 <r-cell span=row class="example2 single-line" contenteditable spellcheck=false style="font-weight:400">Assimilation engine</r-cell>
796
797 <r-cell class=spacer></r-cell>
798
799 <r-cell span=2 class=label>Medium</r-cell>
800 <r-cell span=3.. class="label r">500</r-cell>
801 <r-cell span=row class="example2 single-line" contenteditable spellcheck=false style="font-weight:500">Botanica Francisco</r-cell>
802
803 <r-cell class=spacer></r-cell>
804
805 <r-cell span=2 class=label>SemiBold</r-cell>
806 <r-cell span=3.. class="label r">600</r-cell>
807 <r-cell span=row class="example2 single-line" contenteditable spellcheck=false style="font-weight:600">Spontaneous apes</r-cell>
808
809 <r-cell class=spacer></r-cell>
810
811 <r-cell span=2 class=label>Bold</r-cell>
812 <r-cell span=3.. class="label r">700</r-cell>
813 <r-cell span=row class="example2 single-line" contenteditable spellcheck=false style="font-weight:700">15 Mango Avenue</r-cell>
814
815 <r-cell class=spacer></r-cell>
816
817 <r-cell span=2 class=label>ExtraBold</r-cell>
818 <r-cell span=3.. class="label r">800</r-cell>
819 <r-cell span=row class="example2 single-line" contenteditable spellcheck=false style="font-weight:800">Comedy Morning</r-cell>
820
821 <r-cell class=spacer></r-cell>
822
823 <r-cell span=2 class=label>Black</r-cell>
824 <r-cell span=3.. class="label r">900</r-cell>
825 <r-cell span=row class="example2 single-line" contenteditable spellcheck=false style="font-weight:900">Hamburgefonstiv</r-cell>
826 </r-grid>
827 </div>
828
829
830
831 <div class="row examples section1-italic">
832 <r-grid columns=6>
833 <r-cell span=2 class=label>Thin</r-cell>
834 <r-cell span=2 class=label>Italic</r-cell>
835 <r-cell span=2 class="label r">100</r-cell>
836 <r-cell span=row class="example2 i single-line" contenteditable spellcheck=false style="font-weight:100;letter-spacing:-0.01em;">Inorganic compound</r-cell>
837
838 <r-cell class=spacer></r-cell>
839
840 <r-cell span=2 class=label>ExtraLight</r-cell>
841 <r-cell span=2 class=label>Italic</r-cell>
842 <r-cell span=2 class="label r">200</r-cell>
843 <r-cell span=row class="example2 i single-line" contenteditable spellcheck=false style="font-weight:200;letter-spacing:-0.01em;">Extravaganza Lime</r-cell>
844
845 <r-cell class=spacer></r-cell>
846
847 <r-cell span=2 class=label>Light</r-cell>
848 <r-cell span=2 class=label>Italic</r-cell>
849 <r-cell span=2 class="label r">300</r-cell>
850 <r-cell span=row class="example2 i single-line" contenteditable spellcheck=false style="font-weight:300">Rectangular ellipse</r-cell>
851
852 <r-cell class=spacer></r-cell>
853
854 <r-cell span=2 class=label>Regular</r-cell>
855 <r-cell span=2 class=label>Italic</r-cell>
856 <r-cell span=2 class="label r">400</r-cell>
857 <r-cell span=row class="example2 i single-line" contenteditable spellcheck=false style="font-weight:400">3 hours till midnight</r-cell>
858
859 <r-cell class=spacer></r-cell>
860
861 <r-cell span=2 class=label>Medium</r-cell>
862 <r-cell span=2 class=label>Italic</r-cell>
863 <r-cell span=2 class="label r">500</r-cell>
864 <r-cell span=row class="example2 i single-line" contenteditable spellcheck=false style="font-weight:500">Artificial Intelligence</r-cell>
865
866 <r-cell class=spacer></r-cell>
867
868 <r-cell span=2 class=label>SemiBold</r-cell>
869 <r-cell span=2 class=label>Italic</r-cell>
870 <r-cell span=2 class="label r">600</r-cell>
871 <r-cell span=row class="example2 i single-line" contenteditable spellcheck=false style="font-weight:600">Sulfur hexafluoride</r-cell>
872
873 <r-cell class=spacer></r-cell>
874
875 <r-cell span=2 class=label>Bold</r-cell>
876 <r-cell span=2 class=label>Italic</r-cell>
877 <r-cell span=2 class="label r">700</r-cell>
878 <r-cell span=row class="example2 i single-line" contenteditable spellcheck=false style="font-weight:700">Hospital helicopter</r-cell>
879
880 <r-cell class=spacer></r-cell>
881
882 <r-cell span=2 class=label>ExtraBold</r-cell>
883 <r-cell span=2 class=label>Italic</r-cell>
884 <r-cell span=2 class="label r">800</r-cell>
885 <r-cell span=row class="example2 i single-line" contenteditable spellcheck=false style="font-weight:800">Encyclopedia Abc</r-cell>
886
887 <r-cell class=spacer></r-cell>
888
889 <r-cell span=2 class=label>Black</r-cell>
890 <r-cell span=2 class=label>Italic</r-cell>
891 <r-cell span=2 class="label r">900</r-cell>
892 <r-cell span=row class="example2 i single-line" contenteditable spellcheck=false style="font-weight:900">United Martians</r-cell>
893 </r-grid>
894 </div>
895
896
897 <div class="row examples">
898 <r-grid columns=6>
899 <r-cell span=2 class=label>Thin</r-cell>
900 <r-cell span=3.. class="label r">100</r-cell>
901 <r-cell span=row class="example2 multi-line" contenteditable spellcheck=false style="font-weight:100;letter-spacing:-0.005em;">
902 Chemistry is a physical science under natural sciences that covers the elements that make up matter</r-cell>
903
904 <r-cell span=2 class=label>ExtraLight</r-cell>
905 <r-cell span=3.. class="label r">200</r-cell>
906 <r-cell span=row class="example2 multi-line" contenteditable spellcheck=false style="font-weight:200;letter-spacing:-0.007em;">
907 The aspect ratio of an image is the ratio of its width to its height,
908 but you already knew that</r-cell>
909
910 <r-cell span=2 class=label>Light</r-cell>
911 <r-cell span=3.. class="label r">300</r-cell>
912 <r-cell span=row class="example2 multi-line" contenteditable spellcheck=false style="font-weight:300">
913 Unlike a moka express, a napoletana does not use the pressure of steam to force the water through the coffee</r-cell>
914
915 <r-cell span=2 class=label>Regular</r-cell>
916 <r-cell span=3.. class="label r">400</r-cell>
917 <r-cell span=row class="example2 multi-line" contenteditable spellcheck=false style="font-weight:400">
918 The Berlin key, also known as Schließzwangschlüssel, was not
919 designed to make people laugh</r-cell>
920
921 <r-cell span=2 class=label>Medium</r-cell>
922 <r-cell span=3.. class="label r">500</r-cell>
923 <r-cell span=row class="example2 multi-line" contenteditable spellcheck=false style="font-weight:500">
924 Stanley Kubrick was an American film director, screenwriter, and producer of many films</r-cell>
925
926 <r-cell span=2 class=label>SemiBold</r-cell>
927 <r-cell span=3.. class="label r">600</r-cell>
928 <r-cell span=row class="example2 multi-line" contenteditable spellcheck=false style="font-weight:600">
929 Jet Propulsion Laboratory,<br>
930 California Institute of Technology</r-cell>
931
932 <r-cell span=2 class=label>Bold</r-cell>
933 <r-cell span=3.. class="label r">700</r-cell>
934 <r-cell span=row class="example2 multi-line" contenteditable spellcheck=false style="font-weight:700">
935 The Sicilian Defense is a chess opening that begins with 1.e4 c5</r-cell>
936
937 <r-cell span=2 class=label>ExtraBold</r-cell>
938 <r-cell span=3.. class="label r">800</r-cell>
939 <r-cell span=row class="example2 multi-line" contenteditable spellcheck=false style="font-weight:800">
940 Padrón province of A Coruña, Galicia, northwestern Spain</r-cell>
941
942 <r-cell span=2 class=label>Black</r-cell>
943 <r-cell span=3.. class="label r">900</r-cell>
944 <r-cell span=row class="example2 multi-line" contenteditable spellcheck=false style="font-weight:900">
945 Woven silk pyjamas exchanged for blue quartz crystals</r-cell>
946 </r-grid>
947 </div>
948
949
950 <div class="row examples" style="padding-top:0"><div>
951 <p class=label>Example text, Regular</p>
952 <div class="columns size1">
953 <p>
954 One of the most famous lighthouses of antiquity, as I have already pointed out, was the pharos of Alexandria, which ancient writers included among the Seven Wonders of the World. It might naturally be supposed that the founder of so remarkable a monument of architectural skill would be well known; yet while Strabo and Pliny, Eusebius, Suidas, and Lucian ascribe its erection to Ptolemæus Philadelphus, the wisest and most benevolent of the Ptolemean kings of Egypt, by Tzetzes and Ammianus Marcellinus the honour is given to Cleopatra; <em>and other authorities even attribute it to Alexander the Great.</em>
955 </p><p>
956 All that can with certainty be affirmed is, that the architect was named Sostrates. Montfaucon, in his great work, endeavours to explain how it is that while we are thus informed as to the architect, we are so doubtful as to the founder, whom, for his part, he believes to have been Ptolemæus. Our ignorance, he says, is owing to the knavery of Sostrates. He wished to immortalize his name; a blameless wish, if at the same time he had not sought to suppress that of the founder, whose glory it was to have suggested the erection. For this purpose Sostrates devised a stratagem which proved successful; deep in the wall of the tower he cut the following inscription: “Sostrates of Cnidos, son of Dexiphanes, to the gods who Protect those who are upon the Sea.” But, mistrustful that King Ptolemæus would scarcely be satisfied with an inscription in which he was wholly ignored, he covered it with a light coat of cement, which he knew would not long endure the action of the atmosphere, and carved thereon the name of Ptolemæus. After a few years the cement and the name of the king disappeared, and revealed the inscription which gave all the glory to Sostrates.
957 </p><p>
958 Montfaucon, with genial credulity, adopts this anecdote as authentic, and adds: Pliny pretends that Ptolemæus, out of the modesty and greatness of his soul, desired the architect’s name to be engraved upon the tower, and no reference to himself to be made. But this statement is very dubious; it would have passed as incredible in those times, and even to-day would be regarded as an ill-understood act of magnanimity. We have never heard of any prince prohibiting the perpetuation of his name upon magnificent works designed for the public utility, or being content that the architect should usurp the entire honour.
959 </p><p>
960 To solve the difficulty, Champollion represents the pharos as constructed by Ptolemæus Soter. But, as Edrisi solemnly remarks, “God alone knows what is the truth.”
961 </p><p>
962 Much etymological erudition has been expended on the derivation of the word Pharos. As far as the Alexandrian light-tower is concerned, there can be no doubt that it was named from the islet on which it stood; yet Isidore asserts that the word came from φὼς, “light,” and ὁρἀν, “to see.” To quote again from Montfaucon: <em>That numerous persons, who have not read the Greek authors, should exercise their ingenuity to no avail in the extraction of these etymologies, is far less surprising than that so good a scholar as Isaac Vossius should seek the origin of Pharos in the Greek language.</em> From ϕαἰνειν, “to shine,” he says, comes ϕανερός, and from ϕανερός, ϕάρος.... But the island was called Pharos seven or eight hundred years before it possessed either tower or beacon-light.
963 </p><p>
964 The most reasonable conjecture seems to be that the word is a Hellenic form of Phrah, the Egyptian name of the sun, to whom the Alexandrian lighthouse would naturally be compared by wondering spectators, or dedicated by a devout prince.
965 </p><p>
966 At a later date we find the word applied to very different objects, though always retaining the signification of light or brilliancy. A pharos of fire—i.e., a ball or meteor—was seen, says Gregory of Tours, to issue from the church of St. Hilaire, and descend upon King Clovis. The same historian uses the word to describe a conflagration:—“They (the barbarians) set fire to the church of St. Hilaire, kindled a great pharos, and while the church was burning, pillaged the monastery.” The old French historian frequently employs the word in this sense, which leads us to suppose that in his time an incendiary was probably designated “a maker of pharoses” (un faiseur de phares). Still later, the term pharos was applied to certain machines in which a number of lamps or tapers were placed, as in a candelabrum. A modern French writer quotes from Anastasius the Librarian, that Pope Sylvester caused “a pharos of pure gold” to be constructed; and that Pope Adrian I. made one, “in the form of a cross,” capable of receiving one hundred and seventy candles or tapers. And Leon of Ostia, in his “Chronicle of Monte Cassino,” says, that the Abbot Didier had a pharos, or great silver crown, weighing one hundred pounds, constructed, which was surmounted by twelve little turrets, and from which were suspended six and thirty lamps.
967 </p><p>
968 <em>Excerpt from “Lighthouses and Lightships”</em>
969 </p>
970 </div>
971 </div></div>
972
973
974 <div class="row examples features features-section1 feat-table" id="features">
975 <r-grid columns=8>
976
977 <r-cell span=4 span-s=row>
978 <h2><a href="#features">Features</a></h2>
979 <p>
980 Inter comes with many OpenType features which can be used to tailor functionality and aesthetics to your specific needs. Some of these features can be combined to form a great number of alternative variations.
981 </p>
982 </r-cell>
983 <r-cell span=6-8 span-s=row class="only-large-screen">
984 <h2>&nbsp;</h2>
985 <p style="font-feature-settings:'cv01' 1,'cv03' 1,'cv04' 1,'cv08' 1,'cv10' 1,'cv11' 1,'ss01' 1,'ss02' 1,'dlig' 1;font-size:10vw;margin:-0.33em 0 0 -0.07em;color:white">
986 altG16I
987 </p>
988 </r-cell>
989
990 <hr>
991
992 <r-cell span=1-2 class=col-head>Feature</r-cell>
993 <r-cell span=3-5 class=col-head>Off</r-cell>
994 <r-cell span=6-8 class=col-head>On</r-cell>
995
996 <hr class="thin col-head">
997
998 {% for f in site.data.feature_samples %}
999
1000 <r-cell span=1-2 class="leading-trim feat-name" id="features/{{f.tag}}">
1001 <r-feat>{{f.tag}}</r-feat> {{f.title}}
1002 {% if f.description %}
1003 <p class=small style="margin-top:0.5rem">{{f.description}}</p>
1004 {% endif %}
1005 </r-cell>
1006
1007 <r-cell span=3-5 class="leading-trim feat-example" style="font-feature-settings:'{{f.tag}}' 0{% if f.disable %},'{{f.disable}}'0 {% endif %}">
1008 {% for sample in f.samples %}{%
1009 assign sample_in = sample | replace: "›", "<em>" | replace: "‹", "</em>" -%}
1010 {{sample_in}}<br>
1011 {% endfor %}
1012 </r-cell>
1013
1014 <r-cell span=6-8 class="leading-trim feat-example" style="font-feature-settings:'{{f.tag}}' 1;">
1015 {% for sample in f.samples %}{%
1016 assign sample_out = sample | remove: "›" | remove: "‹" %}{%
1017 assign sample_out = sample_out | remove: " " -%}
1018 {{sample_out}}<br>
1019 {% endfor %}
1020 </r-cell>
1021
1022 <hr class=thin>
1023
1024 {% endfor %}
1025
1026 <!-- leading trim test: -->
1027 <!-- <r-cell class=spacer></r-cell>
1028 <r-cell span=row style="height:1px;background:black"></r-cell>
1029 <r-cell class=leading-trim style="font-size: 1em">M</r-cell>
1030 <r-cell class=leading-trim style="font-size: 2em">M</r-cell>
1031 <r-cell class=leading-trim style="font-size: 4em">M</r-cell>
1032 <r-cell class=leading-trim style="font-size: 8em">M</r-cell>
1033 <r-cell class=leading-trim style="font-size:12em">M</r-cell>
1034 <r-cell class=leading-trim style="font-size:16em">M</r-cell> -->
1035
1036 </r-grid>
1037 </div>
1038
1039
1040 <div class="row examples features features-section2" id="feature-examples">
1041 <r-grid columns=6>
1042
1043 <r-cell span=row id="features/cv">
1044 <r-feat>cvXX</r-feat> Character variants
1045 </r-cell>
1046 <r-cell span=row class="example2 features"
1047 style="font-weight:600;margin-bottom:-1rem">
1048 1234567890</r-cell>
1049 <r-cell span=row class="example2 features"
1050 style="font-weight:600;font-feature-settings:'cv01' 1,'cv02' 1,'cv03' 1,'cv04' 1,'cv09' 1,'zero' 1,'liga' 1,'calt' 1">
1051 1234567890</r-cell>
1052 <r-cell span=2 span-s=row class=example-note>Alternative digits</r-cell>
1053 <r-cell span=3-4 span-s=row>
1054 <r-feat>cv01</r-feat> Alternate one<br>
1055 <r-feat>cv09</r-feat> Flat-top three<br>
1056 <r-feat>cv02</r-feat> Open four<br>
1057 </r-cell>
1058 <r-cell span=5-6 span-s=row>
1059 <r-feat>cv03</r-feat> Open six<br>
1060 <r-feat>cv04</r-feat> Open nine<br>
1061 <r-feat>zero</r-feat> Slashed zero<br>
1062 </r-cell>
1063
1064 <hr style="margin-top:3rem">
1065
1066 <r-cell span=row class="example2 features"
1067 style="margin-bottom:-1rem">
1068 Guillable ürá</r-cell>
1069 <r-cell span=row class="example2 features"
1070 style="font-feature-settings:'cv06' 1,'cv10' 1,'cv11' 1,'liga' 1,'calt' 1">
1071 Guillable ürá</r-cell>
1072 <r-cell span=2 span-s=row class=example-note>
1073 Character variants is a mood
1074 </r-cell>
1075 <r-cell span=3.. span-s=row>
1076 <r-feat>cv10</r-feat> Capital G with spur<br>
1077 <r-feat>cv06</r-feat> Simplified u<br>
1078 <r-feat>cv11</r-feat> Single-story a<br>
1079 </r-cell>
1080
1081 <hr style="margin-top:3rem">
1082
1083 <r-cell span=row class="example2 features"
1084 style="font-weight:300;margin-bottom:-1rem">
1085 Efficient after</r-cell>
1086 <r-cell span=row class="example2 features"
1087 style="font-weight:300;font-feature-settings:'cv12' 1,'cv13' 1,'liga' 1,'calt' 1">
1088 Efficient after</r-cell>
1089 <r-cell span=2 span-s=row class=example-note>
1090 Give it a compact character
1091 </r-cell>
1092 <r-cell span=3.. span-s=row>
1093 <r-feat>cv12</r-feat> Compact f<br>
1094 <r-feat>cv13</r-feat> Compact t<br>
1095 </r-cell>
1096
1097 <hr style="margin-top:3rem">
1098
1099 <!-- <r-cell span=row class="example2 features"
1100 style="font-weight:200;font-size:10vw;font-variant:tabular-nums;line-height:1.1;margin-top:1rem">
1101 010.2*364+8(2).5<br>
1102 −51,67×8÷91{0}:<span class=cv01>1</span></r-cell> -->
1103 <r-cell span=row class="example2 features"
1104 style="font-weight:500;font-size:10vw;font-variant:tabular-nums;line-height:1.1">
1105 0<span class=cv01>1</span>0.2*<span class=cv09>3</span>64+8(2).5<br>
1106 −51,67×8÷<span class=cv04>9</span>1{<span class=zero>0</span>}:1</r-cell>
1107 <!-- <r-cell span=row class="example2 features"
1108 style="font-weight:600;font-size:10vw;font-variant:tabular-nums;line-height:1.1">
1109 <span class=zero>0</span>10.2*3<span class=cv03>6</span>4+8(2).5<br>
1110 −5<span class=cv01>1</span>,67×8÷91{0}:1</r-cell> -->
1111 <r-cell span=row class="example2 features"
1112 style="font-weight:800;font-size:10vw;font-variant:tabular-nums;line-height:1.1">
1113 010.2*36<span class=cv02>4</span>−8(2).5<br>
1114 +51,67×8÷9<span class=cv01>1</span>{0}:<span class=cv01>1</span></r-cell>
1115 <r-cell span=row class="example2 features"
1116 style="font-size:10vw;font-variant:tabular-nums;line-height:1.1;margin-bottom:2rem">
1117 <span style="font-weight:100">1</span><span style="font-weight:200">2</span><span style="font-weight:300">3.</span><span style="font-weight:400">4</span><span style="font-weight:500">5</span><span style="font-weight:600">6</span><span style="font-weight:700">7</span><span style="font-weight:800">8</span><span style="font-weight:900">90</span>[1]<span style="font-weight:600">,</span><span style="font-weight:800">3</span></r-cell>
1118 <r-cell span=2 span-s=row class=example-note>
1119 Tabular figures are excellent for tables of numeric data. <code>tnum</code> enables an entire set of dedicated glyphs that have the same width across all weights.
1120 </r-cell>
1121 <r-cell span=3.. span-s=row>
1122 <r-feat>tnum</r-feat> Tabular figures
1123 </r-cell>
1124
1125 <hr style="margin-top:3rem">
1126
1127 <r-cell span=row class="example2 features"
1128 style="margin-bottom:-1rem">
1129 Illusion A03</r-cell>
1130 <r-cell span=row class="example2 features"
1131 style="font-feature-settings:'ss02' 1,'liga' 1,'calt' 1">
1132 Illusion A03</r-cell>
1133 <r-cell span=2 span-s=row class=example-note>
1134 Disambiguate between similar-looking characters with
1135 <r-feat>ss02</r-feat> or individual character variants
1136 </r-cell>
1137 <r-cell span=3.. span-s=row>
1138 <r-feat>ss02</r-feat> Disambiguation, or<br>
1139 <r-feat>cv08</r-feat> Upper-case i with serif<br>
1140 <r-feat>cv05</r-feat> Lower-case L with tail<br>
1141 <r-feat>zero</r-feat> Slashed zero<br>
1142 </r-cell>
1143
1144 <hr style="margin-top:3rem">
1145
1146 <r-cell span=row class="example2"
1147 style="font-weight:500;white-space:nowrap;font-size:9.5vw">
1148 It’s “fun” here, Möbius</r-cell>
1149 <r-cell span=row class="example2"
1150 style="font-weight:500;white-space:nowrap;font-size:9.5vw;font-feature-settings:'ss03' 1,'liga' 1,'calt' 1">
1151 It’s “fun” here, Möbius</r-cell>
1152 <r-cell span=row class="example2"
1153 style="font-weight:500;white-space:nowrap;font-size:9.5vw;font-feature-settings:'ss07' 1,'ss08' 1,'liga' 1,'calt' 1;margin-bottom:1rem">
1154 It’s “fun” here, Möbius</r-cell>
1155 <r-cell span=2 span-s=row class=example-note>
1156 Add a little personality to titles
1157 </r-cell>
1158 <r-cell span=3.. span-s=row>
1159 <r-feat>ss03</r-feat> Round quotes &amp; commas<br>
1160 <r-feat>ss07</r-feat> Square punctuation<br>
1161 <r-feat>ss08</r-feat> Square quotes<br>
1162 </r-cell>
1163
1164 <hr style="margin-top:3rem">
1165
1166 <r-cell span=row>
1167 Listing of all features
1168 </r-cell>
1169 <r-cell span=row style="margin-top:1rem">
1170 <div class="columns" style="column-width:18em;column-gap:1em">
1171 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-aalt">aalt</a> Access All Alternates<br>
1172 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-c2sc">c2sc</a> Small Capitals From Capitals<br>
1173 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-calt">calt</a> Contextual Alternates<br>
1174 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-case">case</a> Case-Sensitive Forms<br>
1175 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-ccmp">ccmp</a> Glyph Composition/Decomposition<br>
1176 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-cpsp">cpsp</a> Capital Spacing<br>
1177 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-cv01--cv99">cv01</a> Alternate one<br>
1178 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-cv01--cv99">cv02</a> Open four<br>
1179 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-cv01--cv99">cv03</a> Open six<br>
1180 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-cv01--cv99">cv04</a> Open nine<br>
1181 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-cv01--cv99">cv05</a> Lower-case L with tail<br>
1182 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-cv01--cv99">cv06</a> Simplified u<br>
1183 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-cv01--cv99">cv07</a> Alternate German double s<br>
1184 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-cv01--cv99">cv08</a> Upper-case i with serif<br>
1185 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-cv01--cv99">cv09</a> Flat-top three<br>
1186 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-cv01--cv99">cv10</a> Capital G with spur<br>
1187 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-cv01--cv99">cv11</a> Single-story a<br>
1188 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-cv01--cv99">cv12</a> Compact f<br>
1189 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-cv01--cv99">cv13</a> Compact t<br>
1190 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-dlig">dlig</a> Discretionary Ligatures<br>
1191 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ae#tag-dnom">dnom</a> Denominators<br>
1192 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_fj#tag-frac">frac</a> Fractions<br>
1193 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ko#tag-locl">locl</a> Localized Forms<br>
1194 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ko#tag-numr">numr</a> Numerators<br>
1195 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_ko#tag-ordn">ordn</a> Ordinals<br>
1196 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_pt#tag-pnum">pnum</a> Proportional Figures<br>
1197 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_pt#tag-salt">salt</a> Stylistic Alternates<br>
1198 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_pt#tag-sinf">sinf</a> Scientific Inferiors<br>
1199 <!--a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_pt#tag-smcp">smcp</a> Small Capitals (limited)<br-->
1200 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_pt#tag-ss01---ss20">ss01</a> Open digits<br>
1201 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_pt#tag-ss01---ss20">ss02</a> Disambiguation (with zero)<br>
1202 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_pt#tag-ss01---ss20">ss03</a> Round quotes &amp; commas<br>
1203 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_pt#tag-ss01---ss20">ss04</a> Disambiguation (no zero)<br>
1204 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_pt#tag-ss01---ss20">ss05</a> Circled characters<br>
1205 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_pt#tag-ss01---ss20">ss06</a> Squared characters<br>
1206 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_pt#tag-ss01---ss20">ss07</a> Square punctuation<br>
1207 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_pt#tag-ss01---ss20">ss08</a> Square quotes<br>
1208 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_pt#tag-subs">subs</a> Subscript<br>
1209 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_pt#tag-sups">sups</a> Superscript<br>
1210 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_pt#tag-tnum">tnum</a> Tabular Figures<br>
1211 <a class=feat href="https://learn.microsoft.com/typography/opentype/spec/features_uz#tag-zero">zero</a> Slashed Zero<br>
1212 </div>
1213 </r-cell>
1214
1215 </r-grid>
1216 </div>
1217
1218
1219
1220 <div class="row glyphs" id="glyphs">
1221 <div>
1222 <h2><a href="#glyphs">Glyphs</a></h2>
1223 </div>
1224 <div class="glyph-grid">
1225 <div class=inspector>
1226 <div class=toolbar>
1227 <div>
1228 <!-- <div class=popup-menu>
1229 <select name=font>
1230 <option value="d-100">Thin (Display)</option>
1231 <option value="d-200">ExtraLight (Display)</option>
1232 <option value="d-300">Light (Display)</option>
1233 <option value="d-400" selected>Regular (Display)</option>
1234 <option value="d-500">Medium (Display)</option>
1235 <option value="d-600">SemiBold (Display)</option>
1236 <option value="d-700">Bold (Display)</option>
1237 <option value="d-800">ExtraBold (Display)</option>
1238 <option value="d-900">Black (Display)</option>
1239 <option value="t-100">Thin (Text)</option>
1240 <option value="t-200">ExtraLight (Text)</option>
1241 <option value="t-300">Light (Text)</option>
1242 <option value="t-400">Regular (Text)</option>
1243 <option value="t-500">Medium (Text)</option>
1244 <option value="t-600">SemiBold (Text)</option>
1245 <option value="t-700">Bold (Text)</option>
1246 <option value="t-800">ExtraBold (Text)</option>
1247 <option value="t-900">Black (Text)</option>
1248 </select>
1249 <span class="label"></span>
1250 <span class="icon"></span>
1251 </div> -->
1252 <!-- <label class=switch-button>
1253 <input type="checkbox" name="opsz" checked>
1254 Small optical size
1255 </label> -->
1256 <div class="slider opsz-slider" title='opsz from 14 "text" to 32 "display"'>
1257 <input type="range" name="opsz" value=32 min=14 max=32 step=0.1>
1258 Optical size
1259 </div>
1260 <label class="switch-button opsz-switch">
1261 <input type="checkbox" name="opsz-switch">
1262 Small opsz
1263 </label>
1264 <!-- <div class="slider wght-slider" title="wght">
1265 Weight
1266 <input type="range" name="wght" value=400 min=100 max=900 step=1>
1267 </div> -->
1268 <label class=switch-button>
1269 <input type="checkbox" name="show-details">
1270 Details
1271 </label>
1272 </div>
1273 <div class=identification>
1274 <div class=name>A</div>
1275 <div class=unicode>U+0041</div>
1276 </div>
1277 <div class=preview>A</div>
1278 </div>
1279 <div class=canvas>A</div>
1280 </div>
1281 <div class="glyph-list">
1282 <div class="fade-cover left"></div>
1283 <div class=clipview>
1284 <div class=content>
1285 {% for g in site.data.glyphinfo.glyphs -%}
1286 {%- if g[2] == 0 and g[3] -%}
1287 <a title="{{g[1]}}
1288 U+{{g[3]}}{%if g[4]%} {{g[4]}} {%endif%}" data-name="{{g[1]}}" data-cp="{{g[3]}}" href="#glyphs/{{g[1]}}">&#x{{g[3]}}</a>
1289 {% endif -%}
1290 {%- endfor %}
1291 </div>
1292 </div>
1293 <div class="fade-cover right"></div>
1294 </div>
1295 </div>
1296 {% for file in site.static_files %}{%
1297 assign _path = file.path | remove_first: "/inter" %}{%
1298 if _path == "/res/glyph-inspector.js" %}{%
1299 assign glyph_inspector_js_v = file.modified_time | date: "%Y%m%d%H%M%S" %}{%
1300 endif %}{%
1301 endfor -%}
1302 <script type="module" src="{{url_root}}res/glyph-inspector.js?v={{glyph_inspector_js_v}}"></script>
1303 </div>
1304
1305
1306
1307 <div class="row examples" id="languages"><div>
1308 <h2><a href="#languages">Language support</a></h2>
1309 <p>Inter currently covers {{lang_count}} scripts</p>
1310 <div class="columns" style="column-width:12em;column-gap:1em">
1311 {% for c in site.data.languages %}
1312 <h4>{{c.category}}</h4>
1313 {% for language in c.languages -%}
1314 {{language}}<br>
1315 {% endfor %}
1316 {% endfor %}
1317 </div>
1318 </div></div>
1319
1320
1321
1322 <div class="row examples"><div>
1323 <!-- <p>Latin</p>
1324 <p class="example2">
1325 ABCDEFGHIJKLMN<br>
1326 OPQRSTUVWXYZ<br>
1327 abcdefghijklm<br>
1328 nopqrstuvwxyz<br>
1329 0123456789 &amp;→!
1330 </p>
1331 <br><br> -->
1332 <p>Greek</p>
1333 <p class="example2">
1334 ΑΒΓΔΕΖΗΘΙΚΛΜΝ<br>
1335 ΞΟΠΡΣΤΥΦΧΨΩ<br>
1336 αβγδεζηθικλμνξ<br>
1337 οπρςστυφχψω
1338 </p>
1339 <br><br>
1340 <p>Cyrillic</p>
1341 <p class="example2">
1342 АБВГДЕЁЖЗИЙКЛ<br>
1343 МНОПРСТУФХЧЦ<br>
1344 ШЩЬЪЫЭЮЯабвг<br>
1345 деёжзийклмнопрс<br>
1346 туфхчцшщьъыэюя
1347 </p>
1348 </div></div>
1349
1350
1351
1352 <div class="row examples" id="faq"><div>
1353 <h2><a href="#faq">Frequently Asked Questions</a></h2>
1354 <div class="columns" style="column-width:15em;column-gap:2em">
1355 {% for c in site.data.faq %}
1356 <h4 id="{{c.id}}"><a href="#{{c.id}}">{{c.q}}</a></h4>
1357 {{c.a | markdownify}}
1358 {% endfor %}
1359 </div>
1360 </div></div>
1361
1362
1363
1364
1365
1366 <script>(function(){
1367
1368 const $ = (q, el) => (el || document).querySelector(q)
1369 const $$ = (q, el) => [].slice.call((el || document).querySelectorAll(q))
1370
1371 // contenteditable, paste as plain-text
1372 $$('[contenteditable]').forEach(el => {
1373 el.addEventListener('paste', ev => {
1374 ev.preventDefault()
1375 document.execCommand("insertText", false, ev.clipboardData.getData("text/plain"))
1376 }, {capture:true,passive:false})
1377 })
1378
1379 // show/hide "Inter" in header
1380 let callback = (entries, observer) => {
1381 entries.forEach((entry) => {
1382 $('header .scroll-reveal').classList.toggle('visible', !entry.isIntersecting)
1383 });
1384 }
1385 let observer = new IntersectionObserver(callback, { rootMargin: "0px", threshold: 0 })
1386 observer.observe($('h1'))
1387
1388 // low priority stuff that doesn't need to happen immediately
1389 ;(typeof requestIdleCallback == "undefined" ? f => f() : requestIdleCallback)(() => {
1390 // convert .num/num numbers to local format, e.g. "1,234.56" vs "1.234,56"
1391 let nfmt = new Intl.NumberFormat() // test with .NumberFormat('de-DE')
1392 if (nfmt.format(1234.89) != "1,234.89") { // written as "1,234.89" in source
1393 for (let el of [...$$("num"), ...$$(".num")])
1394 el.innerText = nfmt.format(parseFloat(el.innerText.replace(/,/g,'')))
1395 }
1396 })
1397
1398 })()</script>