okular
Okular::FontInfo Class Reference
#include <fontinfo.h>
Detailed Description
A small class that represents the information of a font.Definition at line 27 of file fontinfo.h.
Public Types | |
| enum | EmbedType { NotEmbedded, EmbeddedSubset, FullyEmbedded } |
| enum | FontType { Unknown, Type1, Type1C, Type1COT, Type3, TrueType, TrueTypeOT, CIDType0, CIDType0C, CIDType0COT, CIDTrueType, CIDTrueTypeOT } |
| typedef QList< FontInfo > | List |
Public Member Functions | |
| bool | canBeExtracted () const |
| EmbedType | embedType () const |
| QString | file () const |
| FontInfo (const FontInfo &fi) | |
| FontInfo () | |
| QString | name () const |
| QVariant | nativeId () const |
| bool | operator!= (const FontInfo &fi) const |
| FontInfo & | operator= (const FontInfo &fi) |
| bool | operator== (const FontInfo &fi) const |
| void | setCanBeExtracted (bool extractable) |
| void | setEmbedType (EmbedType type) |
| void | setFile (const QString &file) |
| void | setName (const QString &name) |
| void | setNativeId (const QVariant &id) |
| void | setType (FontType type) |
| FontType | type () const |
| ~FontInfo () | |
Member Typedef Documentation
| typedef QList<FontInfo> Okular::FontInfo::List |
Definition at line 30 of file fontinfo.h.
Member Enumeration Documentation
The possible kinds of fonts.
- Enumerator:
-
Unknown Type1 Type1C Type1COT Type3 TrueType TrueTypeOT CIDType0 CIDType0C CIDType0COT CIDTrueType CIDTrueTypeOT
Definition at line 35 of file fontinfo.h.
Constructor & Destructor Documentation
| FontInfo::FontInfo | ( | ) |
| FontInfo::FontInfo | ( | const FontInfo & | fi | ) |
| FontInfo::~FontInfo | ( | ) |
Member Function Documentation
| bool FontInfo::canBeExtracted | ( | ) | const |
In case of embedded fonts, returns if the font can be extracted into a QByteArray.
- Since:
- 0.8 (KDE 4.2)
Definition at line 100 of file fontinfo.cpp.
| FontInfo::EmbedType FontInfo::embedType | ( | ) | const |
| QString FontInfo::file | ( | ) | const |
In case of not embedded font, returns the path of the font that represents this font.
Definition at line 90 of file fontinfo.cpp.
| QString FontInfo::name | ( | ) | const |
| QVariant FontInfo::nativeId | ( | ) | const |
Returns the "native" id of the font info.
- Since:
- 0.8 (KDE 4.2)
Definition at line 115 of file fontinfo.cpp.
| bool FontInfo::operator!= | ( | const FontInfo & | fi | ) | const |
Definition at line 125 of file fontinfo.cpp.
Definition at line 130 of file fontinfo.cpp.
| bool FontInfo::operator== | ( | const FontInfo & | fi | ) | const |
| void FontInfo::setCanBeExtracted | ( | bool | extractable | ) |
Sets if a font can be extracted or not.
False by default
Definition at line 105 of file fontinfo.cpp.
| void FontInfo::setEmbedType | ( | FontInfo::EmbedType | type | ) |
| void FontInfo::setFile | ( | const QString & | file | ) |
Definition at line 95 of file fontinfo.cpp.
| void FontInfo::setName | ( | const QString & | name | ) |
| void FontInfo::setNativeId | ( | const QVariant & | id | ) |
Sets the "native" id of the font info.
This is for use of the Generator, that can optionally store an handle (a pointer, an identifier, etc) of the "native" font object, if any.
- Since:
- 0.8 (KDE 4.2)
Definition at line 110 of file fontinfo.cpp.
| void FontInfo::setType | ( | FontInfo::FontType | type | ) |
| FontInfo::FontType FontInfo::type | ( | ) | const |
The documentation for this class was generated from the following files:
KDE 4.2 API Reference