Poppler CPP 24.04.0
Public Types | Public Member Functions | List of all members
poppler::font_info Class Reference

#include "poppler/cpp/poppler-font.h"

Public Types

enum  type_enum {
  unknown ,
  type1 ,
  type1c ,
  type1c_ot ,
  type3 ,
  truetype ,
  truetype_ot ,
  cid_type0 ,
  cid_type0c ,
  cid_type0c_ot ,
  cid_truetype ,
  cid_truetype_ot
}
 

Public Member Functions

 font_info ()
 
 font_info (const font_info &fi)
 
 ~font_info ()
 
std::string file () const
 
bool is_embedded () const
 
bool is_subset () const
 
std::string name () const
 
font_infooperator= (const font_info &fi)
 
type_enum type () const
 

Detailed Description

The information about a font used in a PDF document.

Member Enumeration Documentation

◆ type_enum

The various types of fonts available in a PDF document.

Constructor & Destructor Documentation

◆ font_info() [1/2]

font_info::font_info ( )

Constructs an invalid font information.

◆ font_info() [2/2]

font_info::font_info ( const font_info fi)

Copy constructor.

◆ ~font_info()

font_info::~font_info ( )

Destructor.

Member Function Documentation

◆ file()

std::string font_info::file ( ) const
Returns
the file name of the font, in case the font is not embedded nor subset

◆ is_embedded()

bool font_info::is_embedded ( ) const
Returns
whether the font is totally embedded in the document

◆ is_subset()

bool font_info::is_subset ( ) const
Returns
whether there is a subset of the font embedded in the document

◆ name()

std::string font_info::name ( ) const
Returns
the name of the font

◆ operator=()

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

Assignment operator.

◆ type()

font_info::type_enum font_info::type ( ) const
Returns
the type of the font