On 15/10/2019 14:31, Lew Pitcher wrote:
> Mike Scott wrote:
>
>> I'm having trouble getting fonts recognised.
>>
>> I've installed the base edition of the current raspbian, plus sundry
>> extra packages including the X11 base fonts. The intent is to run
>> headless with (realvnc's) vncserver active, and that's what I'm using to
>> test.
>>
>> Unfortunately, xterm only shows one font size available, and the vnc log
>> shows lookup failures on the font files:
>> Warning: Cannot convert string
>> "-adobe-helvetica-bold-r-normal--*-120-*-*-*-*-iso8859-*" to type
>> FontStruct xterm: cannot load font
>> "-misc-fixed-medium-r-normal--18-120-100-100-c-90-iso10646-1"
>> /usr/bin/xterm: cannot load font
>> "-Misc-Fixed-medium-R-*-*-13-120-75-75-C-120-ISO10646-1"
>> /usr/bin/xterm: cannot load font
>> "-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso10646-1"
>> xterm: cannot load font
>> "-misc-fixed-medium-r-normal--13-120-75-75-c-80-iso10646-1"
>>
>> xlsfonts shows only a few fonts:
>> -misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
>> -misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
>> cursor
>> fixed
....
>> I've run fontconfig as well as mkfontdir, to no avail. I confess to a
>> certain uncertainty about how all the font stuff fits together :-}
>>
>> I'm at a loss. I've obviously missed/misunderstood something
>> fundamental, but can anyone suggest what please?
>
> Try running fc-cache
>
>
Thanks; I think that's one of the things I tried. I've rerun it, but to
no avail...
pi@raspberrypi:/usr/share/fonts/X11 $ fc-cache -v /usr/share/fonts/X11/
/usr/share/fonts/X11: skipping, existing cache is valid: 0 fonts, 5 dirs
/usr/share/fonts/X11/100dpi: skipping, existing cache is valid: 358
fonts, 0 dirs
/usr/share/fonts/X11/75dpi: skipping, existing cache is valid: 358
fonts, 0 dirs
/usr/share/fonts/X11/encodings: skipping, existing cache is valid: 0
fonts, 1 dirs
/usr/share/fonts/X11/encodings/large: skipping, existing cache is valid:
0 fonts, 0 dirs
/usr/share/fonts/X11/misc: skipping, existing cache is valid: 89 fonts,
0 dirs
/usr/share/fonts/X11/util: skipping, existing cache is valid: 0 fonts, 0
dirs
/var/cache/fontconfig: not cleaning unwritable cache directory
/home/pi/.cache/fontconfig: not cleaning non-existent cache directory
/home/pi/.fontconfig: not cleaning non-existent cache directory
fc-cache: succeeded
pi@raspberrypi:/usr/share/fonts/X11 $ xlsfonts
-misc-fixed-medium-r-semicondensed--0-0-75-75-c-0-iso8859-1
-misc-fixed-medium-r-semicondensed--13-120-75-75-c-60-iso8859-1
cursor
fixed
(Very similar as root. I deleted /var/cache/fontconfig by hand, just in
case, before rerunning fc-cache)
Does xterm use fontconfig? And where does mkfontdir fit in - isn't that
an 'old' system?
--
Mike Scott
Harlow, England
--- SoupGate-Win32 v1.05
* Origin: Agency HUB, Dunedin - New Zealand | FidoUsenet Gateway (3:770/3)
|