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?
Pfont2
- thunor
- Posts: 350
- Joined: Thu 14 Oct 2010, 15:24
- Location: Minas Tirith, in the Pelennor Fields fighting the Easterlings
- Contact:
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
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
- thunor
- Posts: 350
- Joined: Thu 14 Oct 2010, 15:24
- Location: Minas Tirith, in the Pelennor Fields fighting the Easterlings
- Contact:
Hi vovchik
Can I recommend something?
In pfont2, in function make_gui() there is an entry widget for the filename, add this:
In pfont2, at the bottom where make_gui is called, change it to this:
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:
Now you can view *.otf files
Regards,
Thunor
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>
Code: Select all
make_gui "$1"
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
Regards,
Thunor