Ticket #1908 (closed enhancement: wontfix)
Can't have spaces in font names
|Reported by:||karl-ms@…||Owned by:||sdlime|
|Component:||MapServer C Library||Version:||unspecified|
Description (last modified by hobu) (diff)
This is probably more of a wish list item than a bug, but right now you can't have spaces in font names. Here's how it bites me: Say I am emitting an SVG file and then importing it into Illustrator, where I'll in turn save it as an AI file and send it off to be printed on a super high quality printer... I'm using the Lucia Sans font and in my .map file, I call it lucidasans and in the fonts.txt fontset file, when rendering as a GIF with GD, it maps to a Lucida Sans truetype font and everything's fine. But when generating an SVG file, the font in there is called "lucidasans" and then my Mac wants to find lucidasans and can't -- it needs "Lucida Sans" so then without asking it substitutes some other stupid font like Arial MT that doesn't have my airplane glyph in it, so all my little airplane symbols, rotated to show the aircraft's heading with variable drop shadows to indicate the altitude are instead rendered as question marks. I don't have a simple backwards-compatible fix. The simple non-backwards-compatible fix is to use a tab to separate the logical font name from the filename in the FONTSET file. I can, of course, edit or postprocess my SVG file to fix it.
Note: See TracTickets for help on using tickets.