Opened 17 years ago

Closed 17 years ago

#2313 closed defect (wontfix)

AGG Rendering Labels with Bitmaped Fonts

Reported by: jimk Owned by: tbonfort
Priority: normal Milestone:
Component: AGG Version: svn-trunk (development)
Severity: normal Keywords:
Cc:

Description (last modified by tbonfort)

When using AGG/PNG w/RGBA, labels of type BITMAP are rendered transparent or semi-transparent.

TRANSPARENT TRUE
OUTPUTFORMAT
  NAME 'AGGA'
  DRIVER AGG/PNG
  IMAGEMODE RGBA
END
IMAGETYPE AGGA 

The output is as expected if rendered with GD or the labels are switched to use a Truetype font.

Change History (1)

comment:1 by tbonfort, 17 years ago

Description: modified (diff)
Resolution: wontfix
Status: newclosed

closing as wontfix as there's a simple workaround on this: use a truetype font.

the problem is once again due to the alpha channel. gd is setting it to 0 where it's written some text (which means opaque for itself) whereas it's writing to an image where 0 means completely transparent.

I probably should have dropped pixmap font support completely for agg, but as it works in non-RGBA mode I left it in instead of bailing out with an error message.

I think it's safe to consider that pixmap font support with agg is deprecated and is likely to be completely removed in future releases.

Note: See TracTickets for help on using tickets.