Opened 13 years ago

Closed 13 years ago

#3896 closed defect (fixed)

Impossible to turn off character/text anti-aliasing for gif (GD)

Reported by: havatv Owned by: tbonfort
Priority: normal Milestone: 6.2 release
Component: Renderer API Version: 6.0
Severity: normal Keywords: text, anti-aliasing, antialias, font
Cc: havatv

Description

With 6.0.0, it is not possible to turn off text anti-aliasing for gif (GD) using "ANTIALIAS false". It is neither for truetype symbols nor for labels. This was possible in 5.6.6.

Here is a map file that can be used to demonstrate the bug (FONTSET will probably have to be modified). I attach the resulting images generated using 5.6.6 and 6.0.0.

MAP
  SIZE 100 100
  EXTENT 0 0 100 100
  UNITS meters
  IMAGECOLOR 255 255 0
  IMAGETYPE gif
  FONTSET /usr/share/fonts/truetype/font.list

  SYMBOL
    NAME "circle"
    TYPE ellipse
    FILLED true
    POINTS
      1 1
    END
  END

  SYMBOL
    NAME "I"
    TYPE truetype
    FONT times
    CHARACTER "I"
    ANTIALIAS false
  END

  LAYER
    NAME "test"
    SIZEUNITS pixels
    STATUS DEFAULT
    TYPE POINT
    FEATURE
      POINTS
        50 50
      END
      TEXT 'a-a'
    END
    CLASS #
      STYLE # truetype
        SYMBOL 'I'
        COLOR 0 0 0
        SIZE 50
      END # style
      STYLE # centre point
        SYMBOL 'circle'
        COLOR 255 255 255
        SIZE 3
      END # style
      LABEL
        COLOR 0 163 221   # PMS299
        TYPE truetype
        ANTIALIAS false
        FONT arial-italic
        POSITION UR
        SIZE 10
      END
    END # class
  END # layer
END # Map file

Attachments (2)

font-anti-alias6.gif (383 bytes ) - added by havatv 13 years ago.
Generated using Mapserver 6.0.0 - buggy
font-anti-alias5.gif (273 bytes ) - added by havatv 13 years ago.
Generated using Mapserver 5.6.6 - OK

Download all attachments as: .zip

Change History (3)

by havatv, 13 years ago

Attachment: font-anti-alias6.gif added

Generated using Mapserver 6.0.0 - buggy

by havatv, 13 years ago

Attachment: font-anti-alias5.gif added

Generated using Mapserver 5.6.6 - OK

comment:1 by tbonfort, 13 years ago

Milestone: 6.0.1 release6.2 release
Resolution: fixed
Status: newclosed

fixed in r11964

Note: See TracTickets for help on using tickets.