You are not logged in.

#1 2016-02-06 07:24:55

kso
Member
Registered: 2014-11-09
Posts: 15

How to install Chinese Clerical Script Font from HDZB_7.TTF file.

Hi, I am having trouble trying to install the Chinese font HDZB_7.TTF.

From
http://www.certifiedchinesetranslation. … inese.html

I download the HDZB_7.TTF font:

$ wget http://www.certifiedchinesetranslation.com/fonts/HDZB_7.TTF

Then I try installing it using:

$ chmod a+r HDZB_7.TTF

# cp HDZB_7.TTF /usr/share/fonts/TTF
# fc-cache -svf /usr/share/fonts/TTF

Then after rebooting the machine, I can not find the HDZB_7 font in LibreOffice Writer.

When I check using

$ fc-cat | grep -i hdzb
...
"HDZB_7.TTF" 0 "䡡湄楮札䍓ⵆ潮瑳:familylang=zh-cn:style=Regular:stylelang=zh-cn:fullname=䡡湄楮札䍓ⵆ潮瑳:fullnamelang=zh-cn:slant=0:weight=80:width=100:spacing=100:foundry=unknown:index=0:outline=True:scalable=True:charset=:lang=:fontversion=0:fontformat=TrueType:decorative=False:hash=sha256\\:49b9cff7bcf38341598c5738c8b9a7e7e5b212aaa24cc03d99f96e9ce4359cc1:postscriptname=䡡湄楮札䍓ⵆ潮瑳"

... then when I go to LibreOffice Writer and select the font name 䡡湄楮札䍓ⵆ潮瑳, the font does not look like the sample Clerical Script Font Characters shown on their website.

So next I try gnome-font-viewer. First I install gnome-font-viewer:

$ pacman -S gnome-font-viewer

Then I try it on the HDZB_7 font:

$ gnome-font-viewer HDZB_7.TTF

(gnome-font-viewer:6435): Pango-CRITICAL **: pango_find_base_dir: assertion 'text != NULL || length == 0' failed
Segmentation fault (core dumped)

So then I found this post saying how someone fixed these Pango-CRITICAL errors using pango-querymodules:
https://menzonius.wordpress.com/2006/08 … -in-gnome/

However the current version of pango is 1.38.1:

$ pacman -Ss pango
extra/pango 1.38.1-1 [installed]
    A library for layout and rendering of text

... but it seems that since version 1.38.0 pango no longer has pango-querymodules:
https://github.com/Homebrew/homebrew/issues/44764

Has anyone had this problem before? Thanks in advance! smile

Offline

#2 2016-02-06 08:59:33

x33a
Forum Fellow
Registered: 2009-08-15
Posts: 4,587

Re: How to install Chinese Clerical Script Font from HDZB_7.TTF file.

kso wrote:

Then I try it on the HDZB_7 font:

$ gnome-font-viewer HDZB_7.TTF

(gnome-font-viewer:6435): Pango-CRITICAL **: pango_find_base_dir: assertion 'text != NULL || length == 0' failed
Segmentation fault (core dumped)

So then I found this post saying how someone fixed these Pango-CRITICAL errors using pango-querymodules:
https://menzonius.wordpress.com/2006/08 … -in-gnome/

However the current version of pango is 1.38.1:

$ pacman -Ss pango
extra/pango 1.38.1-1 [installed]
    A library for layout and rendering of text

... but it seems that since version 1.38.0 pango no longer has pango-querymodules:
https://github.com/Homebrew/homebrew/issues/44764

I don't think it has anything to do with Pango. Searching the net shows many instances of gnome-font-viewer crashing.

This one might be of interest to you: https://bugzilla.gnome.org/show_bug.cgi?id=751759

Edit: Moving to "Applications and Desktop Environments".

Last edited by x33a (2016-02-06 09:22:32)

Offline

#3 2016-02-08 09:29:35

kso
Member
Registered: 2014-11-09
Posts: 15

Re: How to install Chinese Clerical Script Font from HDZB_7.TTF file.

Hi x33a,
Thanks for your help. I have now found an alternative font "HanWangLiSuMedium - wt021.ttf - Traditional" from here:

http://www.wildboar.net/multilingual/as … osoft.html

This will solve my problem as it works on Arch Linux! I am going to mark this thread as solved! smile

Offline

Board footer

Powered by FluxBB