94xhn f5b3af8379 Return success after otf2bdf writes a complete font
generate_font returned fprintf's positive character count after writing
ENDFONT. main passes that value to exit(), so a valid conversion produced
a complete BDF but reported status 8 to shells and build scripts.

Normalize a successful final write to zero while retaining a negative
result when fprintf reports EOF.

Constraint: generate_font's return value becomes the process exit status.
Rejected: Return zero unconditionally | that would hide failure of the final ENDFONT write.
Confidence: high
Scope-risk: narrow
Directive: Keep successful host-tool conversion at exit status zero without masking output errors.
Tested: baseline valid conversion exit 8; fixed conversion exit 0; BDF byte-identical; GCC -Werror build; ASan/UBSan with Abel and FreeUniversal; missing input exit 1; git diff --check
Not-tested: native Windows FreeType build
2026-07-14 22:51:31 +08:00
2026-05-17 11:27:25 +02:00
2026-06-27 15:50:57 +02:00
pdf
2025-11-09 19:19:39 +01:00
2026-06-27 15:50:57 +02:00
2022-04-13 12:58:15 +03:00
2020-02-26 12:36:59 +00:00
2020-02-26 12:36:59 +00:00
2026-06-27 15:50:57 +02:00
2022-01-07 23:18:05 +01:00
2024-08-21 22:23:33 +02:00

Gitpod Ready-to-Code

https://raw.githubusercontent.com/wiki/olikraus/u8g2/ref/u8g2_logo_transparent_orange.png

U8g2: Library for monochrome displays, version 2

U8g2 is a monochrome graphics library for embedded devices. U8g2 supports monochrome OLEDs and LCDs, which include the following controllers: SSD1305, SSD1306, SSD1309, SSD1312, SSD1316, SSD1318, SSD1320, SSD1322, SSD1325, SSD1327, SSD1329, SSD1606, SSD1607, SH1106, SH1107, SH1108, SH1122, T6963, RA8835, LC7981, PCD8544, PCF8812, HX1230, UC1601, UC1604, UC1608, UC1610, UC1611, UC1617, UC1638, UC1701, ST7511, ST7528, ST7565, ST7567, ST7571, ST7586, ST7588, ST75160, ST75256, ST75320, NT7534, ST7920, IST3020, IST3088, IST7920, LD7032, KS0108, KS0713, HD44102, T7932, SED1520, SBN1661, IL3820, MAX7219, GP1287, GP1247, GU800 (see here for a full list).

The Arduino library U8g2 can be installed from the library manager of the Arduino IDE. U8g2 also includes U8x8 library:

  • U8g2
    • Includes all graphics procedures (line/box/circle draw).
    • Supports many fonts. (Almost) no restriction on the font height.
    • Requires some memory in the microcontroller to render the display.
  • U8x8
    • Text output only (character) device.
    • Only fonts allowed with fit into a 8x8 pixel grid.
    • Writes directly to the display. No buffer in the microcontroller required.

Setup Guide and Reference Manual

S
Description
U8glib library for monochrome displays, version 2
Readme BSD-2-Clause
234 MiB
Languages
C 91.5%
C++ 7.4%
Uno 0.7%
Makefile 0.2%
Linker Script 0.1%