FontSettings Class | Extending Qt Creator Manual

Extending Qt Creator Manual | FontSettings

Extending Qt Creator Manual 4.3.0

# FontSettings Class

(TextEditor::FontSettings)

- List of all members, including inherited members

## Public Types

typedef | FormatDescriptions

## Public Functions

| FontSettings()
bool | antialias() const
void | clear()
const ColorScheme & | colorScheme() const
QString | colorSchemeFileName() const
bool | equals(const FontSettings &f) const
QString | family() const
QFont | font() const
int | fontSize() const
int | fontZoom() const
Format & | formatFor(TextStyle category)
Format | formatFor(TextStyle category) const
bool | fromSettings(const QString &category, const FormatDescriptions &descriptions, const QSettings *s)
bool | isEmpty() const
bool | loadColorScheme(const QString &fileName, const FormatDescriptions &descriptions)
bool | saveColorScheme(const QString &fileName)
void | setAntialias(bool antialias)
void | setColorScheme(const ColorScheme &scheme)
void | setColorSchemeFileName(const QString &fileName)
void | setFamily(const QString &family)
void | setFontSize(int size)
void | setFontZoom(int zoom)
void | toSettings(const QString &category, QSettings *s) const
QTextCharFormat | toTextCharFormat(TextStyle category) const
QTextCharFormat | toTextCharFormat(TextStyles textStyles) const
QVector<QTextCharFormat> | toTextCharFormats(const QVector<TextStyle> &categories) const

## Static Public Members

QString | defaultFixedFontFamily()
int | defaultFontSize()
QString | defaultSchemeFileName(const QString &fileName = QString())

## Member Type Documentation

### typedef FontSettings::FormatDescriptions

## Member Function Documentation

### FontSettings::FontSettings()

Default constructs an instance of FontSettings.

### bool FontSettings::antialias() const

See also setAntialias().

### void FontSettings::clear()

### const ColorScheme &FontSettings::colorScheme() const

See also setColorScheme().

### QString FontSettings::colorSchemeFileName() const

See also setColorSchemeFileName().

### `[static]` QString FontSettings::defaultFixedFontFamily()

### `[static]` int FontSettings::defaultFontSize()

### `[static]` QString FontSettings::defaultSchemeFileName(const QString &fileName = QString())

### bool FontSettings::equals(const FontSettings &f) const

### QString FontSettings::family() const

See also setFamily().

### QFont FontSettings::font() const

### int FontSettings::fontSize() const

See also setFontSize().

### int FontSettings::fontZoom() const

See also setFontZoom().

### Format &FontSettings::formatFor(TextStyle category)

### Format FontSettings::formatFor(TextStyle category) const

### bool FontSettings::fromSettings(const QString &category, const FormatDescriptions &descriptions, const QSettings *s)

### bool FontSettings::isEmpty() const

### bool FontSettings::loadColorScheme(const QString &fileName, const FormatDescriptions &descriptions)

### bool FontSettings::saveColorScheme(const QString &fileName)

### void FontSettings::setAntialias(bool antialias)

See also antialias().

### void FontSettings::setColorScheme(const ColorScheme &scheme)

See also colorScheme().

### void FontSettings::setColorSchemeFileName(const QString &fileName)

See also colorSchemeFileName().

### void FontSettings::setFamily(const QString &family)

See also family().

### void FontSettings::setFontSize(int size)

See also fontSize().

### void FontSettings::setFontZoom(int zoom)

See also fontZoom().

### void FontSettings::toSettings(const QString &category, QSettings *s) const

### QTextCharFormat FontSettings::toTextCharFormat(TextStyle category) const

### QTextCharFormat FontSettings::toTextCharFormat(TextStyles textStyles) const

### QVector<QTextCharFormat> FontSettings::toTextCharFormats(const QVector<TextStyle> &categories) const