China DOS Union

-- Unite DOS · Advance DOS · Grow DOS --

Union site: www.cn-dos.net Forum site: www.cn-dos.net/forum
DOS stands for freedom, openness and progress. Let us work hard, learn from the openness and GNU spirit of FreeDOS and Linux, and together build and grow a free GNU GPL world!

中国DOS联盟论坛
The time now is 2026-06-25 05:17
中国DOS联盟论坛 » DOS汉化世界 & 中文系统 (中文化室) » About the CJK-GB.F16 and HZK16 fonts View 2,027 Replies 10
Original Poster Posted 2003-05-31 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
The GBK font file CJK-GB.F16 that comes with AW97 (CJKDOS) and the HZK16 supported by UCDOS/CCDOS97 (meaning the GBK-font HZK16 file converted by Mr. Mo, not the original GB2312 HZK16 file) have one major similarity: their sizes are exactly the same, both 766,080 bytes, although their contents are different. I just tried swapping them, that is, using the GBK HZK16 in AW97, and putting CJK-GB.F16 into UCDOS, and got an interesting result.

After the swap, both UCDOS and AW97 could start normally, and both could display Chinese characters! However, one glance was enough to tell that although the text shown on the screen was all Chinese characters, it simply could not form sentences. In other words, the displayed Chinese characters were wrong; there was obviously an offset. Taking UCDOS as an example, although a large number of GBK Chinese characters (such as Traditional characters) appeared on the screen, in fact UCDOS still does not support Chinese characters outside GB2312.

My conclusion is that HZK16 and CJK-GB.F16 have the same format, but the encoding seems to be different. So how should this be solved?
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 2 Posted 2003-05-31 00:00 ·  中国 湖南 常德 电信
中级用户
★★
Credits 282
Posts 56
Joined 2002-12-12 00:00
23-year member
UID 487
Gender Male
Status Offline
Yeah, how can this be solved? AW97 can't run under a DOS window, so I can only give it up.
Floor 3 Posted 2003-06-02 00:00 ·  中国 河北 石家庄 联通
银牌会员
★★★
Credits 1,833
Posts 648
Joined 2002-11-08 00:00
23-year member
UID 197
Gender Male
Status Offline
Maybe the structure is different. The GB2312 part should be the same, and then afterward they may use different arrangement methods, but because the included characters are the same and only the order was changed a bit, the size is the same.
Floor 4 Posted 2003-06-04 00:00 ·  中国 广东 佛山 禅城区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
This is a matter of how the dot-matrix information is arranged. Each Chinese character uses a 16*16 dot-matrix structure, with each dot represented by one bit, so each character takes 32 bytes. But some Chinese fonts take the information from top to bottom, that is, row 1, row 2 ... row 16. Some Chinese fonts, however, use a left-to-right method, that is, column 1, column 2 ... 16 columns. So fonts from different Chinese character support systems are not necessarily interchangeable.
Everyone can try swapping the fonts of PDOS95 and UCDOS/CCDOS. The Chinese characters you see will be totally unrecognizable, because they use different methods of reading the dot-matrix information in their fonts.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 5 Posted 2003-06-04 00:00 ·  美国 肯塔基州 费耶特县 列克星敦 Charter_Communications
系统支持
★★★★★★
“新DOS时代”站长
Credits 27,736
Posts 10,521
Joined 2002-10-09 12:00
23-year member
UID 9
Status Offline
Is it possible to write a font conversion program? I want to use GB2312 and BIG5 fonts in AW97.
Wengier - 新DOS时代

欢迎大家来到我的“新DOS时代”网站,里面有各类DOS软件和资料,地址:
http://wendos.mycool.net/

E-Mail & MSN: wengierwu AT hotmail.com (最近比较忙,有事请联系DOSroot和雨露,谢谢!)

Floor 6 Posted 2003-12-31 00:00 ·  中国 湖南 株洲 电信
初级用户
Credits 103
Posts 4
Joined 2003-12-31 00:00
22-year member
UID 14695
Gender Male
Status Offline
I think it is caused by the different encodings of gb and big5. The way 16*16 dot matrices are read is the same. You can use the
method for reading fonts and building small fonts to convert them separately.
Floor 7 Posted 2004-01-01 00:00 ·  中国 广东 佛山 三水区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
Writing a conversion program should be feasible. Just read out the dot-matrix structure of each character and then convert it, but this is actually of no use. The key is not the font structure but how the Chinese character support system processes the font according to the internal encoding.
For example, with a 16*16 dot-matrix font, row (or column) 1 is represented by two bytes (one byte represents 8 dots, 0 means no dot and 1 means a dot), then multiplied by 16 rows (or columns), that is 32 bytes, turning it into dot-matrix data, and then converting it into another font structure format will do.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Floor 8 Posted 2004-08-01 00:00 ·  美国 加利福尼亚州 洛杉矶
初级用户
Credits 166
Posts 26
Joined 2004-07-22 00:00
21-year member
UID 28781
Gender Male
Status Offline
The following is quoted from mys's post on 2003-6-4 07:31:29:
This is a matter of how the dot-matrix information is arranged. Each Chinese character uses a 16*16 dot-matrix structure, with each dot represented by one bit, so each character takes 32 bytes. But some Chinese fonts take the information from top to bottom, that is, row 1, row 2 ... row 16. Some Chinese fonts, however, use a left-to-right method, that is, column 1, column 2 ... 16 columns. So fonts from different Chinese character support systems are not necessarily interchangeable.
Everyone can try swapping the fonts of PDOS95 and UCDOS/CCDOS. The Chinese characters you see will be totally unrecognizable, because they use different methods of reading the dot-matrix information in their fonts.

That CHS16.FON in PDOS95 is the same as UCDOS's HZK16; both are arranged by rows and can be swapped.
It seems that UCDOS's 24-dot font is arranged by columns.
Floor 9 Posted 2004-08-05 00:00 ·  中国 湖北 襄阳 电信
初级用户
Credits 104
Posts 2
Joined 2004-08-05 00:00
21-year member
UID 29698
Gender Male
Status Offline
Where can I find that GBK-font HZK16 converted by Mr. Mo? I urgently need it!!
Floor 10 Posted 2004-08-05 00:00 ·  中国 辽宁 抚顺 联通
银牌会员
★★★
Credits 1,186
Posts 510
Joined 2004-07-30 00:00
21-year member
UID 29279
Gender Male
Status Offline
The admin's post is really educational. How did I not notice it!
Floor 11 Posted 2004-08-09 00:00 ·  中国 广东 佛山 三水区 电信
元老会员
★★★★
Credits 5,170
Posts 1,637
Joined 2002-10-16 00:00
23-year member
UID 8
Gender Male
From 广东佛山
Status Offline
The 16-dot font I have was taken from UCWIN GOLD. It can directly replace HZK16 in UCDOS/CCDOS97, it just can't display GBK Chinese characters. That's a limitation of the system itself.
我的网志
http://hzmys.blog.163.com/
我的网盘
firststep.qjwm.com
fsmys.ys168.com
ssmys.ys168.com
www.brsbox.com/fsmys
www.brsbox.com/ssmys
www.brsbox.com/ccdos
Forum Jump: