Some fonts work and others dont in linux

Questions and postings pertaining to the usage of ImageMagick regardless of the interface. This includes the command-line utilities, as well as the C and C++ APIs. Usage questions are like "How do I use ImageMagick to create drop shadows?".
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Some fonts work and others dont in linux

Post by fmw42 »

and some of the TTF dont work
Redownload them. Some may be corrupt if you tried to copy them from windows to unix.
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Some fonts work and others dont in linux

Post by javismiles »

by the way considering that ghostscript.xml file contains the below
that would seem to say that PFB would also work

<type name="AvantGarde-Book" fullname="AvantGarde Book" family="AvantGarde" foundry="URW" weight="400" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/default/Type1/a010013l.afm" glyphs="/usr/share/fonts/default/Type1/a010013l.pfb"/>
<type name="AvantGarde-BookOblique" fullname="AvantGarde Book Oblique" family="AvantGarde" foundry="URW" weight="400" style="oblique" stretch="normal" format="type1" metrics="/usr/share/fonts/default/Type1/a010033l.afm" glyphs="/usr/share/fonts/default/Type1/a010033l.pfb"/>
<type name="AvantGarde-Demi" fullname="AvantGarde DemiBold" family="AvantGarde" foundry="URW" weight="600" style="normal" stretch="normal" format="type1" metrics="/usr/share/fonts/default/Type1/a010015l.afm" glyphs="/usr/share/fonts/default/Type1/a010015l.pfb"/>
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Some fonts work and others dont in linux

Post by fmw42 »

Perhaps, but only via ghostscript.

Try adding them to the ghostscript fonts directory and perhaps also to the type-ghostscript.xml file. Again I am not an expert on this.

When configuring IM, you may have to tell IM where to find those fonts. For example here is my ./configure file for IM


./configure --enable-delegate-build --enable-shared --disable-static \
--with-modules --with-quantum-depth=16 --with-gslib --without-wmf \
--disable-silent-rules --disable-dependency-tracking --disable-openmp \
--with-gs-font-dir=/usr/local/share/ghostscript/fonts/ --with-lqr
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Some fonts work and others dont in linux

Post by javismiles »

oh
i found the reason!!! :) Murphy is back!! :)))

some of the fonts had extension TTF instead of ttf

now they work after changing TTF to ttf!!!

oh my !!!
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Some fonts work and others dont in linux

Post by fmw42 »

good for you. at least it was simple!

you could also have specified them in the IM command as /fullpathtofont/fontname.TTF

but it is easier to have them all the same as .ttf so you don't have to know which to use caps.
Last edited by fmw42 on 2011-03-18T16:42:00-07:00, edited 1 time in total.
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Some fonts work and others dont in linux

Post by javismiles »

thank you my friend, having you there was very important for me to keep trying :)
so now TTF works,
only thing left is to make PFB work, im going to try again and see
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Some fonts work and others dont in linux

Post by fmw42 »

Hopefully Anthony or Magick can give you more information about the pfb fonts. This is beyond my understanding at the moment.
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Some fonts work and others dont in linux

Post by javismiles »

OH MY! :)
changing the extension of the PFB fonts to pfb, also works!
all fonts work now! :)
oh wow

murphys lesson!!!
windows doesnt care if extension is in capital letters
Linux CARES! :)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Some fonts work and others dont in linux

Post by fmw42 »

glad it all worked out!
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Some fonts work and others dont in linux

Post by javismiles »

thanks to you!
thank you for bringing me luck and support :)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Some fonts work and others dont in linux

Post by fmw42 »

You found the solution. I had nothing to do with it but offer the wrong ideas!
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Some fonts work and others dont in linux

Post by javismiles »

of course i will have more problems because this moving from windows
to linux server is very very complex
a real mess

well
step by step
User avatar
anthony
Posts: 8883
Joined: 2004-05-31T19:27:03-07:00
Authentication code: 8675308
Location: Brisbane, Australia

Re: Some fonts work and others dont in linux

Post by anthony »

javismiles wrote:oh
i found the reason!!! :) Murphy is back!! :)))

some of the fonts had extension TTF instead of ttf

now they work after changing TTF to ttf!!!

oh my !!!
That is probably a failing of the script. It assumes (rightly) that file suffixes are lowercase under linux :-)
Anthony Thyssen -- Webmaster for ImageMagick Example Pages
https://imagemagick.org/Usage/
Post Reply