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

double PoDoFo::PdfFontMetrics::StringWidth ( const PdfString rsString ) const [inline, inherited]

Retrieve the width of a given text string in PDF units when drawn with the current font

rsStringa PdfString from which the width shall be calculated
the width in PDF units

This is an overloaded method for your convinience!

Definition at line 387 of file PdfFontMetrics.h.

References PoDoFo::PdfString::GetString(), PoDoFo::PdfString::GetUnicode(), and PoDoFo::PdfString::IsUnicode().

Referenced by PoDoFo::PdfPainter::DrawText(), PoDoFo::PdfPainter::DrawTextAligned(), PoDoFo::PdfPainter::GetMultiLineTextAsLines(), and PoDoFo::PdfFontMetrics::StringWidthMM().

    return (rsString.IsUnicode() ?  this->StringWidth( rsString.GetUnicode() ) : this->StringWidth( rsString.GetString() ));

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