@aurea-uds/fonts 0.38.0 → 0.40.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/LICENSE +3 -0
- package/README.md +49 -16
- package/dist/fonts.css +7 -10
- package/files/ibm-plex-mono-400-normal.woff2 +0 -0
- package/files/ibm-plex-mono-500-normal.woff2 +0 -0
- package/files/ibm-plex-mono-600-normal.woff2 +0 -0
- package/files/inter-variable-italic.woff2 +0 -0
- package/files/inter-variable-normal.woff2 +0 -0
- package/files/sora-variable-normal.woff2 +0 -0
- package/package.json +5 -3
package/LICENSE
CHANGED
|
@@ -1,3 +1,6 @@
|
|
|
1
|
+
Copyright (c) 2016 The Inter Project Authors (https://github.com/rsms/inter)
|
|
2
|
+
Copyright 2019 The Sora Project Authors (https://github.com/sora-xor/sora-font)
|
|
3
|
+
Copyright © 2017 IBM Corp. with Reserved Font Name "Plex"
|
|
1
4
|
Copyright 2020-2024 The Atkinson Hyperlegible Next Project Authors (https://github.com/googlefonts/atkinson-hyperlegible-next)
|
|
2
5
|
Copyright 2020-2024 The Atkinson Hyperlegible Mono Project Authors (https://github.com/googlefonts/atkinson-hyperlegible-next-mono)
|
|
3
6
|
|
package/README.md
CHANGED
|
@@ -1,8 +1,12 @@
|
|
|
1
1
|
# @aurea-uds/fonts
|
|
2
2
|
|
|
3
|
-
|
|
4
|
-
|
|
5
|
-
|
|
3
|
+
As fontes da **Aurea UDS**, com as regras `@font-face` que ela espera (ADR-0077, desde a `0.39.0`):
|
|
4
|
+
|
|
5
|
+
- **Inter** para o texto e os controles;
|
|
6
|
+
- **Sora** para os títulos;
|
|
7
|
+
- **IBM Plex Mono** para código e valores (o `numeric` e o número do `KPI`).
|
|
8
|
+
|
|
9
|
+
Até a `0.38.0` a web usava a Atkinson Hyperlegible (ADR-0053); até a `0.12.4`, a IBM Plex.
|
|
6
10
|
|
|
7
11
|
```bash
|
|
8
12
|
pnpm add @aurea-uds/fonts
|
|
@@ -12,21 +16,49 @@ pnpm add @aurea-uds/fonts
|
|
|
12
16
|
import "@aurea-uds/fonts/css"; // ANTES do @aurea-uds/core/css
|
|
13
17
|
```
|
|
14
18
|
|
|
15
|
-
A ordem importa: o core só declara `--font-ui`, `--font-editorial` e `--font-code`,
|
|
16
|
-
pacote que faz esses nomes apontarem para arquivos de verdade. Importe o core primeiro e o
|
|
17
|
-
paint cai numa fonte do sistema.
|
|
19
|
+
A ordem importa: o core só declara `--font-ui`, `--font-heading`, `--font-editorial` e `--font-code`,
|
|
20
|
+
e é este pacote que faz esses nomes apontarem para arquivos de verdade. Importe o core primeiro e o
|
|
21
|
+
first paint cai numa fonte do sistema.
|
|
22
|
+
|
|
23
|
+
O título usa a Sora sozinho: o core aplica `--font-heading` a todo `h1` a `h6`, por uma regra de força
|
|
24
|
+
zero. Quem fixa outra fonte no próprio título ganha dela; a fonte que o título só herda do pai
|
|
25
|
+
(`body{font-family:…}`) perde.
|
|
18
26
|
|
|
19
|
-
|
|
20
|
-
|
|
27
|
+
⚠ `--font-editorial` não tem fonte própria desde a ADR-0053: ele aponta para a fonte do texto (hoje a
|
|
28
|
+
Inter). Continua existindo só para não quebrar quem o usa; sai na `1.0`.
|
|
21
29
|
|
|
22
|
-
⚠
|
|
23
|
-
|
|
30
|
+
⚠ **Os arquivos do React Native ainda são os da Atkinson Hyperlegible** (`@aurea-uds/fonts/native`), até a
|
|
31
|
+
`0.40.1`: a troca do aparelho é o lote seguinte, com os `.ttf` das fontes novas e o teste no aparelho. Os
|
|
32
|
+
tokens do nativo já dizem os nomes novos — passe o `FONT_FAMILIES` deste pacote ao `AureaProvider`, como
|
|
33
|
+
no exemplo, e nada muda até lá.
|
|
24
34
|
|
|
25
35
|
## De onde vêm os arquivos
|
|
26
36
|
|
|
27
|
-
|
|
28
|
-
|
|
29
|
-
|
|
37
|
+
| arquivo | origem | como |
|
|
38
|
+
|---|---|---|
|
|
39
|
+
| `inter-variable-normal.woff2`, `inter-variable-italic.woff2` | Inter 4.1 do autor (`rsms/inter`, `Inter-4.1.zip`, pasta `web/`) | cortadas para o recorte latino por `cortar-fontes.py`; continuam variáveis (peso 100–900 e tamanho óptico 14–32) |
|
|
40
|
+
| `sora-variable-normal.woff2` | `google/fonts`, `ofl/sora/Sora[wght].ttf`, commit `a926665019d3` | cortada do mesmo jeito; variável (peso 100–800) |
|
|
41
|
+
| `ibm-plex-mono-400-normal.woff2`, `-500-`, `-600-` | `@ibm/plex-mono` 2.5.0, `fonts/split/woff2/IBMPlexMono-{Regular,Medium,SemiBold}-Latin1.woff2` | **sem mudança nenhuma** (a licença reserva o nome "Plex") — só o nome do arquivo |
|
|
42
|
+
|
|
43
|
+
O corte guarda os caracteres que a web servia antes (o recorte `latin`, 218) e todos os recursos de
|
|
44
|
+
desenho, como os números de largura igual (`tnum`). A Inter fica com 217 deles (a original não tem a
|
|
45
|
+
barra de divisão `∕`) e a Sora com 217 (não tem o espaço fino); o recorte `Latin1` da IBM Plex Mono
|
|
46
|
+
cobre 214. Para refazer e conferir:
|
|
47
|
+
|
|
48
|
+
```bash
|
|
49
|
+
python packages/fonts/cortar-fontes.py <InterVariable.woff2> <InterVariable-Italic.woff2> <Sora[wght].ttf>
|
|
50
|
+
```
|
|
51
|
+
|
|
52
|
+
O script imprime o resumo (sha256) de cada arquivo. Os da IBM se conferem contra o pacote dela:
|
|
53
|
+
|
|
54
|
+
| arquivo | sha256 (começo) |
|
|
55
|
+
|---|---|
|
|
56
|
+
| `ibm-plex-mono-400-normal.woff2` | `e8993d946649b9d0` |
|
|
57
|
+
| `ibm-plex-mono-500-normal.woff2` | `41201b658a328b9d` |
|
|
58
|
+
| `ibm-plex-mono-600-normal.woff2` | `b7acd05041ab65f3` |
|
|
59
|
+
|
|
60
|
+
Os `atkinson-*.woff2` de `files/` e os `.ttf` de `files-native/` são da Atkinson e ficam só até a
|
|
61
|
+
`0.40.1`, para o nativo.
|
|
30
62
|
|
|
31
63
|
## Por que um pacote só dele
|
|
32
64
|
|
|
@@ -35,6 +67,7 @@ recortes — possa dispensá-lo sem copiar e alterar a folha de estilo.
|
|
|
35
67
|
|
|
36
68
|
## Licença
|
|
37
69
|
|
|
38
|
-
|
|
39
|
-
|
|
40
|
-
|
|
70
|
+
As quatro famílias estão sob a **SIL Open Font License 1.1**, e o texto da licença vai junto com o
|
|
71
|
+
pacote, com o copyright de cada uma. A IBM Plex Mono tem o **nome reservado "Plex"**: arquivo
|
|
72
|
+
modificado não pode levar esse nome — por isso os dela vão sem mudança. A OFL não é a Apache-2.0:
|
|
73
|
+
leia-a antes de redistribuir os arquivos de fonte.
|
package/dist/fonts.css
CHANGED
|
@@ -1,10 +1,7 @@
|
|
|
1
|
-
/* Aurea fonts —
|
|
2
|
-
@font-face{font-family:"
|
|
3
|
-
@font-face{font-family:"
|
|
4
|
-
@font-face{font-family:"
|
|
5
|
-
@font-face{font-family:"
|
|
6
|
-
@font-face{font-family:"
|
|
7
|
-
@font-face{font-family:"
|
|
8
|
-
@font-face{font-family:"Atkinson Hyperlegible Mono";font-style:normal;font-weight:400;font-display:swap;src:url("../files/atkinson-hyperlegible-mono-400-normal.woff2") format("woff2");}
|
|
9
|
-
@font-face{font-family:"Atkinson Hyperlegible Mono";font-style:normal;font-weight:500;font-display:swap;src:url("../files/atkinson-hyperlegible-mono-500-normal.woff2") format("woff2");}
|
|
10
|
-
@font-face{font-family:"Atkinson Hyperlegible Mono";font-style:normal;font-weight:600;font-display:swap;src:url("../files/atkinson-hyperlegible-mono-600-normal.woff2") format("woff2");}
|
|
1
|
+
/* Aurea fonts — Inter, Sora e IBM Plex Mono (SIL OFL 1.1). Generated from files/. Do not edit. */
|
|
2
|
+
@font-face{font-family:"Inter";font-style:normal;font-weight:100 900;font-display:swap;src:url("../files/inter-variable-normal.woff2") format("woff2");}
|
|
3
|
+
@font-face{font-family:"Inter";font-style:italic;font-weight:100 900;font-display:swap;src:url("../files/inter-variable-italic.woff2") format("woff2");}
|
|
4
|
+
@font-face{font-family:"Sora";font-style:normal;font-weight:100 800;font-display:swap;src:url("../files/sora-variable-normal.woff2") format("woff2");}
|
|
5
|
+
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:400;font-display:swap;src:url("../files/ibm-plex-mono-400-normal.woff2") format("woff2");}
|
|
6
|
+
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:500;font-display:swap;src:url("../files/ibm-plex-mono-500-normal.woff2") format("woff2");}
|
|
7
|
+
@font-face{font-family:"IBM Plex Mono";font-style:normal;font-weight:600;font-display:swap;src:url("../files/ibm-plex-mono-600-normal.woff2") format("woff2");}
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
|
Binary file
|
package/package.json
CHANGED
|
@@ -1,12 +1,14 @@
|
|
|
1
1
|
{
|
|
2
2
|
"name": "@aurea-uds/fonts",
|
|
3
|
-
"version": "0.
|
|
4
|
-
"description": "
|
|
3
|
+
"version": "0.40.0",
|
|
4
|
+
"description": "As fontes da Aurea: Inter (texto), Sora (títulos) e IBM Plex Mono (código), em WOFF2 para a web (@aurea-uds/fonts/css). Para o React Native (@aurea-uds/fonts/native), ainda os TTF da Atkinson Hyperlegible, até a troca do nativo.",
|
|
5
5
|
"keywords": [
|
|
6
6
|
"aurea",
|
|
7
7
|
"design-system",
|
|
8
8
|
"fonts",
|
|
9
|
-
"
|
|
9
|
+
"inter",
|
|
10
|
+
"sora",
|
|
11
|
+
"ibm-plex-mono",
|
|
10
12
|
"react-native"
|
|
11
13
|
],
|
|
12
14
|
"license": "OFL-1.1",
|