libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
Art::Paperback::Internals::Font_collection Class Reference

Classes

struct  Create_new
 
struct  Internal
 

Public Member Functions

 Font_collection (Create_new const &, Resource_collection &)
 Constructor.
 
 ~Font_collection () noexcept
 Destructor.
 
Resource_collectionresource_collection ()
 Access the parent resource collection.
 
Carousel::Object object ()
 Get the object for this font collection.
 
Carousel::Name embed (Graphics::Font &f)
 Embed font in this font collection and return the local name of the embedded font.
 

Static Public Attributes

static constexpr Create_new const create_new {}
 

Private Member Functions

 Font_collection (Font_collection const &)=delete
 
 Font_collection (Font_collection &&)=delete
 
Font_collectionoperator= (Font_collection const &)=delete
 
Font_collectionoperator= (Font_collection &&)=delete
 

Private Attributes

unique_ptr< Internalinternal
 

Constructor & Destructor Documentation

◆ Font_collection()

Art::Paperback::Internals::Font_collection::Font_collection ( Create_new const & ,
Resource_collection & parent )

Constructor.

This constructor creates a new font collection.

Parameters
parentThe parent resource collection.

◆ ~Font_collection()

Art::Paperback::Internals::Font_collection::~Font_collection ( )
noexcept

Destructor.

Member Function Documentation

◆ resource_collection()

Resource_collection & Art::Paperback::Internals::Font_collection::resource_collection ( )

Access the parent resource collection.

Returns
Returns a reference to the parent resource collection.

◆ object()

Carousel::Object Art::Paperback::Internals::Font_collection::object ( )

Get the object for this font collection.

Returns
Return the data object for this font collection.

◆ embed()

Carousel::Name Art::Paperback::Internals::Font_collection::embed ( Graphics::Font & font)

Embed font in this font collection and return the local name of the embedded font.

Parameters
fontThe font to embed.
Returns
Returns the local name of the embedded font.