Skip to content

converts a targa containing a font into a 64 bit binary numbers which encodes the chatacter

Notifications You must be signed in to change notification settings

nulface/targa-font-to-binary

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

27 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

targa-font-to-binary

converts a targa containing a font into a 64 bit binary numbers which encodes the chatacter

each character is in an 8x8 pixel cell in the order of ascii characters

Alt Text

Example

Take one of the numbers from the output file and convert it into binary

Alt Text

a new line after every 8 bits will result in the desired image in this case it was the letter H

Alt Text

20345674416015432

in binary is:

1001000010010000100100001111000010010000100100001001000

add new lines and you get

01001000
01001000
01001000
01111000
01001000
01001000
01001000
 #  #   
 #  #   
 #  #   
 ####   
 #  #   
 #  #   
 #  #     

references:

https://www.cplusplus.com/doc/tutorial/files/

Thanks!

About

converts a targa containing a font into a 64 bit binary numbers which encodes the chatacter

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages