Am Freitag 04 September 2009 09:49:04 schrieb Stefan Krüger:
> Hi everbody
>
> Because font-families can not be assured to be installed on a system,
> SLD/SE allows to define an ordered list of font family names to be tried.
> We see this
>
> in org.opengis.style.Font interface:
> >* The "font-family" SvgParameter element gives the family name of a font
> > to
>
> use.
>
> >* Allowed values are system-dependent. Any number of font-family
> > SvgParameter * elements may be given and they are assumed to be in
> > preferred order. * @return live list of font family
> >*/
> >@XmlParameter("font-familly")
> >List<Expression> getFamily();
>
> But in Geotools 2.6-M2 org.geotools.styling.FontImpl an unmodifiable List
> is returned and i see no way to configure or even initialize this list of
> familiy names.
>
> >    public List<Expression> getFamily() {
> >        return Collections.unmodifiableList(fontFamily);
> >    }
>
> The JavaDoc in the interfaces org.opengis.style.Font and
> org.geotools.styling.Font both explicitly state, that a "live list" should
> be returned. I guess that means it should modifiable...
>
> Many thanks for any help in advance...

I removed the "unmodifiableList" locally and it still doesn't work. It always 
only exports the first font. So may i ask: 

1. Does Geotool 2.6-M2 allow to load the definition of multiple font-families 
from XML? 
2. Does it allow to save the definition of multiple font-families to XML? 
3. Does the API allow to manipulate it programatically?

If the answer to any of the questions is no.. i would like to write a patch - 
if anyone gives me hope that it will be tested and comitted it before 2.6 gets 
released.

Greetings from Bonn,
Steve

-- 
wiki² - Softwareentwicklung
Stefan Krüger
Straßburger Weg 26
53113 Bonn

email   [email protected]
mobile  0151 50543949   
webpage wikisquare.de
skype   alfonx

reclaim your net - http://tor.eff.org
enforce privacy - http://www.pgpi.org
pgp key id: 51B576FD - http://pgp.mit.edu

Please note that according to the German law on data retention,
information on every electronic information exchange with me is
retained for a period of six months.



------------------------------------------------------------------------------
Let Crystal Reports handle the reporting - Free Crystal Reports 2008 30-Day 
trial. Simplify your report design, integration and deployment - and focus on 
what you do best, core application coding. Discover what's new with 
Crystal Reports now.  http://p.sf.net/sfu/bobj-july
_______________________________________________
Geotools-gt2-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geotools-gt2-users

Reply via email to