RFontList
Class in Core Module
Header: #include <src/core/RFontList.h>
Description
Section titled “Description”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 Public Functions
Section titled “Static Public Functions”| 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 Private Attributes
Section titled “Static Private Attributes”| static RResourceList< RFont > | res |
Member Documentation
Section titled “Member Documentation”static RFont * RFontList::get(const QString &resName, bool substitute=true)static
getNames
Section titled “getNames”static QStringList RFontList::getNames()static
getSubName
Section titled “getSubName”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.
initSubstitutions
Section titled “initSubstitutions”static void RFontList::initSubstitutions()static
isCadFont
Section titled “isCadFont”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.
uninit
Section titled “uninit”static void RFontList::uninit()static
static RResourceList< RFont > RFontList::resstatic 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.