Simple to take lattice font program under Linux

Source: Internet
Author: User

Source: Simple to take lattice font program under Linux

Linux operating system for the simple graphics development, often use the font-fetching software, but Linux is not as small as Windows tools available, we do not want to take the font and frequently switch the operating system.(because it is written entirely in C, it does not require any modification, this font can also be used in the embedded environment under the Windows operating system)

I combine the information on the Internet, to summarize this problem, collated the code, for the needs of friends to use my reference. Reprint please specify the Source:http://blog.csdn.net/weiwang876253631/article/details/8824858

< Span style= "-ms-word-wrap:break-word;" > introduction
         all of the code in the attachment of the package, compressed package directory such as. Specific operating instructions after the decompression, you can read the Readme file.

< BR style= "LINE-HEIGHT:18PX; font-family: ' sans serif ', tahoma,verdana,helvetica; -ms-word-wrap:break-word; " >

Ii. examples

1. For example, to take the Chinese character "mold" of the font, only need to enter the following command to



2. To take the character ' H ' font, just do the following.



third, the use of instructions
This directory contains a Chinese character library HZK16 (16*16 dot matrix) and an ASCII font ASCII_ZK (8*16 lattice) phase
Related Information

1. The Chinese character library is downloaded directly on the Internet, the ASCII font is produced by itself and the process is as follows:
1) Compile and run get_ascii.c, get Ascii.txt
2) using the Windows font extraction software to convert the contents of Ascii.txt into a code.txt matrix, conversion requirements
is the width height of 8*16, and each byte of the extracted result is separated by commas.
3) Remove the carriage return newline in code.txt, and change the last comma to a full stop (that is, Dot, 0x2e) .
Save As Ascii_zk.txt
4) Convert valid data in Ascii_zk.txt (i.e., remove comma, period, and data after 0x head)
as a binary file, the procedure is to compile and run txt2bin.c and get a binary file named Ascii_zk

2. Use of the font
1) Execute make to get the executable file named Zimo
2) If you want to get the 16*16 font of Chinese characters, check the gb2312.pdf, find the corresponding location code, such as "modulo" word
The location code is 36, 03, and then runs./zimo H 36 03 to get data and previews, where H denotes kanji
3) If you want to get the ASCII character of the 8*16 matrix, such as the ' d ' font, run./zimo a D to get the data
And previews, where a represents the ASCII character, differs from the h above, some characters that need to be escaped, use \ to go
such as./zimo a \|, you get | The font data

Accessories: Linux_zk.tar.gz

Simple to take lattice font program under Linux

Contact Us

The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion; products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the content of the page makes you feel confusing, please write us an email, we will handle the problem within 5 days after receiving your email.

If you find any instances of plagiarism from the community, please send an email to: info-contact@alibabacloud.com and provide relevant evidence. A staff member will contact you within 5 working days.

A Free Trial That Lets You Build Big!

Start building with 50+ products and up to 12 months usage for Elastic Compute Service

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.