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

okular

  • Okular
  • FontInfo
Public Types | Public Member Functions | List of all members
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 QList< FontInfo > List
 

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
 
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
 

Detailed Description

A small class that represents the information of a font.

Definition at line 27 of file fontinfo.h.

Member Typedef Documentation

typedef QList<FontInfo> Okular::FontInfo::List

Definition at line 30 of file fontinfo.h.

Member Enumeration Documentation

enum Okular::FontInfo::EmbedType

The possible kinds of embed.

Enumerator
NotEmbedded 
EmbeddedSubset 
FullyEmbedded 

Definition at line 58 of file fontinfo.h.

enum Okular::FontInfo::FontType

The possible kinds of fonts.

Enumerator
Unknown 
Type1 
Type1C 
Type1COT 
Type3 
TrueType 
TrueTypeOT 
CIDType0 
CIDType0C 
CIDType0COT 
CIDTrueType 
CIDTrueTypeOT 
TeXPK 
Since
0.10 (KDE 4.4)
TeXVirtual 
Since
0.10 (KDE 4.4)
TeXFontMetric 
Since
0.10 (KDE 4.4)
TeXFreeTypeHandled 
Since
0.10 (KDE 4.4)

Definition at line 35 of file fontinfo.h.

Constructor & Destructor Documentation

FontInfo::FontInfo ( )

Construct a new empty font info.

Definition at line 46 of file fontinfo.cpp.

FontInfo::FontInfo ( const FontInfo &  fi)

Copy constructor.

Definition at line 51 of file fontinfo.cpp.

FontInfo::~FontInfo ( )

Destructor.

Definition at line 56 of file fontinfo.cpp.

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

Returns the type of font embedding.

Definition at line 80 of file fontinfo.cpp.

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

Returns the name of the font.

Definition at line 60 of file fontinfo.cpp.

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.

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

Definition at line 130 of file fontinfo.cpp.

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

Comparison operator.

Definition at line 120 of file fontinfo.cpp.

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)

Sets the type of font embedding.

Definition at line 85 of file fontinfo.cpp.

void FontInfo::setFile ( const QString &  file)

Definition at line 95 of file fontinfo.cpp.

void FontInfo::setName ( const QString &  name)

Sets a new name for the font.

Definition at line 65 of file fontinfo.cpp.

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)

Change the type of the font.

Definition at line 75 of file fontinfo.cpp.

FontInfo::FontType FontInfo::type ( ) const

Returns the type of the font.

Definition at line 70 of file fontinfo.cpp.


The documentation for this class was generated from the following files:
  • fontinfo.h
  • fontinfo.cpp
This file is part of the KDE documentation.
Documentation copyright © 1996-2014 The KDE developers.
Generated on Tue Oct 14 2014 22:45:03 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