Skip to content

RFontList

Class in Core Module
Header: #include <src/core/RFontList.h>

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD. The global list of fonts.

Scriptable: This class is available in script environments.

static RFont * get(const QString &resName, bool substitute=true)
static QStringList getNames()
static QString getSubName(const QString &resName)
static void init()
Initializes the font list by creating empty RFont objects, one for each font that could be found.
static void initSubstitutions()
static bool isCadFont(const QString &fontName, const QString &fontFile)
static void uninit()
static RResourceList< RFont > res

static RFont * RFontList::get(const QString &resName, bool substitute=true)

static

static QStringList RFontList::getNames()

static

static QString RFontList::getSubName(const QString &resName)

static

static void RFontList::init()

static

Initializes the font list by creating empty RFont objects, one for each font that could be found.

static void RFontList::initSubstitutions()

static

static bool RFontList::isCadFont(const QString &fontName, const QString &fontFile)

static

Returns: True if the given font name refers to a CAD font, false if it refers to a TTF font.

static void RFontList::uninit()

static

static RResourceList< RFont > RFontList::res

static private

All rights reserved.

This file is part of the QCAD project.

QCAD is free software: you can redistribute it and/or modify it under the terms of the GNU General Public License as published by the Free Software Foundation, either version 3 of the License, or (at your option) any later version.

QCAD is distributed in the hope that it will be useful, but WITHOUT ANY WARRANTY; without even the implied warranty of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU General Public License for more details.

You should have received a copy of the GNU General Public License along with QCAD.