2
* Copyright (C) 2009, Pino Toscano <pino@kde.org>
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, or (at your option)
9
* This program is distributed in the hope that it will be useful,
10
* but WITHOUT ANY WARRANTY; without even the implied warranty of
11
* MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the
12
* GNU General Public License for more details.
14
* You should have received a copy of the GNU General Public License
15
* along with this program; if not, write to the Free Software
16
* Foundation, Inc., 51 Franklin Street - Fifth Floor, Boston, MA 02110-1301, USA.
19
#ifndef POPPLER_FONT_H
20
#define POPPLER_FONT_H
22
#include "poppler-global.h"
30
class document_private;
31
class font_info_private;
33
class font_iterator_private;
35
class POPPLER_CPP_EXPORT font_info
54
font_info(const font_info &fi);
57
std::string name() const;
58
std::string file() const;
59
bool is_embedded() const;
60
bool is_subset() const;
61
type_enum type() const;
63
font_info& operator=(const font_info &fi);
66
font_info(font_info_private &dd);
69
friend class font_iterator;
73
class POPPLER_CPP_EXPORT font_iterator : public poppler::noncopyable
78
std::vector<font_info> next();
79
bool has_next() const;
80
int current_page() const;
83
font_iterator(int, document_private *dd);
85
font_iterator_private *d;
86
friend class document;