Pfont2

Window managers, icon programs, widgets, etc.
Message
Author
User avatar
darkcity
Posts: 2534
Joined: Sun 23 May 2010, 19:16
Location: near here
Contact:

#21 Post by darkcity »

It can preview ttf fonts- it create an image file in /tmp

however for some reason it doesn't display the image file correctly in the app itself.

---

When you click preview - do you get a window containing a description of the font but no image?

User avatar
thunor
Posts: 350
Joined: Thu 14 Oct 2010, 15:24
Location: Minas Tirith, in the Pelennor Fields fighting the Easterlings
Contact:

#22 Post by thunor »

Great, works for me on Slacko 5.3.3 :)

I'm actually interested in the preview part only as you might've guessed from my pfontview program and I've found that changing ROX's "Set Run Action..." to ttf "@" does the trick.

The fonts which I've downloaded that gtk/Pango refuse to initialise to are successfully shown using your ttf program so that's good.

Regards,
Thunor

User avatar
thunor
Posts: 350
Joined: Thu 14 Oct 2010, 15:24
Location: Minas Tirith, in the Pelennor Fields fighting the Easterlings
Contact:

#23 Post by thunor »

Hi vovchik

Can I recommend something?

In pfont2, in function make_gui() there is an entry widget for the filename, add this:

Code: Select all

<default>"'$1'"</default>
In pfont2, at the bottom where make_gui is called, change it to this:

Code: Select all

make_gui "$1"
Now you can pass in a filename from another program i.e. pfontview's Pfont2 menuitem.

In ttf, comment-out the following code to stop limiting files to *.ttf files:

Code: Select all

mylow=$(echo $mysuffix |tr '[A-Z]' '[a-z]')
...
...
if [[ "$mylow" == "ttf" ]]; then
...
...
else
	gtkdialog-splash -placement top -timeout 4 -fontsize medium -icon "gtk-dialog-error" -text "$msg_nottf"
fi
Now you can view *.otf files :)

Regards,
Thunor

User avatar
perdido
Posts: 1528
Joined: Mon 09 Dec 2013, 16:29
Location: ¿Altair IV , Just north of Eeyore Junction.?

#24 Post by perdido »

The last version of puppy this worked correctly was Puppy Precise 5.7.1
Nice utility, would be nice if updated for later puppies.

Image


Image

.

Post Reply