27 #include "../common/STLUtils.h" 
   58   std::string name = p->
getName();
 
   59   std::map<std::string, te::se::SvgParameter*>::iterator it = m_svgParams.find(name);
 
   60   if(it != m_svgParams.end())
 
   62   m_svgParams[name] = p;
 
   67   setParameter(sm_family, family);
 
   72   setParameter(sm_style, sm_fontStyleMap[style]);
 
   77   setParameter(sm_weight, sm_fontWeightMap[weight]);
 
   82   setParameter(sm_size, size);
 
   87   return getParameter(sm_family);
 
   92   return getParameter(sm_style);
 
   97   return getParameter(sm_weight);
 
  102   return getParameter(sm_size);
 
  109   std::map<std::string, SvgParameter*>::const_iterator it;
 
  110   for(it = m_svgParams.begin(); it != m_svgParams.end(); ++it)
 
  111     font->
add(it->second->clone());
 
  118   std::map<std::string, te::se::SvgParameter*>::iterator it = m_svgParams.find(name);
 
  119   if(it != m_svgParams.end())
 
  126   std::map<std::string, te::se::SvgParameter*>::const_iterator it = m_svgParams.find(name);
 
  127   if(it != m_svgParams.end())
 
A Font specifies the text font to use in a text symbolizer. 
 
A SvgParameter refers to an SVG/CSS graphical-formatting parameter. 
 
static const std::string sm_family
SVG/CSS "font-family" parameter. 
 
const SvgParameter * getParameter(const std::string &name) const 
 
void add(SvgParameter *p)
Add a SvgParameter to this Font. 
 
const SvgParameter * getFamily() const 
 
void setSize(const std::string &size)
 
const SvgParameter * getWeight() const 
 
static std::map< FontStyleType, std::string > sm_fontStyleMap
A map that associates FontStyleType to the correct string value. 
 
const SvgParameter * getSize() const 
 
A Font specifies the text font to use in a text symbolizer. 
 
static const std::string sm_weight
SVG/CSS "font-weight" parameter. 
 
std::string getName() const 
 
FontStyleType
It defines the style to use for a font. 
 
static const std::string sm_size
SVG/CSS "font-size" parameter. 
 
Font()
It initializes a new Font. 
 
void setWeight(const FontWeightType &weight)
 
static std::map< FontWeightType, std::string > sm_fontWeightMap
A map that associates FontWeightType to the correct string value. 
 
void setFamily(const std::string &family)
 
const SvgParameter * getStyle() const 
 
void setParameter(const std::string &name, const std::string &value)
 
A SvgParameter refers to an SVG/CSS graphical-formatting parameter. 
 
static const std::string sm_style
SVG/CSS "font-style parameter. 
 
void setStyle(const FontStyleType &style)
 
FontWeightType
It gives the amount of weight or boldness to use for a font. 
 
void FreeContents(boost::unordered_map< K, V * > &m)
This function can be applied to a map of pointers. It will delete each pointer in the map...
 
Font * clone() const 
It creates a new copy of this object.