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

Issues and / or general discussion relating to Puppy

Moderator: Forum moderators

Post Reply
User avatar
davids45
Posts: 53
Joined: Mon Jul 06, 2020 2:09 am
Location: Chatswood, NSW
Been thanked: 8 times

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

Post 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

Attachments
usr/share/font/default/TTF directory with fonts-scale textfile
usr/share/font/default/TTF directory with fonts-scale textfile
fonts-scale.jpg (43.85 KiB) Viewed 141 times
letters displayed in widget titles instead of pdingobat icon
letters displayed in widget titles instead of pdingobat icon
pdingobats2-letternoticon.jpg (43.46 KiB) Viewed 141 times
icons for widgets show after deleting fonts-scale
icons for widgets show after deleting fonts-scale
pdingobats2-icons.jpg (45.03 KiB) Viewed 141 times
Last edited by davids45 on Sat Jan 02, 2021 11:27 pm, edited 1 time in total.
User avatar
davids45
Posts: 53
Joined: Mon Jul 06, 2020 2:09 am
Location: Chatswood, NSW
Been thanked: 8 times

Re: Fonts - TTF pdingobats2 - fonts-scale?

Post 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.

Post Reply

Return to “Users”