|
| Reusing fonts from WP8pe in current linux |
 |
Wed, 08 Aug 2007 15:47:55 -070 |
Hi folks,
First post.
It's been some time now since I've used my old copy of
WordPerfect 8.0 Personal Edition. I usually use the OpenOffice
suite these days.
However, I've been looking to install more fonts for OpenOffice
and make them accessible to other programs like Gimp and Inkscape
through X and defoma. I recalled that my WordPerfect disk had a fine
selection of fonts (130). They're quite accessible on disk but I'm
not sure how to install them. (Basically they are .afm and .pfb
files for Type 1 fonts.)
I'm sure there must be a way to install and access these
fonts on a current linux distro. But I sure can't find it.
Everything I see relates to the 8.1 version.
Can anyone help me out here? Basically what I think I need
to know is how to tell defoma about the fonts so that it
recognizes them.
What do I need to do to find peace and happiness and
achieve enlightment?
tia,
b.
|
| Post Reply
|
| Re: Reusing fonts from WP8pe in current linux |
 |
Wed, 08 Aug 2007 17:53:50 -070 |
Bill M. wrote:
>
> Hi folks,
>
> First post.
>
> It's been some time now since I've used my old copy of
> WordPerfect 8.0 Personal Edition. I usually use the OpenOffice
> suite these days.
>
> However, I've been looking to install more fonts for OpenOffice
> and make them accessible to other programs like Gimp and Inkscape
> through X and defoma. I recalled that my WordPerfect disk had a fine
> selection of fonts (130). They're quite accessible on disk but I'm
> not sure how to install them. (Basically they are .afm and .pfb
> files for Type 1 fonts.)
>
> I'm sure there must be a way to install and access these
> fonts on a current linux distro. But I sure can't find it.
> Everything I see relates to the 8.1 version.
>
> Can anyone help me out here? Basically what I think I need
> to know is how to tell defoma about the fonts so that it
> recognizes them.
>
> What do I need to do to find peace and happiness and
> achieve enlightment?
>
> tia,
>
> b.
>
Some further information:
I've run:
defoma-hints -c --no-question type1 path-to-fonts/* \
> /etc/defoma/hints/myfontfile.hints
The response was:
Wait for second...
Some information aren't found in 0208a___.afm.
Aborting..
So no go. So far.
b.
|
| Post Reply
|
| Re: Reusing fonts from WP8pe in current linux |
 |
Wed, 08 Aug 2007 18:17:48 -070 |
Sjoerd Hiemstra wrote:
> On Wed, 08 Aug 2007 15:47:55 -0700
> "Bill M." <bill3@uniserve.ca> wrote:
>
>
>>I've been looking to install more fonts for OpenOffice and make them
>>accessible to other programs like Gimp and Inkscape through X and
>>defoma. I recalled that my WordPerfect disk had a fine selection of
>>fonts (130). They're quite accessible on disk but I'm not sure how to
>>install them. (Basically they are .afm and .pfb files for Type 1
>>fonts.)
>
>
> You're still on Debian Sarge, right? You could use one of the font
> install programs that KDE and Gnome offer, such as kfontinstall, or do
> the following as root:
>
> - put both the .afm and .pfb (or .pfa) files into
> /usr/X11R6/lib/X11/fonts/Type1
> - cd /usr/X11R6/lib/X11/fonts/Type1
> - update-fonts-scale ./
> - update-fonts-dir ./
> - fc-cache
>
>
> However, I would suggest to upgrade to Lenny, then just put both files
> into /usr/local/share/fonts/type1 (system wide)
> or ~/.fonts/type1 (per user).
>
Well maybe etch ;->>
This worked perfectly Sjoerd, Thanks muchly.
b.
|
| Post Reply
|
| Re: Reusing fonts from WP8pe in current linux |
 |
Wed, 08 Aug 2007 20:01:33 -040 |
Bill M. wrote:
>
> Hi folks,
>
> First post.
>
> It's been some time now since I've used my old copy of
> WordPerfect 8.0 Personal Edition. I usually use the OpenOffice
> suite these days.
>
> However, I've been looking to install more fonts for OpenOffice
> and make them accessible to other programs like Gimp and Inkscape
> through X and defoma. I recalled that my WordPerfect disk had a fine
> selection of fonts (130). They're quite accessible on disk but I'm
> not sure how to install them. (Basically they are .afm and .pfb
> files for Type 1 fonts.)
>
> I'm sure there must be a way to install and access these
> fonts on a current linux distro. But I sure can't find it.
> Everything I see relates to the 8.1 version.
>
> Can anyone help me out here? Basically what I think I need
> to know is how to tell defoma about the fonts so that it
> recognizes them.
>
> What do I need to do to find peace and happiness and
> achieve enlightment?
>
> tia,
>
> b.
>
From: http://linuxmafia.com/wpfaq/nondownloadwp8.html#FONTS81
5.6. How do I add fonts to WP 8.1?
First, as the root user, physically place them in
/usr/X11R6/lib/X11/fonts/Type1/ , or wherever system-wide Type 1 fonts
go on your distribution. While in that directory, run "type1inst"
(usually in /usr/X11R6/lib/X11/fonts/Type1), then "mkfontdir". The
fonts
will now be available to all applications using PostScript Type 1 fonts.
Last, run the WP font installer "/usr/lib/wp8/shbin10/wpfi" (creating
/usr/lib/wp8/shlib10/wp.drs, the WP font map).
Alternatively instead of the last step, start xwp with the -admin (or
-adm) command-line option. On the Format menu, pick Fonts. You'll find a
button to select and then install (into WP's internal list of known
fonts) fonts from a list of those available. Exit xwp. Or, instead of
"xwp -admin", run /usr/lib/wp8/shbin10/xwpfi . (This works for
PostScript Type 1 fonts only, not TrueType.)
Leon A. Goldstein's HOWTO for installing WP 8.x on Caldera OpenLinux 2.3
/ eDesk 2.4 covers this matter in much greater detail:
http://linux-sxs.org/utilities/wp8.html
Please note also that ideally you'll be adding any fonts to any WP 8.x
version twice, once as a screen font and once as a printer font. This
matter is covered comprehensively by Rod Smith at
http://www.rodsbooks.com/wpfonts/.
....
To summarize, after copying your T1 fonts to
/usr/X11R6/lib/X11/fonts/Type1 (or wherever T1 fonts are located in your
distro)
1. Execute cd /usr/X11R6/lib/X11/fonts/Type1 ; execute type1inst
2. Execute /usr/X11R6/bin/mkfontdir
3. Execute /usr/lib/wp8/shbin10/wpfi
NOTE: this creates the file /usr/lib/wp8/shlib10/wp.drs
Unfortunately, this does not work with newer distro's, e.g. Fedora 6.
James R. Tyrer has written some scripts to handle the newer distros.
Here is a copy of JRT's post:
You don't need to use type1install any more with new versions of X11R7.
You can:
mkfontscale -e /usr/X11R6/lib/X11/fonts/encodings -f 90
mkfontdir -e /usr/X11R6/lib/X11/fonts/encodings
{Your: "encodings" path might be different"}
This doesn't make a "Fontmap" file. I use a script to do this: txfm.
This script has dependencies!! You need to install some font utilities
packages to use it.
Actually I use: "install-fonts" to do the whole job.
If you use odd fonts, you will find a bug in "mkfontscale" as shipped
with X.org because they haven't applied my patch like XFree86 has.
#!/bin/bash
echo "" > $PWD/Fontmap
for file in $PWD/*
do
if [ -f "$file" ]; then
if [ -f f_o_n_t.pfa ]; then
rm -f f_o_n_t.pfa
fi
font=`basename $file .ttf`
if [ -f $font.ttf ]; then
echo -n "font = "$font.ttf" "
fontline=`ttf2pt1 -GA -l adobestd -b -p ttf $font.ttf - 2>/dev/null
|grep FontName`
fontname=`echo $fontline 2>/dev/null | sed -e 's/FontName* //'`
echo "fontname = "$fontname
fontname="/$fontname"
echo $fontname" ($font.ttf) ;" >> $PWD/Fontmap
fi
font=`basename $file .pfa`
if [ -f $font.pfa ]; then
echo -n "font = "$font.pfa" "
fontline=`cat $font.pfa 2>/dev/null |grep FontName`
fontname=`echo $fontline 2>/dev/null | sed -e 's/\/FontName*
//' | sed 's/ def//'`
echo $fontname" ($font.pfa) ;" >> $PWD/Fontmap
fontname=`echo $fontname 2>/dev/null | sed -e 's/\/*//'`
echo "fontname = "$fontname
fi
font=`basename $file .pfb`
if [ -f $font.pfb ]; then
pfb2pfa $font.pfb
mv $font.pfa f_o_n_t.pfa
echo -n "font = "$font.pfb" "
fontline=`cat f_o_n_t.pfa 2>/dev/null |grep FontName`
fontname=`echo $fontline 2>/dev/null | sed -e 's/\/FontName*
//' | sed 's/ def//'`
echo $fontname" ($font.pfb) ;" >> $PWD/Fontmap
fontname=`echo $fontname 2>/dev/null | sed -e 's/\/*//'`
echo "fontname = "$fontname
fi
if [ -f f_o_n_t.pfa ]; then
rm -f f_o_n_t.pfa
fi
fi
done
echo "" >> $PWD/Fontmap
if [ -f f_o_n_t.pfa ]; then
rm -f f_o_n_t.pfa
fi
#! /bin/bash
echo ""
echo "MAKING fonts.scale"
mkfontscale -e /usr/X11R6/lib/X11/fonts/encodings -f 90
echo ""
echo "MAKING fonts.dir"
mkfontdir -e /usr/X11R6/lib/X11/fonts/encodings
echo ""
echo "MAKING Fontmap"
echo ""
txfm
echo ""
echo "DONE"
echo ""
exit
--
Leon A. Goldstein
Powered by Libranet 2.8 Debian Linux
System LI
|
| Post Reply
|
| Re: Reusing fonts from WP8pe in current linux |
 |
Wed, 08 Aug 2007 20:39:05 -040 |
In my previous post the names of JRT's two scripts are not listed:
The first script is "txfm" and the second one is his
"install-fonts"
If you parse the second script - install-fonts - you will notice it
invokes the first script -txfm.
--
Leon A. Goldstein
Powered by Libranet 2.8 Debian Linux
System LI
|
| Post Reply
|
|
|
|
|
|
|
|
|
|