Search for usage in LXR

Okular::FontInfo Class Reference

#include <fontinfo.h>

Public Types

enum  EmbedType { NotEmbedded , EmbeddedSubset , FullyEmbedded }
enum  FontType {
  Unknown , Type1 , Type1C , Type1COT ,
  Type3 , TrueType , TrueTypeOT , CIDType0 ,
  CIDType0C , CIDType0COT , CIDTrueType , CIDTrueTypeOT ,
  TeXPK , TeXVirtual , TeXFontMetric , TeXFreeTypeHandled
typedef QVector< FontInfoList

Public Member Functions

 FontInfo ()
 FontInfo (const FontInfo &fi)
 ~FontInfo ()
bool canBeExtracted () const
EmbedType embedType () const
QString file () const
QString name () const
QVariant nativeId () const
bool operator!= (const FontInfo &fi) const
FontInfooperator= (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 setSubstituteName (const QString &substituteName)
void setType (FontType type)
QString substituteName () const
FontType type () const

Detailed Description

A small class that represents the information of a font.

Definition at line 24 of file fontinfo.h.

Member Typedef Documentation

◆ List

Definition at line 27 of file fontinfo.h.

Member Enumeration Documentation

◆ EmbedType

The possible kinds of embed.

Definition at line 54 of file fontinfo.h.

◆ FontType

The possible kinds of fonts.

0.10 (KDE 4.4)
0.10 (KDE 4.4)
0.10 (KDE 4.4)
0.10 (KDE 4.4)

Definition at line 32 of file fontinfo.h.

Constructor & Destructor Documentation

◆ FontInfo() [1/2]

FontInfo::FontInfo ( )

Construct a new empty font info.

Definition at line 38 of file fontinfo.cpp.

◆ FontInfo() [2/2]

FontInfo::FontInfo ( const FontInfo & fi)

Copy constructor.

Definition at line 43 of file fontinfo.cpp.

◆ ~FontInfo()

FontInfo::~FontInfo ( )


Definition at line 48 of file fontinfo.cpp.

Member Function Documentation

◆ canBeExtracted()

bool FontInfo::canBeExtracted ( ) const

In case of embedded fonts, returns if the font can be extracted into a QByteArray.

0.8 (KDE 4.2)

Definition at line 102 of file fontinfo.cpp.

◆ embedType()

FontInfo::EmbedType FontInfo::embedType ( ) const

Returns the type of font embedding.

Definition at line 82 of file fontinfo.cpp.

◆ file()

QString FontInfo::file ( ) const

In case of not embedded font, returns the path of the font that represents this font.

Definition at line 92 of file fontinfo.cpp.

◆ name()

QString FontInfo::name ( ) const

Returns the name of the font.

Definition at line 52 of file fontinfo.cpp.

◆ nativeId()

QVariant FontInfo::nativeId ( ) const

Returns the "native" id of the font info.

0.8 (KDE 4.2)

Definition at line 117 of file fontinfo.cpp.

◆ operator!=()

bool FontInfo::operator!= ( const FontInfo & fi) const

Definition at line 127 of file fontinfo.cpp.

◆ operator=()

FontInfo & FontInfo::operator= ( const FontInfo & fi)

Definition at line 132 of file fontinfo.cpp.

◆ operator==()

bool FontInfo::operator== ( const FontInfo & fi) const

Comparison operator.

Definition at line 122 of file fontinfo.cpp.

◆ setCanBeExtracted()

void FontInfo::setCanBeExtracted ( bool extractable)

Sets if a font can be extracted or not.

False by default

Definition at line 107 of file fontinfo.cpp.

◆ setEmbedType()

void FontInfo::setEmbedType ( FontInfo::EmbedType type)

Sets the type of font embedding.

Definition at line 87 of file fontinfo.cpp.

◆ setFile()

void FontInfo::setFile ( const QString & file)

Definition at line 97 of file fontinfo.cpp.

◆ setName()

void FontInfo::setName ( const QString & name)

Sets a new name for the font.

Definition at line 57 of file fontinfo.cpp.

◆ setNativeId()

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.

0.8 (KDE 4.2)

Definition at line 112 of file fontinfo.cpp.

◆ setSubstituteName()

void FontInfo::setSubstituteName ( const QString & substituteName)

Sets a new substitute name for the font.

Definition at line 67 of file fontinfo.cpp.

◆ setType()

void FontInfo::setType ( FontInfo::FontType type)

Change the type of the font.

Definition at line 77 of file fontinfo.cpp.

◆ substituteName()

QString FontInfo::substituteName ( ) const

Returns the substitute name for the font.

Definition at line 62 of file fontinfo.cpp.

◆ type()

FontInfo::FontType FontInfo::type ( ) const

Returns the type of the font.

Definition at line 72 of file fontinfo.cpp.

The documentation for this class was generated from the following files:
This file is part of the KDE documentation.
Documentation copyright © 1996-2024 The KDE developers.
Generated on Fri Jun 14 2024 11:48:50 by doxygen 1.10.0 written by Dimitri van Heesch, © 1997-2006

KDE's Doxygen guidelines are available online.