Opened 18 years ago

Last modified 13 years ago

#1611 assigned defect

TRUETYPE LABEL/SYMBOL rotated POSITION differs

Reported by: huub@… Owned by: sdlime
Priority: high Milestone: 6.0 release
Component: MapServer C Library Version: 4.8
Severity: normal Keywords:
Cc:

Description (last modified by sdlime)

Rotated LABELS TRUETYPE are placed differently from rotated TRUETYPE SYMBOLS


The truetype character (anchor.jpg : anchorpoint indicated with red arrow)

The character is to be rotated on the number in item DEGREES 0 -360

Compare : (look at the red/pink triangles in the jpgs)
(A LABEL uses TEXT, a SYMBOL TYPE TRUETYPE only CHARACTER)
=============================================================================
as a LABEL on_center.jpg           | as a TRUETYPE SYMBOL off_center.jpg
============================================================================
LABELITEM "DEGREES"                |      CLASS
  CLASS                            |        EXPRESSION ([BEARING] = 2)
    TEXT "2"                       |        STYLE
    EXPRESSION ([BEARING] = 2)     |        SYMBOL "scs2"
    LABEL                          |        SIZE 14
      SIZE 14                      |          COLOR 0 0 255
      POSITION CC                  |          ANGLEITEM "DEGREES"
      COLOR 0 0 255                |        END
      TYPE TRUETYPE                |      END
      FONT scs                     |
      ANTIALIAS false              |      SYMBOL
      BUFFER 0                     |        NAME scs2
      FORCE true                   |        TYPE TRUETYPE
    END                            |        FONT scs
    STYLE                          |        POSITION CC #(or LL or anything)
    END                            |        ANTIALIAS false
  END                              |        FILLED true
                                            CHARACTER "2"
                                          END


Rotation of the truetype character as a symbol sweeps around the anchorpoint it 
seems to me (causing the placement to be off center)
POSITION setting has no effect

The placement of the LABEL is correct, 
POSITION setting does have effect:CC places it correctly on the geometry


I'll upload the three images hereafter


Regards Huub

Attachments (3)

anchor.jpg (9.8 KB ) - added by huub@… 18 years ago.
the character, anchorpoint indicated by red arrow
on_center.jpg (25.0 KB ) - added by huub@… 18 years ago.
LABELS are on center POSITION CC
off_center.jpg (14.8 KB ) - added by huub@… 18 years ago.
SYMBOLS TYPE TRUETYPE are off center POSITION CC|LL|UR has no effect

Download all attachments as: .zip

Change History (8)

by huub@…, 18 years ago

Attachment: anchor.jpg added

the character, anchorpoint indicated by red arrow

by huub@…, 18 years ago

Attachment: on_center.jpg added

LABELS are on center POSITION CC

by huub@…, 18 years ago

Attachment: off_center.jpg added

SYMBOLS TYPE TRUETYPE are off center POSITION CC|LL|UR has no effect

comment:1 by huub@…, 18 years ago

attachments.description: SYMBOLS TYPE TRUETYP are off center POSITION CC|LL|UR has no effectSYMBOLS TYPE TRUETYPE are off center POSITION CC|LL|UR has no effect

comment:2 by huub@…, 18 years ago

attachments.description: the characterthe character, anchorpoint indicated by red arrow

comment:3 by dmorissette, 18 years ago

Cc: mapserver-bugs@… added
Component: WMS ServerMapServer C Library
Owner: changed from mapserverbugs to sdlime
Summary: TRUETYPE LABEL/SYMBOL rotated POSITION differs TRUETYPE LABEL/SYMBOL rotated POSITION differs
Reassigned to Steve as this is more of a core MapServer issue, and
labelling/symbols is his territory.

comment:4 by sdlime, 16 years ago

Description: modified (diff)
Milestone: 5.4 release
Status: newassigned

I didn't even realize this one existed, whoops...

Steve

comment:5 by dmorissette, 13 years ago

Milestone: 5.6 release6.0 release

5.4/5.6 are over, moving to 6.0 milestone. Is this still an issue in 6.0?

Note: See TracTickets for help on using tickets.