📄
字号:
<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<!-- saved from url=(0043)http://www.cscce.net/fsp/tdata/cc_font.html -->
<HTML xmlns="http://www.w3.org/TR/REC-html40" xmlns:o =
"urn:schemas-microsoft-com:office:office" xmlns:w =
"urn:schemas-microsoft-com:office:word"><HEAD><TITLE>汉字点阵显示程序</TITLE>
<META http-equiv=Content-Type content="text/html; charset=GB2312">
<META content=Word.Document name=ProgId>
<META content="MSHTML 6.00.3790.118" name=GENERATOR>
<META content="Microsoft Word 9" name=Originator><LINK
href="./cc_font.files/filelist.xml" rel=File-List><!--[if gte mso 9]><xml>
<o:DocumentProperties>
<o:Author>傅叔平</o:Author>
<o:LastAuthor>傅叔平</o:LastAuthor>
<o:Revision>2</o:Revision>
<o:TotalTime>3</o:TotalTime>
<o:Created>2002-03-31T08:49:00Z</o:Created>
<o:LastSaved>2002-03-31T08:52:00Z</o:LastSaved>
<o:Pages>2</o:Pages>
<o:Words>230</o:Words>
<o:Characters>1312</o:Characters>
<o:Company>成都教育学院</o:Company>
<o:Lines>10</o:Lines>
<o:Paragraphs>2</o:Paragraphs>
<o:CharactersWithSpaces>1611</o:CharactersWithSpaces>
<o:Version>9.2812</o:Version>
</o:DocumentProperties>
<o:OfficeDocumentSettings>
<o:DoNotRelyOnCSS/>
<o:PixelsPerInch>72</o:PixelsPerInch>
</o:OfficeDocumentSettings>
</xml><![endif]--><!--[if gte mso 9]><xml>
<w:WordDocument>
<w:PunctuationKerning/>
<w:DrawingGridVerticalSpacing>7.8 磅</w:DrawingGridVerticalSpacing>
<w:DisplayHorizontalDrawingGridEvery>0</w:DisplayHorizontalDrawingGridEvery>
<w:DisplayVerticalDrawingGridEvery>2</w:DisplayVerticalDrawingGridEvery>
<w:Compatibility>
<w:SpaceForUL/>
<w:BalanceSingleByteDoubleByteWidth/>
<w:DoNotLeaveBackslashAlone/>
<w:ULTrailSpace/>
<w:DoNotExpandShiftReturn/>
<w:AdjustLineHeightInTable/>
<w:UseFELayout/>
</w:Compatibility>
</w:WordDocument>
</xml><![endif]-->
<STYLE>@font-face {
font-family: 宋体;
}
@font-face {
font-family: @宋体;
}
@page {mso-page-border-surround-header: no; mso-page-border-surround-footer: no; }
@page Section1 {size: 595.3pt 841.9pt; margin: 72.0pt 90.0pt 72.0pt 90.0pt; mso-header-margin: 42.55pt; mso-footer-margin: 49.6pt; mso-paper-source: 0; layout-grid: 15.6pt; }
P.MsoNormal {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify; mso-bidi-font-size: 12.0pt; mso-style-parent: ""; mso-pagination: none; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt
}
LI.MsoNormal {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify; mso-bidi-font-size: 12.0pt; mso-style-parent: ""; mso-pagination: none; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt
}
DIV.MsoNormal {
TEXT-JUSTIFY: inter-ideograph; FONT-SIZE: 10.5pt; MARGIN: 0cm 0cm 0pt; FONT-FAMILY: "Times New Roman"; TEXT-ALIGN: justify; mso-bidi-font-size: 12.0pt; mso-style-parent: ""; mso-pagination: none; mso-fareast-font-family: 宋体; mso-font-kerning: 1.0pt
}
DIV.Section1 {
page: Section1
}
</STYLE>
</HEAD>
<BODY lang=ZH-CN style="TEXT-JUSTIFY-TRIM: punctuation; tab-interval: 21.0pt">
<DIV class=Section1 style="LAYOUT-GRID: 15.6pt none">
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN
style="mso-bidi-font-size: 12.0pt">/*<o:p></o:p></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt"><SPAN
style="mso-spacerun: yes"> </SPAN>=========================================================<o:p></o:p></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt"><SPAN
style="mso-spacerun: yes"> </SPAN></SPAN></SPAN></FONT><FONT face=宋体><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">汉字点阵显示程序</SPAN></FONT></P>
<P class=MsoNormal
style="TEXT-INDENT: 21pt; mso-char-indent-count: 2.0; mso-char-indent-size: 10.5pt"><FONT
face=宋体 size=2><SPAN
style="FONT-SIZE: 10.5pt; FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'"><SPAN
style="mso-bidi-font-size: 12.0pt">读取汉字</SPAN></SPAN></FONT><SPAN
lang=EN-US>16</SPAN><FONT face=宋体><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">×</SPAN></FONT><SPAN
lang=EN-US>16</SPAN><FONT face=宋体><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">点阵</SPAN></FONT><SPAN
lang=EN-US><o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt"><SPAN
style="mso-spacerun: yes"> </SPAN></SPAN></SPAN></FONT><FONT face=宋体><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">源文件名</SPAN></FONT><SPAN
lang=EN-US>: CC_FONT.CPP<o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt"><SPAN
style="mso-spacerun: yes"> </SPAN>Shuping Fu<SPAN style="mso-spacerun: yes">
</SPAN>Chengdu College of Education<SPAN style="mso-spacerun: yes"> </SPAN>Jan
1993<o:p></o:p></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt"><SPAN
style="mso-spacerun: yes"> </SPAN>=========================================================<o:p></o:p></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN
style="mso-bidi-font-size: 12.0pt">*/<o:p></o:p></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><![if !supportEmptyParas]><![endif]> </SPAN><SPAN
lang=EN-US><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt">#include
<stdio.h><o:p></o:p></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt">#include
<stdlib.h><o:p></o:p></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt">#include
<ctype.h><o:p></o:p></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt">#include
<string.h><o:p></o:p></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><![if !supportEmptyParas]><![endif]> </SPAN><SPAN
lang=EN-US><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt">FILE
*cclibfp;<o:p></o:p></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><![if !supportEmptyParas]><![endif]> </SPAN><SPAN
lang=EN-US><o:p></o:p></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt">void
ReadCCLIB(unsigned char high,unsigned char low,unsigned char
*buf)<o:p></o:p></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN
style="mso-bidi-font-size: 12.0pt">{<o:p></o:p></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt"><SPAN
style="mso-spacerun: yes"> </SPAN>long p;<o:p></o:p></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt"><SPAN
style="mso-spacerun: yes"> </SPAN>high=high-0xa0;<SPAN
style="mso-spacerun: yes"> </SPAN>/* </SPAN></SPAN></FONT><FONT
face=宋体><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">将内码高字节转换成区位码</SPAN></FONT><SPAN
lang=EN-US> */<o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt"><SPAN
style="mso-spacerun: yes"> </SPAN>low=low-0xa0;<SPAN
style="mso-spacerun: yes"> </SPAN>/* </SPAN></SPAN></FONT><FONT
face=宋体><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">将内码低字节转换成区位码</SPAN></FONT><SPAN
lang=EN-US> */<o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt"><SPAN
style="mso-spacerun: yes"> </SPAN>/*<SPAN style="mso-spacerun: yes">
</SPAN>if(high>=15) high-=6;<SPAN style="mso-spacerun: yes">
</SPAN></SPAN></SPAN></FONT><FONT face=宋体><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">对压缩了</SPAN></FONT><SPAN
lang=EN-US>10-15</SPAN><FONT face=宋体><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">区的字库</SPAN></FONT><SPAN
lang=EN-US>,</SPAN><FONT face=宋体><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">要此句</SPAN></FONT><SPAN
lang=EN-US>.</SPAN><FONT face=宋体><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">如王码系统</SPAN></FONT><SPAN
lang=EN-US> */<o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt"><SPAN
style="mso-spacerun: yes"> </SPAN>p=(long)((high-1)*94+low-1)*32;<SPAN
style="mso-spacerun: yes"> </SPAN>/* </SPAN></SPAN></FONT><FONT face=宋体><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">计算出汉字在汉字库中的起始位置</SPAN></FONT><SPAN
lang=EN-US> */<o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt"><SPAN
style="mso-spacerun: yes"> </SPAN>fseek(cclibfp,p,SEEK_SET);<SPAN
style="mso-spacerun: yes"> </SPAN>/* </SPAN></SPAN></FONT><FONT
face=宋体><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">字库定位</SPAN></FONT><SPAN
lang=EN-US> */<o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN style="mso-bidi-font-size: 12.0pt"><SPAN
style="mso-spacerun: yes"> </SPAN>fread(buf,sizeof(unsigned char),32,cclibfp);
/* </SPAN></SPAN></FONT><FONT face=宋体><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">读字库</SPAN></FONT><SPAN
lang=EN-US>32</SPAN><FONT face=宋体><SPAN
style="FONT-FAMILY: 宋体; mso-ascii-font-family: 'Times New Roman'; mso-hansi-font-family: 'Times New Roman'">个字节</SPAN></FONT><SPAN
lang=EN-US> */<o:p></o:p></SPAN></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
style="FONT-SIZE: 10.5pt"><SPAN
style="mso-bidi-font-size: 12.0pt">}<o:p></o:p></SPAN></SPAN></FONT></P>
<P class=MsoNormal><FONT face="Times New Roman" size=2><SPAN lang=EN-US
⌨️ 快捷键说明
复制代码
Ctrl + C
搜索代码
Ctrl + F
全屏模式
F11
切换主题
Ctrl + Shift + D
显示快捷键
?
增大字号
Ctrl + =
减小字号
Ctrl + -