correct. the position of "center of the text" varies depending on whether your glyphs have ascenders and/or descenders, and thus produces inconsistent centering between "aaa", "ppp" or "bbbb". This can be easily reverted by commenting out the two special cases for CR and CL at https://github.com/mapserver/mapserver/blob/rel-7-0-3/maplabel.c#L989 . replace with y1 = (h/2.0) + oy;
-- thomas On Mon, Jan 2, 2017 at 6:58 PM Ian Walberg <[email protected]> wrote: > Thomas. > > > > Hmm, I do not understand why the change was made from the older versions. > > > > So the vertical ‘center’ position is actually align the text baseline with > the point position and not the ‘center’ of the text as previously? > > > > Regards > > > > Ian > > > > *From:* thomas bonfort [mailto:[email protected]] > *Sent:* Monday, January 2, 2017 9:41 AM > *To:* Ian Walberg <[email protected]>; > [email protected]; [email protected] > *Subject:* Re: [mapserver-users] Label position not as expected version > 7.0.x > > > > Ian, > > It's the intented effect, with the label baseline aligned with the symbol > baseline. You can probably nudge it manually with an offset if you need to. > > > > -- > > thomas > > > > On Mon, Jan 2, 2017 at 6:30 PM Ian Walberg <[email protected]> > wrote: > > Folks, > > > > Happy New Year to everyone. > > > > Using version 7.0.x we are not seeing the label positon as we had for > previous versions for mapserver. > > > > The vertical label position now appears to not center naturally on the > text but is towards the bottom of the center line. > > > > Are we missing something? > > > > Thanks > > > > Ian > > > > MAP > > > > EXTENT 0.0 0.0 10.0 10.0 > > SIZE 1024 720 > > IMAGECOLOR 140 140 140 > > > > SYMBOL > > NAME 'City' > > TYPE ELLIPSE > > POINTS 1 1 END > > FILLED true > > END > > > > LAYER > > > > NAME "Label position" > > TYPE POINT > > STATUS DEFAULT > > > > FEATURE > > POINTS > > 1.00 5.00 > > 1.00 8.00 > > END # POINTS > > END # FEATURE > > > > CLASS > > TEXT 'Label text' > > STYLE > > SYMBOL 'City' > > SIZE 12 > > COLOR 255 255 255 > > END # STYLE > > > > LABEL > > TYPE BITMAP > > SIZE 30 > > COLOR 255 255 255 > > POSITION CR > > END # LABEL > > > > END # CLASS > > > > END # LAYER > > > > END # MAP > > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users > >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
