void setFontResolution(int res);
void setCharacterAspect(float aspect);
+ void setLineHeight(float factor);
void setFill(const std::string& fill);
void setBackgroundColor(const std::string& fill);
setCharacterSize(getCharacterHeight(), aspect);
}
+ //----------------------------------------------------------------------------
+ void Text::TextOSG::setLineHeight(float factor)
+ {
+ setLineSpacing(factor - 1);
+ }
+
//----------------------------------------------------------------------------
void Text::TextOSG::setFill(const std::string& fill)
{
addStyle("character-aspect-ratio",
"numeric",
&TextOSG::setCharacterAspect, text);
+ addStyle("line-height", "numeric", &TextOSG::setLineHeight, text);
addStyle("font-resolution", "numeric", &TextOSG::setFontResolution, text);
addStyle("padding", "numeric", &TextOSG::setBoundingBoxMargin, text);
// TEXT = 1 default