Font rendering ttf linux,windows, rendering issues

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?".
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Font rendering ttf linux,windows, rendering issues

Post by javismiles »

hi my friends
i have successfully now migrated from windows to linux, all is working finally, every command, everything, what a relief :)

there is only one single thing that doesnt go well, regarding the TTF windows fonts, they all work in linux, no problem, but
3 of the fonts dont render well in linux for some reason, meaning, the position of some of the letters appears in the wrong place when you render
a phrase with them

anybody has had this experience? is it that some ttf windows fonts are not fully compatible with linux? or do i have to specify some extra parameters for the
fonts in linux in the commands that i didnt need in windows?

basically in some fonts, few ones fortunately, like 3 or 4 of a total of 16, in those ttf fonts, the characters for example appear too close together to each other compared with windows where the spacing was all perfect,

is there some parameter in imagemagick to control the spacing between the characters? maybe in linux i have to use it and in windows it wasnt necessary?

because of this problem in linux in those 4 fonts, some characters appear mounted on each other,
whereas in windows they are all perfect

the fonts themselves work all great, its just that strange character spacing and overlapping issue that happens with 4 of the ttf fonts that were working perfect in windows

thank u very much again for your great support, fantastic forum

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

Re: Font rendering ttf linux,windows, rendering issues

Post by fmw42 »

I would suggest you find the same fonts from a unix library and install those rather than trying to import from windows.

Also see http://www.imagemagick.org/Usage/text/#kerning
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Font rendering ttf linux,windows, rendering issues

Post by javismiles »

thank you very much,
you know, i have been working on this web app for a year, and all is built around those fonts, so as you will understand i cannot switch
to different fonts

now, if in unix the same equivalent fonts exist then great, im new to linux, could you point me please to the place where i can find
font libraries for linux and where i can see if i find the same fonts?

the main font i have problems with is called : witched ttf font (Witched, True Type TTF font), anybody knows if this Witched font is available for Linux?

thank you very much again :)
jav
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Font rendering ttf linux,windows, rendering issues

Post by javismiles »

this is one of the 4 fonts i have problems with and also the main and most important one i need
http://www.dafont.com/bewitched.font
anybody has used this in linux with imagemagick? what is equivalent or similar in linux?
thank you
jav
:)
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Font rendering ttf linux,windows, rendering issues

Post by javismiles »

i have found the witched font for linux, here

http://font.downloadatoz.com/download,1 ... linux.html

however, the file is exactly the same file i already had, same date, same size, same content, all

so this means the font is not the problem, is the problem then the rendering engine of imagemagick dealing with this font?
could somebody please try this font also with imagemagick in linux and tell me what you get? get it from here
http://font.downloadatoz.com/download,1 ... linux.html

and try to render a word that says the following:
Shopping Day

try it with : Shopping Day
because that phrase becomes clearly garbled and messed up when using that font in linux

let me know if you can make it work please
thank you :)
jav
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Font rendering ttf linux,windows, rendering issues

Post by fmw42 »

That link is for a Windows font. Nevertheless, I tested it and got similar results to what you describe where the letters overlap.


However, the font from http://www.dafont.com/bewitched.font worked just fine on my Mac OSX Tiger IM 6.6.8.4 Q16
Last edited by fmw42 on 2011-03-19T14:08:39-07:00, edited 1 time in total.
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Font rendering ttf linux,windows, rendering issues

Post by javismiles »

you can see what happens when rendering with imagemagick the phrase - shopping day -
with the linux font: witched, in this link
http://media-courses.com/temp/witched-f ... ng-day.jpg

what do you think? the linux font can be found here
http://font.downloadatoz.com/download,1 ... linux.html

if you give it a try let me know if you get the same problem when rendering : shopping day
could this be a problem in the command? but i dont think so as its same exact command
that renders all other phrases in all other fonts well

thank you for your help
jav :)
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Font rendering ttf linux,windows, rendering issues

Post by javismiles »

well, take a look at the Url of the link

http://font.downloadatoz.com/download,1 ... linux.html

it says : witched font for linux :)
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Font rendering ttf linux,windows, rendering issues

Post by javismiles »

in this page
http://font.downloadatoz.com/font,11630,witched.html

you will see below
Witched Font Free Download for Windows (10 K)
Witched Font Free Download for Mac OS X (10 K)
Witched Font Free Download for Linux (10 K)

so the link for linux is there :)
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Font rendering ttf linux,windows, rendering issues

Post by javismiles »

well
if you get same results anyway thats it then, i guess it just doesnt work in linux image magick for whatever reason

anybody knows of a similar font that works well on image magick linux?

thank you :)
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Font rendering ttf linux,windows, rendering issues

Post by fmw42 »

However, the font from http://www.dafont.com/bewitched.font worked just fine on my Mac OSX Tiger IM 6.6.8.4 Q16


convert -background lightblue -fill blue -font /Library/Fonts/Witched.ttf \
-size 160x label:"Shopping Day" test_witched_font.gif

P.S. I changed TTF to ttf also.
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Font rendering ttf linux,windows, rendering issues

Post by javismiles »

oh wow
so wait

are you saying it worked well on the mac, running what, linux or windows?
User avatar
fmw42
Posts: 25562
Joined: 2007-07-02T17:14:51-07:00
Authentication code: 1152
Location: Sunnyvale, California, USA

Re: Font rendering ttf linux,windows, rendering issues

Post by fmw42 »

javismiles wrote:oh wow
so wait

are you saying it worked well on the mac, running what, linux or windows?

Mac runs unix natively.
Last edited by fmw42 on 2011-03-19T14:12:35-07:00, edited 1 time in total.
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Font rendering ttf linux,windows, rendering issues

Post by javismiles »

do you mean running Mac OS?
and the previous one that didnt work was it in linux?
so are you saying for you it works well on Mac OS, but not on Linux?
javismiles
Posts: 180
Joined: 2010-11-27T01:42:06-07:00
Authentication code: 8675308

Re: Font rendering ttf linux,windows, rendering issues

Post by javismiles »

ok but at the beginning you said
"Nevertheless, I tested it and got similar results to what you describe where the letters overlap."

so when did you get the overlap problem, under what system?
Post Reply