Back to index

scribus-ng  1.3.4.dfsg+svn20071115
scface_ttf.h
Go to the documentation of this file.
00001 /*
00002 For general Scribus (>=1.3.2) copyright and licensing information please refer
00003 to the COPYING file provided with the program. Following this notice may exist
00004 a copyright and/or license notice that predates the release of Scribus 1.3.2
00005 for which a new license (GPL+exception) is in place.
00006 */
00007 #ifndef SCFACE_TTF_H
00008 #define SCFACE_TTF_H
00009 
00010 #include "scribusapi.h"
00011 #include "fonts/ftface.h"
00012 
00013 /*
00014        Class ScFace_ttf
00015        Subclass of ScFace, specifically for TrueType fonts.
00016        Implements: RealName() and EmbedFont().
00017 */
00018 
00019 class SCRIBUS_API ScFace_ttf : public FtFace
00020 {
00021 public:
00022        ScFace_ttf(QString fam, QString sty, QString alt, QString scname, QString psname, QString path, int face) 
00023        : FtFace(fam, sty, alt, scname, psname, path, face )
00024        {
00025               formatCode = ScFace::SFNT;
00026        }
00027        bool EmbedFont(QString &str) const;
00028        void RawData(QByteArray & bb) const;
00029 };
00030 
00031 #endif