[Label Placement] Baseline is displaced when the label has line breaks and descenders

Description

Hi there,

I’m facing an issue related with the “_Label Placement_”.
When a label has line breaks and letter with descenders, such as “_g_”, “_p_”, “_q_”, “_y_”, “_j_”, the baseline gets displaced.

For example:

  • CASE 1 – The label has line breaks but no descenders >>> IT WORKS FINE (see attached-file case_1_sample_1.png)

  • CASE 2 – The label has descenders but no line breaks >>>_ IT WORKS FINE_ (see attached-file case_2_sample_1.png)

  • CASE 3 – The label has line breaks and descenders >>> *+

    Problem: THE BASELINE IS DISPLACED

    +* (see attached-files case_3_sample_1.png & case_3_sample_2.png)

I also have attached to this ticket the SLD file and some sample data to reproduce the problem.

Best regards,

Fabian

Environment

GeoServer Version 2.13.2

Status

Assignee

Imran Rajjad

Reporter

Fabian Ortega

Triage

Fix versions

None

Affects versions

None

Priority

High
Configure