Scribus
Open source desktop publishing at your fingertips
scfontmetrics.h
1 /*
2 For general Scribus (>=1.3.2) copyright and licensing information please refer
3 to the COPYING file provided with the program. Following this notice may exist
4 a copyright and/or license notice that predates the release of Scribus 1.3.2
5 for which a new license (GPL+exception) is in place.
6 */
7 
8 #ifndef SCFONTMETRICS_H
9 #define SCFONTMETRICS_H
10 
11 #include <utility>
12 #include <QGlobalStatic>
13 #include <QString>
14 #include <QColor>
15 //Added by qt3to4:
16 #include <QPixmap>
17 
18 #include <ft2build.h>
19 #include FT_FREETYPE_H
20 #include FT_OUTLINE_H
21 #include FT_GLYPH_H
22 
23 #include "scribusapi.h"
24 #include "fpoint.h"
25 #include "fpointarray.h"
26 
27 class ScFace;
28 class Scribusdoc;
29 struct FtFace;
30 
31 int SCRIBUS_API setBestEncoding(FT_Face face);
32 QString adobeGlyphName(FT_ULong charcode);
33 
34 FPointArray SCRIBUS_API traceChar(FT_Face face, ScFace::ucs4_type chr, int chs, qreal *x, qreal *y, bool *err);
35 FPointArray SCRIBUS_API traceGlyph(FT_Face face, ScFace::gid_type gl, int chs, qreal *x, qreal *y, bool *err);
36 QPixmap SCRIBUS_API FontSample(const ScFace& fnt, int s, QString ts, QColor back, bool force = false);
37 //bool SCRIBUS_API GlyphNames(const FtFace& fnt, ScFace::FaceEncoding& GList);
38 
39 #endif
Definition: FontSample.py:1
Base Class FtFace provides an ScFace private implementation for Freetype based fonts. Subclasses are ScFace_ps and ScFace_ttf.
Definition: ftface.h:53
Base Class ScFace : This is a total rewrite of the old Foi class.
Definition: scface.h:73
Definition: fpointarray.h:42