• Skip to content
  • Skip to link menu
KDE API Reference
  • KDE API Reference
  • kdegraphics API Reference
  • KDE Home
  • Contact Us
 

okular

  • sources
  • kde-4.12
  • kdegraphics
  • okular
  • core
fontinfo.h
Go to the documentation of this file.
1 /***************************************************************************
2  * Copyright (C) 2007 by Pino Toscano <pino@kde.org> *
3  * *
4  * This program is free software; you can redistribute it and/or modify *
5  * it under the terms of the GNU General Public License as published by *
6  * the Free Software Foundation; either version 2 of the License, or *
7  * (at your option) any later version. *
8  ***************************************************************************/
9 
10 #ifndef _OKULAR_FONTINFO_H_
11 #define _OKULAR_FONTINFO_H_
12 
13 #include <QtCore/QList>
14 #include <QtCore/QMetaType>
15 #include <QtCore/QSharedDataPointer>
16 #include <QtCore/QString>
17 
18 #include "okular_export.h"
19 
20 namespace Okular {
21 
22 class FontInfoPrivate;
23 
27 class OKULAR_EXPORT FontInfo
28 {
29  public:
30  typedef QList<FontInfo> List;
31 
35  enum FontType
36  {
37  Unknown,
38  Type1,
39  Type1C,
40  Type1COT,
41  Type3,
42  TrueType,
43  TrueTypeOT,
44  CIDType0,
45  CIDType0C,
46  CIDType0COT,
47  CIDTrueType,
48  CIDTrueTypeOT,
49  TeXPK,
50  TeXVirtual,
51  TeXFontMetric,
52  TeXFreeTypeHandled
53  };
54 
58  enum EmbedType
59  {
60  NotEmbedded,
61  EmbeddedSubset,
62  FullyEmbedded
63  };
64 
68  FontInfo();
72  FontInfo( const FontInfo &fi );
76  ~FontInfo();
77 
81  QString name() const;
85  void setName( const QString& name );
86 
90  FontType type() const;
94  void setType( FontType type );
95 
99  EmbedType embedType() const;
103  void setEmbedType( EmbedType type );
104 
109  QString file() const;
110  void setFile( const QString& file );
111 
117  bool canBeExtracted() const;
118 
122  void setCanBeExtracted( bool extractable );
123 
133  void setNativeId( const QVariant &id );
134 
140  QVariant nativeId() const;
141 
142  FontInfo& operator=( const FontInfo &fi );
143 
147  bool operator==( const FontInfo &fi ) const;
148 
149  bool operator!=( const FontInfo &fi ) const;
150 
151  private:
153  friend class FontInfoPrivate;
155  QSharedDataPointer<FontInfoPrivate> d;
156 };
157 
158 }
159 
160 Q_DECLARE_METATYPE(Okular::FontInfo)
161 
162 #endif
Okular::FontInfo::CIDTrueTypeOT
Definition: fontinfo.h:48
Okular::FontInfo::EmbeddedSubset
Definition: fontinfo.h:61
Okular::FontInfo::Unknown
Definition: fontinfo.h:37
Okular::FontInfo::CIDType0C
Definition: fontinfo.h:45
Okular::FontInfo::TeXFontMetric
Definition: fontinfo.h:51
Okular::FontInfo::Type1
Definition: fontinfo.h:38
okular_export.h
Okular::FontInfo::TrueType
Definition: fontinfo.h:42
Okular::FontInfo::NotEmbedded
Definition: fontinfo.h:60
Okular::FontInfo
A small class that represents the information of a font.
Definition: fontinfo.h:27
Okular::FontInfo::Type1C
Definition: fontinfo.h:39
Okular::FontInfo::CIDTrueType
Definition: fontinfo.h:47
Okular::FontInfo::EmbedType
EmbedType
The possible kinds of embed.
Definition: fontinfo.h:58
Okular::FontInfo::FontType
FontType
The possible kinds of fonts.
Definition: fontinfo.h:35
Okular::FontInfo::TeXPK
Definition: fontinfo.h:49
Okular::FontInfo::TeXVirtual
Definition: fontinfo.h:50
Okular::FontInfo::TrueTypeOT
Definition: fontinfo.h:43
OKULAR_EXPORT
#define OKULAR_EXPORT
Definition: okular_export.h:30
Okular::FontInfo::Type1COT
Definition: fontinfo.h:40
Okular::FontInfo::CIDType0COT
Definition: fontinfo.h:46
Okular::FontInfo::Type3
Definition: fontinfo.h:41
Okular::FontInfo::CIDType0
Definition: fontinfo.h:44
Okular::FontInfo::List
QList< FontInfo > List
Definition: fontinfo.h:30
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:02 by doxygen 1.8.7 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.

okular

Skip menu "okular"
  • Main Page
  • Namespace List
  • Namespace Members
  • Alphabetical List
  • Class List
  • Class Hierarchy
  • Class Members
  • File List
  • File Members
  • Related Pages

kdegraphics API Reference

Skip menu "kdegraphics API Reference"
  •     libkdcraw
  •     libkexiv2
  •     libkipi
  •     libksane
  • okular

Search



Report problems with this website to our bug tracking system.
Contact the specific authors with questions and comments about the page contents.

KDE® and the K Desktop Environment® logo are registered trademarks of KDE e.V. | Legal