Discussion:
Convert with my fonts
Boris
2011-11-29 12:05:07 UTC
Permalink
Hi everybody,

This my problem,

I try to convert SVG file to PDF and I've some issues with fonts.

When Illustrator convert into SVG the name of font is for example:
font-family="LucidaHandwriting-Italic" , font-family="BrushScriptMT" ...

If I put the font into /usr/share/fonts/ and then I print 'convert -list
font' , names of fonts are:

Font: Lucida-Handwriting-Italique
family: Lucida Handwriting
style: Italic
stretch: Normal
weight: 400
glyphs: /usr/share/fonts/fontPerso/ttf/LucidaHandwritingItalic.ttf
Font: Brush-Script-MT-Italique
family: Brush Script MT
style: Italic
stretch: Normal
weight: 400
glyphs: /usr/share/fonts/fontPerso/ttf/Brush Script.ttf


When I convert svg file, only BrushScriptMT works... but the name is
different between svg file and -list font . I don't understand why ?
I tried with other fonts, some work, some do not...

I thought the solution was to use type.xml with 'imagick_type_gen' script.
I put the script and my font in my home folder and I run the script.

The XML file generated contain:

<type
format="ttf"
name="LucidaHandwritingI"
fullname="Lucida Handwriting Italic"
family="Lucida Handwriting"
glyphs="/home/dave/fontPerso/ttf/LucidaHandwritingItalic.ttf"
/>
<type
format="ttf"
name="BrushScriptI"
fullname="Brush Script MT Italic"
family="Brush Script "
glyphs="/usr/share/fonts/fontPerso/ttf/Brush Script.ttf"
/>



So I modify this file with the good name and I save it:

<type
format="ttf"
name="LucidaHandwriting-Italic"
fullname="Lucida Handwriting Italic"
family="Lucida Handwriting"
glyphs="/home/dave/fontPerso/ttf/LucidaHandwritingItalic.ttf"
/>
...
...




When I print 'convert -list font' the name of the font is
'LucidaHandwriting-Italic'.

Good !

But when I convert SVG file, neither fonts working... :(


Can someone help me please ?
I'm very lost...

Thank you very much for you help.

Bye
Anthony Thyssen
2011-11-30 23:05:43 UTC
Permalink
On Tue, 29 Nov 2011 13:05:07 +0100
Boris <***@free.fr> wrote:
|
|
|
| Hi everybody,
|
| This my problem,
|
| I try to convert SVG file to PDF and I've some issues with fonts.
|
| When Illustrator convert into SVG the name of font is for example:
| font-family="LucidaHandwriting-Italic" , font-family="BrushScriptMT" ...
|
| If I put the font into /usr/share/fonts/ and then I print 'convert -list
| font' , names of fonts are:
|
| Font: Lucida-Handwriting-Italique
| family: Lucida Handwriting
| style: Italic
| stretch: Normal
| weight: 400
| glyphs: /usr/share/fonts/fontPerso/ttf/LucidaHandwritingItalic.ttf
| Font: Brush-Script-MT-Italique
| family: Brush Script MT
| style: Italic
| stretch: Normal
| weight: 400
| glyphs: /usr/share/fonts/fontPerso/ttf/Brush Script.ttf
|
|
| When I convert svg file, only BrushScriptMT works... but the name is
| different between svg file and -list font . I don't understand why ?
| I tried with other fonts, some work, some do not...
|
| I thought the solution was to use type.xml with 'imagick_type_gen' script.
| I put the script and my font in my home folder and I run the script.
|
| The XML file generated contain:
|
| <type
| format="ttf"
| name="LucidaHandwritingI"
| fullname="Lucida Handwriting Italic"
| family="Lucida Handwriting"
| glyphs="/home/dave/fontPerso/ttf/LucidaHandwritingItalic.ttf"
| />
| <type
| format="ttf"
| name="BrushScriptI"
| fullname="Brush Script MT Italic"
| family="Brush Script "
| glyphs="/usr/share/fonts/fontPerso/ttf/Brush Script.ttf"
| />
|
|
|
| So I modify this file with the good name and I save it:
|
| <type
| format="ttf"
| name="LucidaHandwriting-Italic"
| fullname="Lucida Handwriting Italic"
| family="Lucida Handwriting"
| glyphs="/home/dave/fontPerso/ttf/LucidaHandwritingItalic.ttf"
| />
| ...
| ...
|
|
|
|
| When I print 'convert -list font' the name of the font is
| 'LucidaHandwriting-Italic'.
|
| Good !
|
| But when I convert SVG file, neither fonts working... :(
|
|
| Can someone help me please ?
| I'm very lost...
|
| Thank you very much for you help.
|
| Bye
|

Look at
http://www.imagemagick.org/Usage/draw/#svg

what type of SVG handling is your Imagemagick setup to use?
If it is RSVG, then it is a problem with that library.

PS: for faster resposes, you may like to post on the IM users forum.
http://www.imagemagick.org/discourse-server/viewforum.php?f=1



Anthony Thyssen ( System Programmer ) <***@griffith.edu.au>
--------------------------------------------------------------------------
"Virtual machines?" asked Moira.
"That's like a computer that isn't there." Jerry said helpfully
-- Rick Cook, "The Wizardry Cursed"
--------------------------------------------------------------------------
Anthony's Castle http://www.ict.griffith.edu.au/anthony/

Loading...