Update generate_font.py to produce 8-bit alpha maps instead of 1-bit packed bitmaps. This enables text smoothing (anti-aliasing) during framebuffer rendering by providing pixel intensity values (0-255). Key changes: - Switch PIL image mode from "1" (monochrome) to "L" (8-bit grayscale). - Change C data type from uint32_t bit-packed rows to uint8_t byte arrays. - Implement vertical centering logic using font metrics (ascent/descent). - Add glyph clipping detection and warnings for both width and height. - Format C output so each source line represents one glyph row. Change-Id: Iec8a0123456789abcdef0123456789abcdef0123 Signed-off-by: Subrata Banik <subratabanik@google.com> Reviewed-on: https://review.coreboot.org/c/coreboot/+/91178 Reviewed-by: Kapil Porwal <kapilporwal@google.com> Tested-by: build bot (Jenkins) <no-reply@coreboot.org> |
||
|---|---|---|
| .. | ||
| generate_font.py | ||