Subversion Repositories Scribus

Rev

Rev 5979 | 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_TTF_H
8
#define SCFACE_TTF_H
9
 
10
#include "scribusapi.h"
11
#include "fonts/ftface.h"
12
 
13
/*
14
        Class ScFace_ttf
15
        Subclass of ScFace, specifically for TrueType fonts.
16
        Implements: RealName() and EmbedFont().
17
*/
18
 
19
class SCRIBUS_API ScFace_ttf : public FtFace
20
{
21
public:
22
        ScFace_ttf(QString fam, QString sty, QString alt, QString scname, QString psname, QString path, int face)
23
        : FtFace(fam, sty, alt, scname, psname, path, face )
24
        {
25
                formatCode = ScFace::SFNT;
26
        }
6307 avox 27
        bool EmbedFont(QString &str) const;
28
        void RawData(QByteArray & bb) const;
5979 avox 29
};
30
 
31
#endif