Page 1 of 1

Fonts - TTF pdingobats2 - fonts.scale & font.dir? [SOLVED]

Posted: Thu Dec 31, 2020 11:33 pm
by davids45

G'day,

I have an irregular but minor problem with conky and pwidgets in regard to displaying pdingobats2 icons.

Sometimes, on starting a Puppy (32-bit or 64-bit), I get the letter equivalent not the desired mini-icon. If I delete the fonts-scale and/or fonts-dir? text files in /usr/share/fonts/default/TTF/ , the desired icons appear if I restart conky-pwidgets.

Sometimes with both text files deleted, the icons again are replaced by their letter equivalent so I copy back files-scale and this fixes the problem for while. Puzzling.

What is the purpose of these fonts-scale and fonts-dir text files and can I create ones that give me the pdingobats2 icons without problem?

So if I knew what fonts-scale and fonts-dir do, I'd be a little bit happier, if not wiser.

Thanks for any enlightenment.

David S


Re: Fonts - TTF pdingobats2 - fonts-scale?

Posted: Sat Jan 02, 2021 11:25 pm
by davids45

G'day,

If anyone else has an infrequent font display issue then running these in the terminal may help:

update-fonts-dir [path to your fonts directory]

update-fonts-scale [path to your fonts directory]

Example script - I keep my fonts in my sda5 data partition and link out to each Pup:

#!/bin/sh
update-fonts-dir /mnt/sda5/Puppy_Archive/Fonts
update-fonts-scale /mnt/sda5/Puppy_Archive/Fonts

As their names imply, they update the .dir and .scale scripts, say after installing a new font for a new app which upset the old file version.

Anyway, I hope I've fixed my pdingobats/conky/pwidgets occasional problem.