Skip to content

Convert characters into binary matrix based on their shape

Notifications You must be signed in to change notification settings

jiesutd/FontBitmap

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

FontBitMap

Giving the characters, it generate the 16x16 binary matrix of the characters shape.

It also provide some tedious demos.

alt text

  • demo_show_string: show the binary maps of the giving string,
  • demo_similar_char: find the similar characters of giving character and the (left,right,up,down) choice with the split position. The demo "demo_similar_char("蛤", 6, "left")" mean find all characters which have the same first 3 lines of the char "蛤". If will first show the binary map of the given base_character, matched results will be shown after you close the map. (Or just comment out line 172 to jump the show map process)

File SimSun-16.bdf is the font file, which can be found in Windows/Fonts/xx.ttc, then use FontForge to convert into .bdf file.

About

Convert characters into binary matrix based on their shape

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages