font name with space - Problem! (Solved)

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?".
Post Reply
Albireo
Posts: 68
Joined: 2010-01-12T03:32:23-07:00
Authentication code: 8675309

font name with space - Problem! (Solved)

Post by Albireo »

Hello!
I have problem to select an desired font to ImageMagick. (Windows XP)

Name on fonts in windows have often spaces in the windows font names
(for examples. "Lucida Sans" "Loki Cola" "Sheer Beauty" "Georgia Bold Italic" ....)

If I want use a font with spaces in their name I get the following error message.
"convert: unable to read font 'Sheer Beauty' @ annotate.c/RenderType/807."

I have tried to solve the problem, but failed
It doesn't help to write ...... -font "Loki Cola" ......
I can´t rename the font name..... (or I don't know how)
ImageMagick seems select the font name (not the filename)

and I get error message: ".....Unable to read font........

//Jan
Last edited by Albireo on 2010-01-12T13:39:05-07:00, edited 1 time in total.
Albireo
Posts: 68
Joined: 2010-01-12T03:32:23-07:00
Authentication code: 8675309

Re: font name with space - Problem!

Post by Albireo »

Jippi! :D
I got the answer! (thank's! Pete!).

- Font names with spaces, indicated with a hyphen "-"
- What fonts will work with IM, can you see with the command:

Code: Select all

identify -list font
Example on the result:

Code: Select all

Font: Loki-Cola
    family: Loki Cola
    style: Normal
    stretch: Normal
    weight: 400
    glyphs: c:\windows\fonts\lokicola.ttf
Font: Sheer-Beauty-Regular
    family: Sheer Beauty
    style: Normal
    stretch: Normal
Font: Lucida-Sans
    family: Lucida Sans
    style: Normal
    stretch: Normal
    weight: 400
    glyphs: c:\windows\fonts\lsans.ttf
Font: Lucida-Sans-Demibold
    family: Lucida Sans
    style: Normal
    stretch: Normal
    weight: 600
    glyphs: c:\program files\ibm\java141\jre\lib\fonts\lucidasansdemibold.ttf
Font: Lucida-Sans-Demibold-Oblique
    family: Lucida Sans
    style: Oblique
    stretch: Normal
    weight: 600
    glyphs: c:\program files\ibm\java141\jre\lib\fonts\lucidasansdemioblique.ttf
Font: Lucida-Sans-Kursiv
    family: Lucida Sans Kursiv
    style: Normal
    stretch: Normal
    weight: 400
    glyphs: c:\windows\fonts\lsansi.ttf
    weight: 400
    glyphs: c:\windows\fonts\sheerbeauty.ttf
//Jan
Post Reply