Opened 19 years ago

Closed 18 years ago

#1138 closed defect (wontfix)

Bitmap fonts are not supported in PDF output, type check on label font to avoid mapserver setting errors

Reported by: unicoletti Owned by: mapserverbugs
Priority: high Milestone:
Component: Output-PDF Version: 4.4
Severity: normal Keywords:
Cc:

Description

I am using Java mapscript from mapserver 4.4.0 to produce printable maps in PDF
format.
Whenever I try to print a map that uses bitmap fonts in a label an exception is
thrown in msDrawTextPDF because mapserver cannot find a suitable font. The
shp2pdf utility is able to ignore this error and the map gets drawn ok (except
for bitmap labels), but this is not possible in java mapscript because of the
exception handling code.

I am attaching a patch that checks for the font type and if it is bitmap it
simply returns without doing nothing.
Frankly I am not completely sure whether this is the best approach, but at least
it makes PDF output working as shp2pdf. Please note that this bug is related to
bug# 1128 and a more general solution should be devised in the future.

Attachments (1)

patch-pdf-bitmapfonts.diff (715 bytes ) - added by unicoletti 19 years ago.
Patch for bitmap font in labels when using PDF output

Download all attachments as: .zip

Change History (2)

by unicoletti, 19 years ago

Attachment: patch-pdf-bitmapfonts.diff added

Patch for bitmap font in labels when using PDF output

comment:1 by unicoletti, 18 years ago

Resolution: wontfix
Status: newclosed
One year passed and no one cared: closing as wontfix.
Note: See TracTickets for help on using tickets.