Subject: Print chinese Characters

From: Xiaodan Tang <[email-masked]>
Date: Wed, 25 Aug 1993 16:33:35 JST

>in the next 32 contigous bytes? How to arrange the 32 bytes (row first or
 col.
   >first) to get the character? What is the exact stored format of the cclib
   >files?
   >

For using 16x16 font, suppose you have prevcode and nextcode which stands
for the First and Second Char of a GB code. (In you example, prevcode
will be C3 and nextcode will be D7) You can use such formular:

        if (prevcode > 0xa9)
            prevcode -= 6;

        offset = (long)(((prevcode - 0xa1) * 94 + (nextcode -0xa1)) * 32);

you can use offset is fseek to get the next 32 byte bitmap. The bitmap
is arranged as:
        Byte1   Byte2
        Byte3   Byte4
        ............
        Byte31  Byte32

Because of in standard GB, "section 10" to "section 16" is blank, so
many 16x16 fonts jumped these section, it means in font lib "section 16"
is offseted at "section 10", so you need an IF to find such case.

By the way, some old 16x16 fontlib set "section 9" as "section 6", and
"section 16" as "section 7". In this case, you need to change you program.

Another point is many 24x24 fonts are for Printing GB code on 24 dot printer.
So the 72 byte is arranged as
        Byte1   Byte4 .......   Byte70
        Byte2                   Byte71
        Byte3                   Byte72

Hope All the information over is useful.

Xiaodan Tang                            Tel   : (81)-3-3293-4717
OpenSystem Division                     Fax   : (81)-3-3293-4725
LIFEBOAT, Inc. Tokyo, Japan             E-mail: [email-masked]