[Geoserver-users] Font styling - a few questions

Hi all,

I have a few questions about font styling:

1. Is there a <CssParameter name= for backslanted text (reversed italic,
leaning towards left)? This can of course be done by using a font that is
already backslanted. Do you see other options?
2. Is there a <CssParameter name= for adding space between charters in a
label? I would use this to "stretch out" labels over a bigger area. Any
other way to do this?

Best regards, Jakob Ventin

--
View this message in context: http://osgeo-org.1560.x6.nabble.com/Font-styling-a-few-questions-tp5060045.html
Sent from the GeoServer - User mailing list archive at Nabble.com.

Hi Jakob,

There’s the CSS-parameter ‘font-style’ you should be using for this. Set the value to ‘oblique’. Let others correct me if I am wrong, but the font you would like to use has to have that variant. I don’t think GeoServer is able to skew the font into a slanted variant.

There’s no option (yet?) to adjust the kerning of the individual letters in GeoServer. In case you are looking into labeling areas, there’s the VendorOption ‘polygonAlign’ to at least make the text follow the general orientation of the area.

Regards,

Edward

Date: Thu, 13 Jun 2013 22:22:14 -0700
From: jventin@hotmail.com
To: geoserver-users@lists.sourceforge.net
Subject: [Geoserver-users] Font styling - a few questions

Hi all,

I have a few questions about font styling:

  1. Is there a <CssParameter name= for backslanted text (reversed italic,
    leaning towards left)? This can of course be done by using a font that is
    already backslanted. Do you see other options?
  2. Is there a <CssParameter name= for adding space between charters in a
    label? I would use this to “stretch out” labels over a bigger area. Any
    other way to do this?

Best regards, Jakob Ventin


View this message in context: http://osgeo-org.1560.x6.nabble.com/Font-styling-a-few-questions-tp5060045.html
Sent from the GeoServer - User mailing list archive at Nabble.com.


This SF.net email is sponsored by Windows:

Build for Windows Store.

http://p.sf.net/sfu/windows-dev2dev


Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

On Fri, Jun 14, 2013 at 8:19 AM, Edward Mac Gillavry <
emacgillavry@anonymised.com> wrote:

Hi Jakob,

There's the CSS-parameter 'font-style' you should be using for this. Set
the value to 'oblique'. Let others correct me if I am wrong, but the font
you would like to use has to have that variant. I don't think GeoServer is
able to skew the font into a slanted variant.

Yep, GeoServer can only do what the underlying Java2D rendering subsystem
can do. Oblique will make it italic afaik, not backslanted... believe
you'll need to find a font that is in that state from the start.

There's no option (yet?) to adjust the kerning of the individual letters
in GeoServer. In case you are looking into labeling areas, there's the
VendorOption 'polygonAlign' to at least make the text follow the general
orientation of the area.

Correct. Adding that option should be possible though, we already have code
that skips normal java2d string rendering and draws strings one chart at a
time to follow curved lines, that could be adjusted to add space in between
chars for curved or even straight lines.
Mind, I see two reasonable options user wise, one would be to add a fixed
space between chars, the other would be to try and fill a given line, which
would be useful to generate maps with a label that generally covers a
certain area (think trying to label a mountain chain, where you have
prepared a line following its general centerline)

Cheers
Andrea

--

Our support, Your Success! Visit http://opensdi.geo-solutions.it for more
information.

Ing. Andrea Aime
@geowolf
Technical Lead

GeoSolutions S.A.S.
Via Poggio alle Viti 1187
55054 Massarosa (LU)
Italy
phone: +39 0584 962313
fax: +39 0584 1660272
mob: +39 339 8844549

http://www.geo-solutions.it
http://twitter.com/geosolutions_it

-------------------------------------------------------