Opened 18 years ago

Closed 13 years ago

#1908 closed enhancement (wontfix)

Can't have spaces in font names

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

Description (last modified by hobu)

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 (6)

comment:1 by sdlime, 18 years ago

Milestone: 5.0 release
Status: newassigned

comment:2 by hobu, 17 years ago

Description: modified (diff)
Milestone: 5.0 release5.2 release

Sliding forward to the next release...

comment:3 by sdlime, 16 years ago

What if we supported quotes as a way to embed spaces? Or supported space, tab or comma delimited font files?

Steve

comment:4 by tomkralidis, 16 years ago

+1 on quoting font names. We'll want to have backward compatibility for a couple of releases (i.e. check names the existing way, if no match then check for quoted).

comment:5 by sdlime, 16 years ago

Component: MapScriptMapServer C Library
Milestone: 5.2 release5.4 release
Type: defectenhancement

Pushing to 5.4 regardless of solution... (unless I have a epiphany tonite)

Steve

comment:6 by dmorissette, 13 years ago

Resolution: wontfix
Status: assignedclosed

Closing WONTFIX: this is no longer an issue with Cairo rendering in 6.0 which embeds the characters as strokes in the output.

Note: See TracTickets for help on using tickets.