Subversion Repositories Scribus

Rev

Rev 23163 | Details | Compare with Previous | Last modification | View Log | RSS feed

Rev Author Line No. Line
5979 avox 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
#ifndef SCFACE_PS_H
8
#define SCFACE_PS_H
9
 
10151 cbradney 10
#include <QString>
11
#include <QStringList>
12
#include <QFont>
13
#include <QMap>
5979 avox 14
 
15
#include <ft2build.h>
16
#include FT_FREETYPE_H
17
#include FT_OUTLINE_H
18
#include FT_GLYPH_H
19
 
20
#include "scribusapi.h"
21
#include "fpointarray.h"
22
#include "scconfig.h"
23
 
24
 
25
/*
26
        Class ScFace_postscript
27
        Subclass of ScFace, for PostScript fonts that could possibly have a .afm file
28
        associated with them for metrics information.
29
*/
30
 
23163 craig 31
class ScFace_PostScript : public FtFace
5979 avox 32
{
33
        public:
23163 craig 34
                ScFace_PostScript(const QString& fam, const QString& sty, const QString& alt, const QString& scname, const QString& psname, const QString& path, int face, const QStringList& features);
24153 jghali 35
 
36
                void load() const override;
5979 avox 37
 
11127 jghali 38
                virtual QStringList findFontMetrics(const QString& fontPath) const;
39
                virtual QStringList findFontMetrics(const QString& baseDir, const QString& baseName) const;
23163 craig 40
                virtual bool loadFontMetrics(FT_Face face, const QString& fontPath) const;
5979 avox 41
};
42
 
43
/*
44
        Class ScFace_pfb
45
        Subclass of ScFace, specifically for Adobe type 1 .pfb fonts.
22144 jghali 46
        Implements: realName() and embedFont().
5979 avox 47
*/
48
 
23163 craig 49
class ScFace_PFB : public ScFace_PostScript
5979 avox 50
{
51
        public:
23163 craig 52
                ScFace_PFB(const QString& fam, const QString& sty, const QString& alt, const QString& scname, const QString& psname, const QString& path, int face, const QStringList& features);
24153 jghali 53
 
54
                bool embedFont(QByteArray &str) const override;
5979 avox 55
};
56
 
57
/*
58
        Class ScFace_pfa
59
        Subclass of ScFace, specifically for Adobe type 1 and type 3 .pfa fonts.
22144 jghali 60
        Implements: realName() and embedFont().
5979 avox 61
*/
62
 
23163 craig 63
class ScFace_PFA : public ScFace_PostScript
5979 avox 64
{
65
        public:
23163 craig 66
                ScFace_PFA(const QString& fam, const QString& sty, const QString& alt, const QString& scname, const QString& psname, const QString& path, int face, const QStringList& features);
24153 jghali 67
 
68
                bool embedFont(QByteArray &str) const override;
5979 avox 69
};
70
 
71
 
72
#endif