From a13c3f5cfd7ddf1840371fb7fb435ecb4ebf14b2 Mon Sep 17 00:00:00 2001 From: Alexander Taylor Date: Tue, 29 Aug 2023 11:17:41 -0400 Subject: Expose Name versions of font getters, update docs. --- ui/fontsettings.h | 9 +++++++++ 1 file changed, 9 insertions(+) (limited to 'ui') diff --git a/ui/fontsettings.h b/ui/fontsettings.h index 3d29db33..59de414c 100644 --- a/ui/fontsettings.h +++ b/ui/fontsettings.h @@ -18,6 +18,11 @@ enum AntialiasingStyle NoAntialiasing }; +//! Returns the default font size for the current platform. +int BINARYNINJAUIAPI getDefaultFontSize(); + +//! Returns the default application font name. +std::string BINARYNINJAUIAPI getDefaultApplicationFontName(); //! Returns the default application font, ignoring user settings. QFont BINARYNINJAUIAPI getDefaultApplicationFont(); //! Returns the currently configured application font (or the default, if it doesn't exist). @@ -29,6 +34,8 @@ QFont BINARYNINJAUIAPI getApplicationFont(QWidget* widget); */ void BINARYNINJAUIAPI setApplicationFont(const QFont* font); +//! Returns the default monospaced font name. +std::string BINARYNINJAUIAPI getDefaultMonospaceFontName(); //! Returns the default monospaced font, ignoring user settings. QFont BINARYNINJAUIAPI getDefaultMonospaceFont(); //! Returns the currently configured monospaced font (or the default, if it doesn't exist). @@ -40,6 +47,8 @@ QFont BINARYNINJAUIAPI getMonospaceFont(QWidget* widget); */ void BINARYNINJAUIAPI setMonospaceFont(const QFont* font); +//! Returns the default emoji font name. +std::string BINARYNINJAUIAPI getDefaultEmojiFontName(); //! Returns the default emoji font, ignoring user settings. QFont BINARYNINJAUIAPI getDefaultEmojiFont(); //! Returns the currently configured emoji font (or the default, if it doesn't exist). -- cgit v1.3.1