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 
=newHashMap<TextAttribute,Integer>();fontAttributes.put(TextAttribute.UNDERLINE,TextAttribute.UNDERLINE_ON);FontboldUnderline
 =newFont("Serif",Font.BOLD,12).deriveFont(fontAttributes);

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

Reply via email to