Page 1 of 1

font name with space - Problem! (Solved)

Posted: 2010-01-12T09:29:13-07:00
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

Re: font name with space - Problem!

Posted: 2010-01-12T13:38:36-07:00
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