| 229 | } |
| 230 | |
| 231 | void Ruler::SetFonts(const wxFont &minorFont, const wxFont &majorFont, const wxFont &minorMinorFont) |
| 232 | { |
| 233 | // Won't override these fonts |
| 234 | |
| 235 | mpUserFonts = std::make_unique<RulerStruct::Fonts>( |
| 236 | RulerStruct::Fonts{ majorFont, minorFont, minorMinorFont, 0 } ); |
| 237 | |
| 238 | wxScreenDC dc; |
| 239 | wxCoord height; |
| 240 | FindFontHeights( height, mpUserFonts->lead, dc, majorFont ); |
| 241 | |
| 242 | mRulerStruct.mpFonts.reset(); |
| 243 | mRulerStruct.mpFonts.reset(); |
| 244 | Invalidate(); |
| 245 | } |
| 246 | |
| 247 | void Ruler::SetNumberScale(const NumberScale &scale) |
| 248 | { |
no test coverage detected