Luca Cappa schrieb:
> I wrote a simple function which draws a string with the its bounding box
> centered to the given pCenter parameter:
>
> void drawCenteredText (wxPdfDocument& pPDF, wxString const& pString,
> Vector2f const& pCenter)
> {
>float lHeightMM = float (pPDF.GetFontSize ()) /
Hello,
I wrote a simple function which draws a string with the its bounding box
centered to the given pCenter parameter:
void drawCenteredText (wxPdfDocument& pPDF, wxString const& pString,
Vector2f const& pCenter)
{
float lHeightMM = float (pPDF.GetFontSize ()) / 72.f * 2.54f / 10.f;
/