On 21 July 2014 12:53, Ron Lindhoudt <rlindho...@yahoo.com> wrote:
> Hi all,
>
> I am trying to underline labels texts with GeoTools.
> There is no Font.UNDERLINE constant.
> As an alternative I found on the internet that a TextAttribute can be used.
> But TextAttribute does not seem to be respected in GeoTools.
> Is this correct?
>
> Example:
>
> Map<TextAttribute, Integer> fontAttributes = new HashMap<TextAttribute,
> Integer>();
> fontAttributes.put(TextAttribute.UNDERLINE, TextAttribute.UNDERLINE_ON);Font
> boldUnderline = new Font("Serif",Font.BOLD, 12).deriveFont(fontAttributes);
>
>
I don't think there is a way to do underlining in GeoTools - our styling is
all based (reasonably) closely on the Styled Layer Description (SLD)
standard which doesn't include it.
Unless some of the recent work with CSS styling added something, Andreas?
Ian
> Thanks.
> Ron
>
>
>
> ------------------------------------------------------------------------------
> Want fast and easy access to all the code in your enterprise? Index and
> search up to 200,000 lines of code with a free copy of Black Duck
> Code Sight - the same software that powers the world's largest code
> search on Ohloh, the Black Duck Open Hub! Try it now.
> http://p.sf.net/sfu/bds
> _______________________________________________
> GeoTools-GT2-Users mailing list
> GeoTools-GT2-Users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users
>
>
--
Ian Turton
------------------------------------------------------------------------------
Want fast and easy access to all the code in your enterprise? Index and
search up to 200,000 lines of code with a free copy of Black Duck
Code Sight - the same software that powers the world's largest code
search on Ohloh, the Black Duck Open Hub! Try it now.
http://p.sf.net/sfu/bds
_______________________________________________
GeoTools-GT2-Users mailing list
GeoTools-GT2-Users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users