MCPcopy Create free account
hub / github.com/Serial-Studio/Serial-Studio / defaultCharHeight

Method defaultCharHeight

app/src/Console/Handler.cpp:367–372  ·  view source on GitHub ↗

* @brief Returns the character height for the default monospace font. */

Source from the content-addressed store, hash-verified

365 * @brief Returns the character height for the default monospace font.
366 */
367int 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

Callers

nothing calls this directly

Calls 1

heightMethod · 0.80

Tested by

no test coverage detected