Install WenQuanYi Bitmap Font on Debian

  • by ailantian

sorry I have not much time,and no fcitx

so simply.

for debian stable,as it doent have package xfonts-wqy.

first download wqy-bitmapfont-pcf-0.6.9.tar.gz

then extract your files.

#tar zxvf wqy-bitmapfont-pcf-0.6.9.tar.gz

#cd wqy-bitmapfont

make sure you are root

#mkdir -p //usr/share/fonts/bitmap/wenquanyi

#cp *.pcf //usr/share/fonts/bitmap/wenquanyi

#fc-cache -f -v

fc-cache: "/usr/share/fonts": caching, 0 fonts, 2 dirs

fc-cache: "/usr/share/fonts/truetype": caching, 0 fonts, 2 dirs

fc-cache: "/usr/share/fonts/truetype/arphic": caching, 2 fonts, 0 dirs

fc-cache: "/usr/share/fonts/truetype/ttf-bitstream-vera": caching, 10 fonts, 0 dirs

fc-cache: "/usr/share/fonts/bitmap": caching, 0 fonts, 1 dirs

fc-cache: "/usr/share/fonts/bitmap/wenquanyi": caching, 8 fonts, 0 dirs

fc-cache: "/usr/X11R6/lib/X11/fonts": caching, 0 fonts, 7 dirs

fc-cache: "/usr/X11R6/lib/X11/fonts/misc": caching, 55 fonts, 0 dirs

fc-cache: "/usr/X11R6/lib/X11/fonts/util": caching, 0 fonts, 0 dirs

fc-cache: "/usr/X11R6/lib/X11/fonts/75dpi": caching, 397 fonts, 0 dirs

fc-cache: "/usr/X11R6/lib/X11/fonts/Type1": caching, 9 fonts, 0 dirs

fc-cache: "/usr/X11R6/lib/X11/fonts/Speedo": caching, 0 fonts, 0 dirs

fc-cache: "/usr/X11R6/lib/X11/fonts/encodings": caching, 0 fonts, 1 dirs

fc-cache: "/usr/X11R6/lib/X11/fonts/encodings/large": caching, 0 fonts, 0 dirs

fc-cache: "/usr/X11R6/lib/X11/fonts/100dpi": caching, 397 fonts, 0 dirs

fc-cache: "/usr/local/share/fonts": caching, 0 fonts, 0 dirs

fc-cache: "/root/.fonts": skipping, no such directory

fc-cache: succeeded


vaxx:/soft/wqy-bitmapfont#cd /usr/share/fonts/bitmap/wenquanyi


fonts.cache-1        wenquanyi_11ptb.pcf  wenquanyi_12pt.pcf

wenquanyi_10ptb.pcf  wenquanyi_11pt.pcf   wenquanyi_9ptb.pcf

wenquanyi_10pt.pcf   wenquanyi_12ptb.pcf  wenquanyi_9pt.pcf


vaxx:/usr/share/fonts/bitmap/wenquanyi# mkfontdir


vaxx:/usr/share/fonts/bitmap/wenquanyi# ls


fonts.cache-1        wenquanyi_11ptb.pcf  wenquanyi_9ptb.pcf


fonts.dir            wenquanyi_11pt.pcf   wenquanyi_9pt.pcf


wenquanyi_10ptb.pcf  wenquanyi_12ptb.pcf

wenquanyi_10pt.pcf   wenquanyi_12pt.pcf

vaxx:/usr/share/fonts/bitmap/wenquanyi# cp fonts.dir fonts.scale


vaxx:/usr/share/fonts/bitmap/wenquanyi#vi /etc/X11/XF86Config-4

add a line like this 
      FontPath        "/usr/share/fonts/bitmap/wenquanyi"


vaxx:/usr/share/fonts/bitmap/wenquanyi# cd /etc/fonts/conf.d/

vaxx:/etc/fonts/conf.d# ls

30-debconf-no-bitmaps.conf  no-sub-pixel.conf  unhinted.conf

autohint.conf               sub-pixel.conf     yes-bitmaps.conf

no-bitmaps.conf             ttf-arphic-uming

vaxx:/etc/fonts/conf.d# unlink 30-debconf-no-bitmaps.conf

vaxx:/etc/fonts/conf.d# ls

autohint.conf    no-sub-pixel.conf  ttf-arphic-uming  yes-bitmaps.conf

no-bitmaps.conf  sub-pixel.conf     unhinted.conf

vaxx:/etc/fonts/conf.d#

restart your X

vaxx:~#

some photos