~ubuntu-branches/ubuntu/maverick/scribus-ng/maverick-backports

« back to all changes in this revision

Viewing changes to scribus/scfonts_ttf.h

  • Committer: Bazaar Package Importer
  • Author(s): Oleksandr Moskalenko
  • Date: 2007-08-11 17:41:51 UTC
  • mfrom: (0.1.1 upstream) (4.1.2 feisty)
  • Revision ID: james.westby@ubuntu.com-20070811174151-tmkgjvjuc0mtk8ul
Tags: 1.3.4.dfsg+svn20071115-1
* Upstream svn update (Closes: #447480, #448949).
* debian/NEWS: Added a note for users wanting stable Scribus to switch to
  the "scribus" package (Closes: #427638).
* debian/watch: Updated the watch regex to properly track sourceforge
  releases for this branch (Closes: #449700).

Show diffs side-by-side

added added

removed removed

Lines of Context:
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 SCFONTS_TTF_H
8
 
#define SCFONTS_TTF_H
9
 
 
10
 
#include "scribusapi.h"
11
 
#include "scfonts.h"
12
 
 
13
 
/*
14
 
        Class Foi_ttf
15
 
        Subclass of Foi, specifically for TrueType fonts.
16
 
        Implements: RealName() and EmbedFont().
17
 
*/
18
 
 
19
 
class SCRIBUS_API Foi_ttf : public Foi
20
 
{
21
 
        public:
22
 
                Foi_ttf(QString fam, QString sty, QString alt, QString psname, QString path, int face, bool embedps) :
23
 
                Foi(fam,sty,alt,psname,path,face,embedps), metricsread(false)
24
 
                {
25
 
                        HasMetrics=true;
26
 
                        formatCode = SFNT;
27
 
                }
28
 
                QString RealName();
29
 
                bool ReadMetrics();
30
 
                virtual bool EmbedFont(QString &str);
31
 
                virtual void RawData(QByteArray & bb);
32
 
        private:
33
 
                bool metricsread;
34
 
};
35
 
 
36
 
#endif