QCAD
Open Source 2D CAD
Loading...
Searching...
No Matches
RFontList Class Reference

Copyright (c) 2011-2018 by Andrew Mustun. More...

#include <RFontList.h>

Static Public Member Functions

static RFontget (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

static RResourceList< RFontres
 Copyright (c) 2011-2018 by Andrew Mustun.
 

Detailed Description

Copyright (c) 2011-2018 by Andrew Mustun.

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:\nThis class is available in script environments.\n

Member Function Documentation

◆ get()

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

◆ getNames()

QStringList RFontList::getNames ( )
static

◆ getSubName()

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

◆ init()

void RFontList::init ( )
static

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

◆ initSubstitutions()

void RFontList::initSubstitutions ( )
static

◆ isCadFont()

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()

void RFontList::uninit ( )
static

Member Data Documentation

◆ res

RResourceList< RFont > RFontList::res
staticprivate

Copyright (c) 2011-2018 by Andrew Mustun.

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 documentation for this class was generated from the following files: