# googlefonts/googlesans-code architecture

> Architecture diagram of the GitHub repository googlefonts/googlesans-code, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-10-07). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/googlefonts/googlesans-code
- Repository: https://github.com/googlefonts/googlesans-code

## Overview

Google Sans Code is a fixed-width font family for code, supplied as Roman and Italic variable fonts. Its documented workflow is to compile the Glyphs source packages with fontc into TTF variable fonts, then install and use those fonts in code editors or terminals. The README documents a weight axis from 300 to 800 and OpenType features including stylistic sets and localized forms. Source excerpts were not provided for the glyph packages, so their internal design structure and the exact compilation wiring are not shown.

Main entry points: [`sources/GoogleSansCode.glyphspackage`](https://github.com/googlefonts/googlesans-code/tree/main/sources/GoogleSansCode.glyphspackage) (Roman source), [`sources/GoogleSansCode-Italic.glyphspackage`](https://github.com/googlefonts/googlesans-code/tree/main/sources/GoogleSansCode-Italic.glyphspackage) (Italic source)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_design["Font sources"]
  node_roman["Roman source"]
  node_italic["Italic source"]
end

subgraph group_build["Font output"]
  node_fontc["fontc compiler"]
  node_romanfont["Roman variable font"]
  node_italicfont["Italic variable font"]
end

node_designer(("Font author"))
node_fontuser(("Font user"))

node_designer -.->|"creates source"| node_roman
node_designer -.->|"creates source"| node_italic
node_roman -->|"compile with"| node_fontc
node_italic -->|"compile with"| node_fontc
node_fontc -->|"produces"| node_romanfont
node_fontc -->|"produces"| node_italicfont
node_romanfont -->|"install and use"| node_fontuser
node_italicfont -->|"install and use"| node_fontuser

click node_roman "https://github.com/googlefonts/googlesans-code/tree/main/sources/GoogleSansCode.glyphspackage"
click node_italic "https://github.com/googlefonts/googlesans-code/tree/main/sources/GoogleSansCode-Italic.glyphspackage"

classDef toneNeutral fill:#f8fafc,stroke:#334155,stroke-width:1.5px,color:#0f172a
classDef toneBlue fill:#dbeafe,stroke:#2563eb,stroke-width:1.5px,color:#172554
classDef toneAmber fill:#fef3c7,stroke:#d97706,stroke-width:1.5px,color:#78350f
classDef toneMint fill:#dcfce7,stroke:#16a34a,stroke-width:1.5px,color:#14532d
classDef toneRose fill:#ffe4e6,stroke:#e11d48,stroke-width:1.5px,color:#881337
classDef toneIndigo fill:#e0e7ff,stroke:#4f46e5,stroke-width:1.5px,color:#312e81
classDef toneTeal fill:#ccfbf1,stroke:#0f766e,stroke-width:1.5px,color:#134e4a
class node_roman,node_italic,node_fontuser toneBlue
class node_fontc,node_romanfont,node_italicfont toneAmber
class node_designer toneIndigo
```

## Components

### Font sources

- [Roman source](https://github.com/googlefonts/googlesans-code/tree/main/sources/GoogleSansCode.glyphspackage): `sources/GoogleSansCode.glyphspackage`
- [Italic source](https://github.com/googlefonts/googlesans-code/tree/main/sources/GoogleSansCode-Italic.glyphspackage): `sources/GoogleSansCode-Italic.glyphspackage`

### Font output

- **fontc compiler**
- **Roman variable font**
- **Italic variable font**

### Other components

- **Font author**
- **Font user**

## Connections

- Font author → Roman source: creates source
- Font author → Italic source: creates source
- Roman source → fontc compiler: compile with (evidence: `README.md`)
- Italic source → fontc compiler: compile with (evidence: `README.md`)
- fontc compiler → Roman variable font: produces (evidence: `README.md`)
- fontc compiler → Italic variable font: produces (evidence: `README.md`)
- Roman variable font → Font user: install and use (evidence: `README.md`)
- Italic variable font → Font user: install and use (evidence: `README.md`)
