Skip to content

Simple character bitmap generator for monochrome LCD.

License

Notifications You must be signed in to change notification settings

karakirimu/FontImageHx

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

54 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FontImageHx

This software can convert installed fonts to binary bitmaps or hexadecimal byte arrays. It was created to simplify the creation of text for monochrome LCDs.

Quick Guide

  1. Select File -> New in Menu

  2. Set the font size, etc., then press the Paste ascii button, followed by the OK button.

  3. The text set (ascii) in the table is displayed. it can edit by row selection. The left area is updated by pressing Update.

   4. It can export to C-header or Bitmap image from File -> Export.

Hexadecimal Output

Horizontal

White in the width direction of a binary image is represented as 1 and black as 0. 8px worth of information is packed into a single byte. If the width is not divisible by 8, it is stored left-justified.

Example

5x4 px (WxH)
□■□■□ -> 0x50,
□■□■□ -> 0x50,
□■■■□ -> 0x70,
□□□□□ -> 0x00

12x12 px
□□□□□□□□□□□□ -> 0x00,0x00,
□□□□□□■□□□□□ -> 0x02,0x00,
□□□□■■□■□□□□ -> 0x0D,0x00,
□□□□■□□□■□□□ -> 0x08,0x80,
□□□□■□□□■□□□ -> 0x08,0x80,
□□□□■□□■■□□□ -> 0x09,0x80,
□□□□□■■□■□□□ -> 0x06,0x80,
□□□□□□□□■□□□ -> 0x00,0x80,
□□□□□□□■□□□□ -> 0x01,0x00,
□□□□■■■□□□□□ -> 0x0E,0x00,
□□□□□□□□□□□□ -> 0x00,0x00,
□□□□□□□□□□□□ -> 0x00,0x00

Vertical

The color definition is the same as horizontal, but the orientation of the binary image compression has changed.

Example

5x4 px (WxH)
----> 
□■□■□
□■□■□
□■■■□
□□□□□
||||+-> 0x00, (□□□□□)
|||+--> 0xE0, (■■■□□)
||+---> 0x20, (□□■□□)
|+----> 0xE0, (■■■□□)
+-----> 0x00, (□□□□□)


12x12 px
----------->
□□□□□□□□□□□□
□□□□□□■□□□□□
□□□□■■□■□□□□
□□□□■□□□■□□□
□□□□■□□□■□□□
□□□□■□□■■□□□
□□□□□■■□■□□□
□□□□□□□□■□□□
□□□□□□□■□□□□
□□□□■■■□□□□□
□□□□□□□□□□□□
□□□□□□□□□□□□
|||||||||||+-> 0x00,0x00, (□□□□□□□□□□□□)
||||||||||+--> 0x00,0x00, (□□□□□□□□□□□□)
|||||||||+---> 0x00,0x00, (□□□□□□□□□□□□)
||||||||+----> 0x1F,0x00, (□□□■■■■■□□□□)
|||||||+-----> 0x24,0x80, (□□■□□■□□■□□□)
||||||+------> 0x42,0x40, (□■□□□□■□□■□□)
|||||+-------> 0x22,0x40, (□□■□□□■□□■□□)
||||+--------> 0x3C,0x40, (□□■■■■□□□■□□)
|||+---------> 0x00,0x00, (□□□□□□□□□□□□)
||+----------> 0x00,0x00, (□□□□□□□□□□□□)
|+-----------> 0x00,0x00, (□□□□□□□□□□□□)
+------------> 0x00,0x00, (□□□□□□□□□□□□)

Installation

Download the zip file from Release, extract and run it. .NET 6.0 runtime is required.

Environment

  • NET 6.0
  • Built on Any CPU profile
  • Windows 11 pro 22H2

License

  • MIT License

About

Simple character bitmap generator for monochrome LCD.

Resources

License

Stars

Watchers

Forks

Packages

No packages published

Languages