Skip to content

something-Constant/Vector-Font-Rendering-Engine-For-Embedded-MCU

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

48 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

lightweight C Vector Font Rendering Engine For Embedded MCU

Overview

I decided to write the Vector Font because I needed a font with different sizes and optimized for a microcontroller, and there wasn't any clear library that had this feature. In starting this, I have had to write a library for myself, and this repo was born. Currently, it only supports upper-case ASCII, numbers, and some of the necessary symbols, as that is all that is required to write something on a screen.

Features

  • Simulation in Windows using SDL3 & CMD
  • Font 10x10 px
  • All development is in the 'C' programming language.
  • The numeric data type is integer by default
  • Flexibility
    • variable size
    • variable depth
  • support for runtime scaling of fonts
  • quadratic bezier curve

File Index

PC LCD Simulation:

  • PC LCD Simulation/GraphicLCDSimulation.c - Graphics Display Unit Tests in CMD.
  • PC LCD Simulation/SDL_Simulation.c - Graphics Display Unit Tests in SDL.
  • PC LCD Simulation/beziercurve.h - quadratic bezier curve.

Embedded MCU Execution:

  • Embedded MCU Execution/Inc/Font/font_10x10.h - Vector Font.
  • Embedded MCU Execution/Inc/Font/font_render_engine.h - Vector Font Rendering Engine.
  • Embedded MCU Execution/Inc/beziercurve.h - quadratic bezier curve.
  • Embedded MCU Execution/Inc/ssd1306/ssd1306.h - ssd1306 header Library using I2C.
  • Embedded MCU Execution/Inc/ssd1306/ssd1306.h - ssd1306 source Library using I2C.
  • Embedded MCU Execution/Src/main.c - Test Application using HAL library for STM32F1XX.

Gallery

CDM simulation test

image

CDM Font scaling

image

CDM Bezier curve

image

SDL Bezier curve

image image

ssd1306 Bezier curve

image image

ssd1306 font

image

ssd1306 font scaling

image image image

ssd1306 Test Application

image

Developed By