libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
font-collection.hxx
1#ifndef art__paperback__internals__font_collection_hxx_
2#define art__paperback__internals__font_collection_hxx_
3
4#include <art/paperback/types.hxx>
5#include <art/paperback/forward.hxx>
6
8{
9
11 {
12 public:
13 struct Create_new {};
14 static constexpr Create_new const create_new{};
15
16 /// Constructor.
17 ///
18 Font_collection(Create_new const&, Resource_collection&);
19
20 /// Destructor.
21 ///
22 ~Font_collection() noexcept;
23
24 /// Access the parent resource collection.
25 ///
28
29 /// Get the object for this font collection.
30 ///
31 Carousel::Object
32 object();
33
34 /// Embed font in this font collection and return the local name of the
35 /// embedded font.
36 ///
37 Carousel::Name
38 embed(Graphics::Font& f);
39
40 private:
41 Font_collection(Font_collection const&) = delete;
43 Font_collection& operator=(Font_collection const&) = delete;
44 Font_collection& operator=(Font_collection&&) = delete;
45
46 private:
47 struct Internal;
48 unique_ptr<Internal> internal;
49
50 };
51
52} // namespace Art::Paperback::Internals
53
54#endif
Definition font-collection.hxx:11
Font_collection(Create_new const &, Resource_collection &)
Constructor.
Definition font-collection.cxx:45
Resource_collection & resource_collection()
Access the parent resource collection.
Definition font-collection.cxx:58
Carousel::Name embed(Graphics::Font &f)
Embed font in this font collection and return the local name of the embedded font.
Definition font-collection.cxx:77
~Font_collection() noexcept
Destructor.
Definition font-collection.cxx:51
Represents a PDF resource collection.
Definition resource-collection.hxx:17
COS file format implementation namespace.
Definition array.cxx:6
Graphics namespace.
Definition forward.hxx:105
Internal namespace.
Definition forward.hxx:91