# robinkumar5986/character-to-bits architecture

> Architecture diagram of the GitHub repository robinkumar5986/character-to-bits, generated by GitDiagram from its file tree, README and a sample of source files (last updated 2026-11-21). It is an AI-made overview: check details against the source.

- Interactive diagram: https://gitdiagram.com/robinkumar5986/character-to-bits
- Repository: https://github.com/robinkumar5986/character-to-bits

## Overview

Character to Bits is a small Java utility for turning character glyphs into fixed-size bit patterns and C-style header data. The documented workflow selects a character set, renders glyphs, converts pixels to row values, and writes 8×8 and 16×16 headers. The source also includes a separate TTF inspection utility. The README describes broader language and resolution support, but the sampled Main implementation stops after the first language and renders a hard-coded string; the graph does not assume the full documented workflow is currently completed.

Main entry points: [`Main.java`](https://github.com/robinkumar5986/character-to-bits/blob/main/Main.java) (Generator entry), [`CharactersContainers.java`](https://github.com/robinkumar5986/character-to-bits/blob/main/CharactersContainers.java) (Character sets), [`ASSAME_CHARACTERS_8x8.h`](https://github.com/robinkumar5986/character-to-bits/blob/main/ASSAME_CHARACTERS_8x8.h) (8×8 header sample), [`TtfCharReader.java`](https://github.com/robinkumar5986/character-to-bits/blob/main/TtfCharReader.java) (TTF inspector)

## Diagram (Mermaid)

```mermaid
flowchart TD

subgraph group_sets["Character sets"]
  node_characters["Character sets"]
end

subgraph group_conversion["Bitmap conversion"]
  node_main["Generator entry<br/>[Main.java]"]
  node_render["Glyph renderer<br/>[Main.java]"]
  node_pixels["Pixel encoder<br/>[Main.java]"]
  node_header["Header writer<br/>[Main.java]"]
  node_header8["8×8 header sample"]
end

subgraph group_font["Font inspection"]
  node_fontreader["TTF inspector<br/>[TtfCharReader.java]"]
end

node_user(("User"))

node_user -->|"runs"| node_main
node_main -->|"reads sets"| node_characters
node_main -->|"renders glyph"| node_render
node_render -->|"encodes pixels"| node_pixels
node_main -->|"writes header"| node_header
node_header -.->|"example output"| node_header8
node_user -.->|"runs"| node_fontreader

click node_main "https://github.com/robinkumar5986/character-to-bits/blob/main/Main.java"
click node_characters "https://github.com/robinkumar5986/character-to-bits/blob/main/CharactersContainers.java"
click node_render "https://github.com/robinkumar5986/character-to-bits/blob/main/Main.java"
click node_pixels "https://github.com/robinkumar5986/character-to-bits/blob/main/Main.java"
click node_header "https://github.com/robinkumar5986/character-to-bits/blob/main/Main.java"
click node_header8 "https://github.com/robinkumar5986/character-to-bits/blob/main/ASSAME_CHARACTERS_8x8.h"
click node_fontreader "https://github.com/robinkumar5986/character-to-bits/blob/main/TtfCharReader.java"

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_characters,node_user toneBlue
class node_main,node_render,node_pixels,node_header,node_header8 toneAmber
class node_fontreader toneMint
```

## Components

### Character sets

- [Character sets](https://github.com/robinkumar5986/character-to-bits/blob/main/CharactersContainers.java): `CharactersContainers.java`

### Bitmap conversion

- [Generator entry](https://github.com/robinkumar5986/character-to-bits/blob/main/Main.java): `Main.java`
- [Glyph renderer](https://github.com/robinkumar5986/character-to-bits/blob/main/Main.java): `Main.java`
- [Pixel encoder](https://github.com/robinkumar5986/character-to-bits/blob/main/Main.java): `Main.java`
- [Header writer](https://github.com/robinkumar5986/character-to-bits/blob/main/Main.java): `Main.java`
- [8×8 header sample](https://github.com/robinkumar5986/character-to-bits/blob/main/ASSAME_CHARACTERS_8x8.h): `ASSAME_CHARACTERS_8x8.h`

### Font inspection

- [TTF inspector](https://github.com/robinkumar5986/character-to-bits/blob/main/TtfCharReader.java): `TtfCharReader.java`

### Other components

- **User**

## Connections

- User → Generator entry: runs (evidence: `README.md`)
- Generator entry → Character sets: reads sets (evidence: `Main.java`)
- Generator entry → Glyph renderer: renders glyph (evidence: `Main.java`)
- Glyph renderer → Pixel encoder: encodes pixels (evidence: `Main.java`)
- Generator entry → Header writer: writes header (evidence: `Main.java`)
- Header writer → 8×8 header sample: example output (evidence: `README.md`)
- User → TTF inspector: runs (evidence: `TtfCharReader.java`)
