how to create gohufont_12x22 from gohufont_6x11?
I want to create gohufont 12x22 font.
I have gohufont-11.bdf file. I used bdf2raw tool and created gohufont-11.raw file. The font is 6x11, which means it uses (1 byte for width) X (11 bytes for height) X (256 characters) = 2816 bytes. I want to create 12x22 font. Basically just double the original font in width and height. So, the formula is this. Original 6x11 font is like this: -------- -------- -###---- #---#--- ----#--- ---#---- --#----- -#------ #####--- -------- -------- For every bit in the original font I create 2 bits in the new font. Then i double the line like this: ---------------- ---------------- ---------------- ---------------- --######-------- --######-------- ##------##------ ##------##------ --------##------ --------##------ ------##-------- ------##-------- ----##---------- ----##---------- --##------------ --##------------ ##########------ ##########------ ---------------- ---------------- ---------------- ---------------- That is 12x22 raw file. This is the c program to do the conversion. I called it fd (font doubler). Code:
#include <stdio.h> Code:
./fd < gohufont-11.raw > gohufont-12x22.raw Code:
raw2psf --height=22 --width=12 gohufont-12x22.raw gohufont-12x22.psf Not working. Did I mess up something? Is my C code bad? Sorry for the long post, but how to create gohu_12x22? Can someone help me with this? (original .bdf gohu files are at https://github.com/hchargois/gohufont) |
All times are GMT -5. The time now is 01:38 AM. |