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

classic Classic list List threaded Threaded
3 messages Options
Reply | Threaded
Open this post in threaded view
|

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

Fabian Ortega

Hi,

 

I’m facing an issue related with the “Label Placement”.

When a label’s text has a line break and has letters with descenders, the label baseline gets displaced.

 

NB : In typography, a descender is the portion of a letter that extends below the baseline of a font, i.e.: “g”, “p”, “q”, “y”, “j”.

 

Examples :

 

CASE 1 – The label’s text has a line break but no descenders >>> IT WORKS FINE :

 

CASE 2 – The label’s text has descenders but doesn’t have line breaks >>> IT WORKS FINE :

 

 

CASE 3 – The label’s text has line breaks and descenders >>> Problem : THE BASELINE IS DISPLACED :

 

 

 

 

Have you seen this behavior before? Is it “normal”? Or do you think I should report it as a bug?

 

Regards,

 

                          Fabian



_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users
Reply | Threaded
Open this post in threaded view
|

Re: [Label Placement] Baseline is displaced when the label's text has line breaks and descenders

geowolf
I'd suggest to ope a report. Please remember to add a test case (sample data + style)

Cheers
Andrea

On Wed, Oct 10, 2018 at 3:51 PM Fabian Ortega <[hidden email]> wrote:

Hi,

 

I’m facing an issue related with the “Label Placement”.

When a label’s text has a line break and has letters with descenders, the label baseline gets displaced.

 

NB : In typography, a descender is the portion of a letter that extends below the baseline of a font, i.e.: “g”, “p”, “q”, “y”, “j”.

 

Examples :

 

CASE 1 – The label’s text has a line break but no descenders >>> IT WORKS FINE :

 

CASE 2 – The label’s text has descenders but doesn’t have line breaks >>> IT WORKS FINE :

 

 

CASE 3 – The label’s text has line breaks and descenders >>> Problem : THE BASELINE IS DISPLACED :

 

 

 

 

Have you seen this behavior before? Is it “normal”? Or do you think I should report it as a bug?

 

Regards,

 

                          Fabian

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users


--

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.



_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

image001.png (19K) Download Attachment
image002.png (18K) Download Attachment
image003.png (24K) Download Attachment
image004.png (27K) Download Attachment
image004.png (27K) Download Attachment
Reply | Threaded
Open this post in threaded view
|

Re: [Label Placement] Baseline is displaced when the label's text has line breaks and descenders

Fabian Ortega

I just reported it under the ID GEOS-8975

Thank you for your attention to this issue.

 

Cheers,

             Fabian

 

De : Andrea Aime [mailto:[hidden email]]
Envoyé : mercredi 10 octobre 2018 16:02
À : Fabian Ortega
Cc : GeoServer Mailing List List
Objet : Re: [Geoserver-users] [Label Placement] Baseline is displaced when the label's text has line breaks and descenders

 

I'd suggest to ope a report. Please remember to add a test case (sample data + style)

 

Cheers

Andrea

 

On Wed, Oct 10, 2018 at 3:51 PM Fabian Ortega <[hidden email]> wrote:

Hi,

 

I’m facing an issue related with the “Label Placement”.

When a label’s text has a line break and has letters with descenders, the label baseline gets displaced.

 

NB : In typography, a descender is the portion of a letter that extends below the baseline of a font, i.e.: “g”, “p”, “q”, “y”, “j”.

 

Examples :

 

CASE 1 – The label’s text has a line break but no descenders >>> IT WORKS FINE :

 

CASE 2 – The label’s text has descenders but doesn’t have line breaks >>> IT WORKS FINE :

 

 

CASE 3 – The label’s text has line breaks and descenders >>> Problem : THE BASELINE IS DISPLACED :

 

 

 

 

Have you seen this behavior before? Is it “normal”? Or do you think I should report it as a bug?

 

Regards,

 

                          Fabian

_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users


 

--

Regards, Andrea Aime == GeoServer Professional Services from the experts! Visit http://goo.gl/it488V for more information. == Ing. Andrea Aime @geowolf Technical Lead GeoSolutions S.A.S. Via di Montramito 3/A 55054 Massarosa (LU) phone: +39 0584 962313 fax: +39 0584 1660272 mob: +39 339 8844549 http://www.geo-solutions.it http://twitter.com/geosolutions_it ------------------------------------------------------- Con riferimento alla normativa sul trattamento dei dati personali (Reg. UE 2016/679 - Regolamento generale sulla protezione dei dati “GDPR”), si precisa che ogni circostanza inerente alla presente email (il suo contenuto, gli eventuali allegati, etc.) è un dato la cui conoscenza è riservata al/i solo/i destinatario/i indicati dallo scrivente. Se il messaggio Le è giunto per errore, è tenuta/o a cancellarlo, ogni altra operazione è illecita. Le sarei comunque grato se potesse darmene notizia. This email is intended only for the person or entity to which it is addressed and may contain information that is privileged, confidential or otherwise protected from disclosure. We remind that - as provided by European Regulation 2016/679 “GDPR” - copying, dissemination or use of this e-mail or the information herein by anyone other than the intended recipient is prohibited. If you have received this email by mistake, please notify us immediately by telephone or e-mail.



_______________________________________________
Geoserver-users mailing list

Please make sure you read the following two resources before posting to this list:
- Earning your support instead of buying it, but Ian Turton: http://www.ianturton.com/talks/foss4g.html#/
- The GeoServer user list posting guidelines: http://geoserver.org/comm/userlist-guidelines.html

If you want to request a feature or an improvement, also see this: https://github.com/geoserver/geoserver/wiki/Successfully-requesting-and-integrating-new-features-and-improvements-in-GeoServer


[hidden email]
https://lists.sourceforge.net/lists/listinfo/geoserver-users