你這個要加字庫進去的,有一個這個文件charcode.h
#ifndef __CHARCODE_H
#define __CHARCODE_H
#ifdef CHAR_CODE
// ------------------ 漢字字模的數(shù)據(jù)結(jié)構(gòu)定義 ------------------------ //
struct Cn16CharTypeDef // 漢字字模數(shù)據(jù)結(jié)構(gòu)
{
unsigned char Index[2]; // 漢字內(nèi)碼索引,一個漢字占兩個字節(jié)
unsigned char Msk[32]; // 點陣碼數(shù)據(jù)(16*16有32個數(shù)據(jù))
};
struct Cn16CharTypeDef code CN16CHAR[]=
{
/*-- 文字: 普 --*/
/*-- 宋體12; 此字體下對應(yīng)的點陣為:寬x高=16x16 --*/
"普",0x00,0x40,0x44,0x54,0x64,0x45,0x7E,0x44,0x44,0x44,0x7E,0x45,0x64,0x54,0x44,0x40,
0x00,0x00,0x00,0x00,0xFF,0x49,0x49,0x49,0x49,0x49,0x49,0x49,0xFF,0x00,0x00,0x00,
/*-- 文字: 中 --*/
/*-- 宋體12; 此字體下對應(yīng)的點陣為:寬x高=16x16 --*/
"中",0x00,0x00,0xFC,0x08,0x08,0x08,0x08,0xFF,0x08,0x08,0x08,0x08,0xFC,0x08,0x00,0x00,
0x00,0x00,0x07,0x02,0x02,0x02,0x02,0xFF,0x02,0x02,0x02,0x02,0x07,0x00,0x00,0x00,
/*-- 文字: 科 --*/
/*-- 宋體12; 此字體下對應(yīng)的點陣為:寬x高=16x16 --*/
"科",0x00,0x00,0x00,0xFF,0x00,0x00,0xCC,0x22,0x00,0x91,0x51,0xFE,0x72,0x92,0x12,0x10,
0x00,0x01,0x01,0xFF,0x02,0x02,0x02,0x04,0x04,0x04,0x00,0xFF,0x00,0x01,0x02,0x04,
......
整好后的H文件放入C中。
你應(yīng)該加一下普中的技術(shù)員,他們能幫你搞定
|