| 209 | |
| 210 | namespace { |
| 211 | void FindFontHeights( |
| 212 | wxCoord &height, wxCoord &lead, wxDC &dc, const wxFont &font ) |
| 213 | { |
| 214 | wxCoord strW, strH, strD, strL; |
| 215 | static const wxString exampleText = wxT("0.9"); //ignored for height calcs on all platforms |
| 216 | dc.SetFont( font ); |
| 217 | dc.GetTextExtent(exampleText, &strW, &strH, &strD, &strL); |
| 218 | height = strH - strD - strL; |
| 219 | lead = strL; |
| 220 | } |
| 221 | |
| 222 | void FindFontHeights( |
| 223 | wxCoord &height, wxCoord &lead, |
no test coverage detected