[Fontconfig] OpenBSD -current and "xterm -fa 'Courier
New:family=ru'"
Alexander Farber
Alexander.Farber at t-online.de
Sat Jul 19 17:37:48 PDT 2003
Hi,
I'm using OpenBSD/i386 -current with XFree86 Version 4.3.0.
I've installed the "msttcorefonts-1.2" port to get the
"Microsoft TrueType core fonts" in this dir:
newhope:alex {510} ll /usr/local/lib/X11/fonts/mscorefonts/
total 11976
....
608 -r--r--r-- 1 root bin 302688 Jul 19 12:52 cour.ttf
640 -r--r--r-- 1 root bin 311508 Jul 19 12:52 courbd.ttf
480 -r--r--r-- 1 root bin 234788 Jul 19 12:52 courbi.ttf
496 -r--r--r-- 1 root bin 244156 Jul 19 12:52 couri.ttf
....
and also added that path to the /etc/X11/XF86Config:
Section "Files"
RgbPath "/usr/X11R6/lib/X11/rgb"
ModulePath "/usr/X11R6/lib/modules"
FontPath "/usr/local/lib/X11/fonts/mscorefonts/"
....
Section "Module"
Load "dbe"
Load "extmod"
Load "glx"
Load "record"
Load "xtrap"
Load "speedo"
Load "type1"
Load "freetype"
EndSection
and it's also in OpenBSD's /etc/fonts/fonts.conf by default:
<dir>/usr/X11R6/lib/X11/fonts</dir>
<dir>/usr/local/lib/X11/fonts</dir>
<dir>/usr/share/fonts</dir>
<dir>~/.fonts</dir>
Those truetype fonts seem to support the cyrillic charset:
newhope:X11 {519} fc-list :lang=ru | grep -i regular | sort
Andale Mono:style=Regular
Arial Black:style=Regular
Arial:style=Regular
Comic Sans MS:style=Regular
Courier New:style=Regular
....
and I can run xterm with a truetype font: xterm -fa 'Courier New'.
But how could I make xterm display russian letters correctly?
I've tried: xterm -fa 'Courier New:lang=ru' but the russian chars
aren't displayed. Here's the more verbose output:
newhope:alex {505} env FC_DEBUG=1 xterm -fa 'Courier New:lang=ru'
FC_DEBUG=1
Match Pattern 20 of 32
antialias: FcTrue
autohint: FcFalse
dpi: 74.9556
family: "Courier New" "Andale Mono"(w) "Courier New"(w) "Luxi Mono"(w) "Nimbus Mono L"(w) "Kochi Gothic"(w) "AR PL KaitiM GB"(w) "Baekmuk Dotum"(w) "monospace"(w) "monospace"(w)
fontversion: 2147483647
globaladvance: FcTrue
hinting: FcTrue
lang: langset
maxglyphmemory: 1048576
minspace: FcFalse
pixelsize: 14.5747
prefer_outline: FcTrue(w)
render: FcTrue
rgba: 0
scale: 1
size: 14
slant: 0
spacing: 100
verticallayout: FcFalse
weight: 100
Best score 0 0 0 0 2 0 0 0 0 0 0 0 0 2.1473e+11Pattern 12 of 12
charset: set
family: "Courier New"
file: "/usr/local/lib/X11/fonts/mscorefonts/cour.ttf"
fontversion: 184812
index: 0
lang: langset
outline: FcTrue
scalable: FcTrue
slant: 0
spacing: 100
style: "Regular"
weight: 100
Match Pattern 21 of 32
antialias: FcTrue
autohint: FcFalse
charwidth: 9
dpi: 74.9556
family: "Courier New" "Andale Mono"(w) "Courier New"(w) "Luxi Mono"(w) "Nimbus Mono L"(w) "Kochi Gothic"(w) "AR PL KaitiM GB"(w) "Baekmuk Dotum"(w) "monospace"(w) "monospace"(w)
fontversion: 2147483647
globaladvance: FcTrue
hinting: FcTrue
lang: langset
maxglyphmemory: 1048576
minspace: FcFalse
pixelsize: 14.5747
prefer_outline: FcTrue(w)
render: FcTrue
rgba: 0
scale: 1
size: 14
slant: 0
spacing: 100
verticallayout: FcFalse
weight: 200
Best score 0 0 0 0 2 0 0 0 0 0 0 0 0 2.1473e+11Pattern 12 of 12
charset: set
family: "Courier New"
file: "/usr/local/lib/X11/fonts/mscorefonts/courbd.ttf"
fontversion: 184812
index: 0
lang: langset
outline: FcTrue
scalable: FcTrue
slant: 0
spacing: 100
style: "Bold"
weight: 200
And please find my config and logfiles here:
http://home.t-online.de/home/Alexander.Farber/OpenBSD/XF86Config.newhope
http://home.t-online.de/home/Alexander.Farber/OpenBSD/XFree86.0.log
http://www.openbsd.org/cgi-bin/cvsweb/~checkout~/XF4/xc/lib/fontconfig/fonts.conf.in?rev=1.3
Thank you in advance. If possible, please send me a copy
of your reply. Otherwise I'll read it in the archive
Regards
Alex
More information about the Fontconfig
mailing list