@aurea-uds/fonts 0.38.0 → 0.39.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 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
- A **Atkinson Hyperlegible Next** (texto) e a **Atkinson Hyperlegible Mono** (código), em WOFF2
4
- para a web e TTF para o React Native, com as regras `@font-face` que a **Aurea UDS** espera. Até a
5
- `0.12.4` era a IBM Plex (ADR-0053).
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`, e é este
16
- pacote que faz esses nomes apontarem para arquivos de verdade. Importe o core primeiro e o first
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
- Duas famílias: a **Next** para a interface e a **Mono** para código. A Atkinson Hyperlegible foi
20
- feita para quem enxerga pouco: letras parecidas (`I l 1`, `O 0`) têm desenhos diferentes.
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
- ⚠ `--font-editorial` não tem fonte própria desde a ADR-0053: a IBM Plex Serif saiu, e ele aponta
23
- para a mesma Atkinson do texto. Continua existindo só para não quebrar quem o usa; sai na `1.0`.
30
+ ⚠ **Os arquivos do React Native ainda são os da Atkinson Hyperlegible** (`@aurea-uds/fonts/native`), até a
31
+ `0.39.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
- Das fontes variáveis do Google Fonts (`ofl/atkinsonhyperlegiblenext` e
28
- `ofl/atkinsonhyperlegiblemono`), com um peso fixo por arquivo: o `.ttf` completo para o aparelho, e
29
- o `.woff2` só com o alfabeto latino para a web.
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.39.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
- A Atkinson Hyperlegible está sob a **SIL Open Font License 1.1**, sem nome reservado, e o texto da
39
- licença vai junto com o pacote. A OFL não é a Apache-2.0: leia-a antes de redistribuir os arquivos
40
- de fonte.
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 — Atkinson Hyperlegible Next e Mono (SIL OFL 1.1). Generated from files/. Do not edit. */
2
- @font-face{font-family:"Atkinson Hyperlegible Next";font-style:normal;font-weight:400;font-display:swap;src:url("../files/atkinson-hyperlegible-next-400-normal.woff2") format("woff2");}
3
- @font-face{font-family:"Atkinson Hyperlegible Next";font-style:italic;font-weight:400;font-display:swap;src:url("../files/atkinson-hyperlegible-next-400-italic.woff2") format("woff2");}
4
- @font-face{font-family:"Atkinson Hyperlegible Next";font-style:normal;font-weight:500;font-display:swap;src:url("../files/atkinson-hyperlegible-next-500-normal.woff2") format("woff2");}
5
- @font-face{font-family:"Atkinson Hyperlegible Next";font-style:normal;font-weight:600;font-display:swap;src:url("../files/atkinson-hyperlegible-next-600-normal.woff2") format("woff2");}
6
- @font-face{font-family:"Atkinson Hyperlegible Next";font-style:normal;font-weight:700;font-display:swap;src:url("../files/atkinson-hyperlegible-next-700-normal.woff2") format("woff2");}
7
- @font-face{font-family:"Atkinson Hyperlegible Next";font-style:normal;font-weight:800;font-display:swap;src:url("../files/atkinson-hyperlegible-next-800-normal.woff2") format("woff2");}
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
package/package.json CHANGED
@@ -1,12 +1,14 @@
1
1
  {
2
2
  "name": "@aurea-uds/fonts",
3
- "version": "0.38.0",
4
- "description": "Atkinson Hyperlegible Next e Mono para a Aurea: WOFF2 para a web (@aurea-uds/fonts/css) e TTF para React Native (@aurea-uds/fonts/native).",
3
+ "version": "0.39.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
- "atkinson-hyperlegible",
9
+ "inter",
10
+ "sora",
11
+ "ibm-plex-mono",
10
12
  "react-native"
11
13
  ],
12
14
  "license": "OFL-1.1",