Re: [wxCode-users] centering a string to a point with wxPdfDoc

2009-03-11 Thread Ulrich Telle
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 ()) /

[wxCode-users] centering a string to a point with wxPdfDoc

2009-03-11 Thread Luca Cappa
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; /