Logo Search packages:      
Sourcecode: codeblocks version File versions  Download package

void wxPdfDocument::SetFontSize ( double  size ) [virtual]

Defines the size of the current font.

sizeThe size (in points)
See also:

Definition at line 798 of file pdfdoc.cpp.

References Double2String(), wxPdfFont::GetIndex(), m_currentFont, m_fontSize, m_fontSizePt, m_k, m_page, and OutAscii().

Referenced by WriteXmlCell().

  // Set font size in points
  if (m_fontSizePt == size)
  m_fontSizePt = size;
  m_fontSize = size / m_k;
  if ( m_page > 0)
    OutAscii(wxString::Format(_T("BT /F%d "),m_currentFont->GetIndex()) +
             Double2String(m_fontSizePt,2) + wxString(_T(" Tf ET")));

Here is the call graph for this function:

Here is the caller graph for this function:

Generated by  Doxygen 1.6.0   Back to index