1
1
mirror of https://github.com/rsms/inter.git synced 2024-12-25 16:44:27 +03:00

web: lab: fractions test

This commit is contained in:
Rasmus Andersson 2018-09-22 23:28:38 -07:00
parent 70c1a02281
commit cdd15f96de

View File

@ -131,6 +131,28 @@ e0 e1 e2 e3 e4 e5 e6 e7 e8 e9 eA eB eC eD eE eF ea eb ec ed ee ef
f0 f1 f2 f3 f4 f5 f6 f7 f8 f9 fA fB fC fD fE fF fa fb fc fd fe ff
`)
samples.set('Numbers: Fractions', `
Dedicated glyphs & codepoints:
\u00BD \u00BC \u00BE \u215A \u215E \u215B \u215D \u215C
Dedicated "onefraction" with denominators:
\u215F\u2080\u2081\u2082\u2083\u2084\u2085\u2086\u2087\u2088\u2089
Arbitrary fractions with frac feature:
1/2 1/4 3/4 5/6 7/8 1/8 5/8 3/8
0/0 451/980 000/000 0000000000/0000000000
frac only goes to 10 digits on left side of slash:
0000000000/00000000000000000000
00000000000/00000000000000000000
Ambiguation: (should not be fractions)
17/05/1983 /34/ /0000000000/
(make sure to enable the "frac" feature for the above to work)
`)
samples.set('Features test', `
(m) (M) (6) [m] [M] [6] {m} {M} {6}
m@n M@N
@ -778,6 +800,21 @@ for (const ch of uniqueChars) {
url("fonts/const/Inter-UI-MediumItalic.woff") format("woff");
}
@font-face {
font-family: 'Inter-UI-VERSION';
font-style: normal;
font-weight: 600;
src: url("fonts/const/Inter-UI-SemiBold.woff2") format("woff2"),
url("fonts/const/Inter-UI-SemiBold.woff") format("woff");
}
@font-face {
font-family: 'Inter-UI-VERSION';
font-style: italic;
font-weight: 600;
src: url("fonts/const/Inter-UI-SemiBoldItalic.woff2") format("woff2"),
url("fonts/const/Inter-UI-SemiBoldItalic.woff") format("woff");
}
@font-face {
font-family: 'Inter-UI-VERSION';
font-style: normal;