On 10/03/2017 03:13 PM, Rich Shepard wrote:
> On Mon, 2 Oct 2017, King Beowulf wrote:
> 
>> for fontdir in 100dpi 75dpi OTF Speedo TTF Type1 cyrillic misc; do
>>    /usr/bin/mkfontscale /usr/share/fonts/${fontdir}
>>    /usr/bin/mkfontdir /usr/share/fonts/${fontdir}
>> done
> 
>    I really need to get fonts working again as I can no longer see web sites
> such as LQ and I need to use them. (This all started trying to get
> LibreOffice5 Writer to see the Baker Signet and Bitstream Amerigo fonts. I
> removed the Speedo/, PEX/, and ISO-*/ directories in /usr/share/fonts/ as
> obsolete; I know of no application that does not use TrueType, OpenFormat,
> or Type1 (less, for example).
> 
>    I restored the TTF/, OTF/, TrueType/, and Type1/ directories from a backup
> last April (when every web site was visible under Slackware-14.1; this font
> issue appeared only last week.)
> 
>    Now I tried to run the above script piecemeal on the Type1/ directory as I
> moved the Type1 fonts in local/ there, but mkfontscale segfaults:
> 
> # /usr/bin/mkfontscale Type1/
> Segmentation fault
> 

Rich

remove the trailing "slash", also you can
cd /usr/share/fonts/Type1
mkfontscale .
mkfontdir .

etc, for each directory that was changed. Then

fc-cache -f -v

Then when running X, check /var/log/Xorg.0.log for font entries and/or
errors, or if there is an /etc/X11/xorg.conf.d entries. X will pick up
he default paths.  For example, on my system:
---------
...
[1282529.500] (WW) The directory "/usr/X11R6/lib/X11/fonts/misc" does
not exist.
[1282529.500]   Entry deleted from font path.
[1282529.500] (WW) The directory "/usr/X11R6/lib/X11/fonts/100dpi" does
not exist.
[1282529.500]   Entry deleted from font path.
[1282529.500] (WW) The directory "/usr/X11R6/lib/X11/fonts/75dpi" does
not exist.
[1282529.500]   Entry deleted from font path.
[1282529.500] (WW) The directory "/usr/share/fonts/local" does not exist.
[1282529.500]   Entry deleted from font path.
[1282529.500] (WW) The directory "/usr/share/fonts/CID" does not exist.
[1282529.500]   Entry deleted from font path.
[1282529.500] (**) FontPath set to:
        /usr/share/fonts/TTF,
        /usr/share/fonts/OTF,
        /usr/share/fonts/Type1,
        /usr/share/fonts/misc,
        /usr/share/fonts/75dpi/:unscaled,
        /usr/share/fonts/100dpi/:unscaled,
        /usr/share/fonts/75dpi,
        /usr/share/fonts/100dpi,
        /usr/share/fonts/cyrillic
....

and I've added an /etc/X11/xorg.conf.d/fonts.conf with
Section "Files"

    FontPath "/usr/X11R6/lib/X11/fonts/misc:unscaled/"
    FontPath "/usr/X11R6/lib/X11/fonts/100dpi:unscaled/"
    FontPath "/usr/X11R6/lib/X11/fonts/75dpi:unscaled/"

EndSection

You can also try reinstalling the fontconfig package.

-Ed
_______________________________________________
PLUG mailing list
PLUG@lists.pdxlinux.org
http://lists.pdxlinux.org/mailman/listinfo/plug

Reply via email to