Scribus
Open source desktop publishing at your fingertips
scface_ttf.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 #ifndef SCFACE_TTF_H
8 #define SCFACE_TTF_H
9 
10 #include "scribusapi.h"
11 #include "fonts/ftface.h"
12 #include "fonts/sfnt.h"
13 
14 
15 /*
16  Class ScFace_ttf
17  Subclass of ScFace, specifically for TrueType fonts.
18  Implements: RealName() and EmbedFont().
19 */
20 
21 class SCRIBUS_API ScFace_ttf : public FtFace
22 {
23 public:
24  ScFace_ttf ( QString fam, QString sty, QString alt, QString scname, QString psname, QString path, int face );
25  ~ScFace_ttf();
26 
27  void load () const;
28  void unload () const;
29 
30  bool EmbedFont(QByteArray &str) const;
31  void RawData(QByteArray & bb) const;
32 
33  qreal glyphKerning ( ScFace::gid_type gl1, ScFace::gid_type gl2, qreal sz ) const;
34 
35  virtual bool glyphNames(ScFace::FaceEncoding& GList) const;
36  virtual bool hasNames() const;
37  virtual bool isSymbolic() const;
38 
39 private:
40  mutable KernFeature * kernFeature;
41  mutable sfnt::PostTable checkPost;
42 
43 };
44 
45 #endif
Definition: sfnt.h:62
Base Class FtFace provides an ScFace private implementation for Freetype based fonts. Subclasses are ScFace_ps and ScFace_ttf.
Definition: ftface.h:53
Definition: scface_ttf.h:21
Definition: sfnt.h:44