* @brief Returns the character height for the default monospace font. */
| 365 | * @brief Returns the character height for the default monospace font. |
| 366 | */ |
| 367 | int Console::Handler::defaultCharHeight() const |
| 368 | { |
| 369 | const auto defaultFont = Misc::CommonFonts::instance().monoFont(); |
| 370 | const QFontMetrics metrics(defaultFont); |
| 371 | return metrics.height(); |
| 372 | } |
| 373 | |
| 374 | //-------------------------------------------------------------------------------------------------- |
| 375 | // Buffer & history management |