Opened 13 years ago

Last modified 13 years ago

#3893 new defect

OGR autostyle font mapping problem

Reported by: tamas Owned by: tamas
Priority: normal Milestone:
Component: OGR Support Version: unspecified
Severity: normal Keywords:
Cc: dmorissette

Description

Currently we cannot use font mapping with "STYLEITEM AUTO" (OGR) if the font name contains spaces. This is because we cannot include font name alias containing spaces in the fontset file. A trivial solution to this is to replace the spaces with hyphens in the OGR autostyle code.

Attachments (4)

mapogr.cpp.patch (2.4 KB ) - added by tamas 13 years ago.
patch for the solution
font.list (2.2 KB ) - added by tamas 13 years ago.
sample fontset file
fonts2.zip (2.6 KB ) - added by tamas 13 years ago.
sample data
expected.png (57.6 KB ) - added by tamas 13 years ago.
expected result

Download all attachments as: .zip

Change History (6)

by tamas, 13 years ago

Attachment: mapogr.cpp.patch added

patch for the solution

by tamas, 13 years ago

Attachment: font.list added

sample fontset file

by tamas, 13 years ago

Attachment: fonts2.zip added

sample data

by tamas, 13 years ago

Attachment: expected.png added

expected result

comment:1 by dmorissette, 13 years ago

Cc: dmorissette added

comment:2 by dmorissette, 13 years ago

FYI there was ticket #1908 about supporting spaces in font names, and a suggestion to use quotes to allow spaces in font names. Ticket #1908 was closed 'wontfix' because the original issue with spaces in SVG fonts is no longer relevant in 6.0, but we could reopen if necessary.

Note: See TracTickets for help on using tickets.