Opened 18 years ago

Last modified 13 years ago

#1908 closed enhancement

Can't have spaces in font names — at Initial Version

Reported by: karl-ms@… Owned by: sdlime
Priority: high Milestone: 5.6 release
Component: MapServer C Library Version: unspecified
Severity: normal Keywords:
Cc:

Description

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.

Change History (0)

Note: See TracTickets for help on using tickets.