예제 #1
0
파일: drawer.cpp 프로젝트: zhgn/scigraphics
scigraphics::wcoord scigraphics::drawer::textWidth( const std::string &Text, const textStyle &Style )       
{ 
  return Text.length() * Style.getFontSize(); 
}
예제 #2
0
파일: drawer.cpp 프로젝트: zhgn/scigraphics
scigraphics::wcoord scigraphics::drawer::textHeight( const std::string &Text, const textStyle &Style )
{ 
  return Style.getFontSize() * numOfLinesInString(Text); 
}
예제 #3
0
scigraphics::wcoord scigraphics::legend::interTextVerticalDistance( const textStyle &Style ) 
{ 
  return std::max<wcoord>( Style.getFontSize()/3, 2 ); 
}