Thus spake “MadDog”:
The reason that the font appears correctly for you in Illustrator is that
Illustrator knows where to find the font on your machine. There is no
such thing as an “SVG-enabled” font. What I mean by an SVG font is a font
which has been converted to SVG in a particular way, as defined here:
w3.org/TR/SVG/fonts.html
Not everyone using your module is guaranteed to have that font, so even if
the renderer could find the font on your machine, that wouldn’t solve the
problem for anyone else.
One way to ensure that a font is available when the SVG is rendered
is to convert the font to SVG. This can be done in one of two ways,
either by converting the text in your counters to paths, or by
converting the font itself to an SVG font using an SVG font converter
like this one
xmlgraphics.apache.org/batik/too … erter.html
and then including the output of that with your counters in the module.
(This might also require small adjustments to the counter SVG in order
to use the SVG font. There might be a way to do the font conversion in
Illustrator, but I can’t say for certain.)
However, an SVG font built from Arial Narrow Italic is not something
you have the legal right to distribute (at least not in the US), since
that would violate your license agreement with Microsoft—so really
your only option here is to convert the text to paths. (This is, BTW,
why I recommend against using proprietary fonts for this sort of thing,
because you can’t redistribute them.)
A second way to ensure that the font is available when the SVG is
rendered is to include the font in the module, but this will only work
once I’ve written the code for it—and wouldn’t be of any help in
your case, since you still don’t have the rights to distribute Arial.
I don’t know, I’ve never used Illustrator.
I think that the simplest way to solve this problem (in the short term)
will be to convert the text to paths. In the long term, we plan to
provide a set of redistributable fonts for use in SVG (and with
GamePieceImages) to address this problem, and a mechanism for embedding
additional fonts in modules.
I still would like to see your module so I can compare the SVG rendering
there with the rendering done by another engine.
–
J.
Messages mailing list
Messages@forums.vassalengine.org
forums.vassalengine.org/mailman/ … engine.org
Post generated using Mail2Forum (mail2forum.com)