A console driven malayalam language editor. Serves as a reference to basics of bit mapping. Suits as a high school project or mid term project for undergraduate courses.
Download : Code | Windows Binaries
Note: Given on as is basis. Uses plain array as the character buffer – using a linked list would make it faster and can help reduce the flicker. Last successful compilation done almost a decade before.
If you want to create your own font for other languages, heres how –
- Make a cross reference of characters and the ascii of the keyboard button to relate that to.
- Get a “square line” book. ( one we used for doing maths at lower primary school)
- Reserve each page for each character.
- On a page outline a rectangle having 16 squares horizontally and 10 squares vertically.
- Draw each character inside the above rectangle.
- Mark “1”s in all squares where the character’s edges pass through. ( the blank boxes can be imagined as zeroes). Now each character can be seen as 10 lines each having 16 ones or zeroes. This is the bitmap of the character, to be entered in the font-maker later.
- Do the above in a new page for each of the characters in the serial order defined in the cross reference.
- Compile and run fntmaker.cpp. Give any name for font file when prompted. Add each character as 10 lines of 1s and 0s (using the interactive menu).
- Compile and run refmkr.cpp. Give any name for the reference file when prompted. Enter each of the character to ascii mapping created in step 1.
- Rename the font file to font1 and ascii-to-character reference file to ref.