Scribus Developer Documentation - API
logo-pen

Scribus Developer Documentation - API

scfonts.cpp File Reference

#include <QApplication>
#include <QDir>
#include <QDomDocument>
#include <QFile>
#include <QFileInfo>
#include <QFont>
#include <QGlobalStatic>
#include <QMap>
#include <QRegExp>
#include <QString>
#include <cstdlib>
#include "scfonts.h"
#include "fonts/ftface.h"
#include "fonts/scface_ps.h"
#include "fonts/scface_ttf.h"
#include "fonts/scfontmetrics.h"
#include "prefsmanager.h"
#include "prefsfile.h"
#include "prefscontext.h"
#include "prefstable.h"
#include "scribus.h"
#include "scribuscore.h"
#include "scpaths.h"
#include "util.h"

Include dependency graph for scfonts.cpp:

Go to the source code of this file.

Functions

void getFontFormat (FT_Face face, ScFace::FontFormat &fmt, ScFace::FontType &type)
void getSFontType (FT_Face face, ScFace::FontType &type)


Function Documentation

void getFontFormat ( FT_Face  face,
ScFace::FontFormat fmt,
ScFace::FontType type 
)

tests magic words to determine the fontformat and preliminary fonttype

Definition at line 197 of file scfonts.cpp.

References ftIOFunc(), ScFace::OTF, ScFace::PFA, ScFace::PFB, ScFace::SFNT, ScFace::TTCF, ScFace::TTF, ScFace::TYPE1, ScFace::TYPE42, ScFace::UNKNOWN_FORMAT, and ScFace::UNKNOWN_TYPE.

Referenced by SCFonts::AddScalableFont().

void getSFontType ( FT_Face  face,
ScFace::FontType type 
)

Checks face, which must be sfnt based, for the subtype. Possible values: TTF, CFF, OTF

Definition at line 267 of file scfonts.cpp.

References ScFace::OTF, and ScFace::TTF.

Referenced by SCFonts::AddScalableFont().

Created with personalized Doxygen. This is documentation for GPL software Scribus - Open Source Desktop Publishing.