libart-paperback 0.1.0-a.1.20260122225059.e5fea306241a
PDF (1.4) library for C++
Art::Paperback::Graphics::Font Class Referenceabstract

Base class for fonts. More...

#include <art/paperback/graphics/font.hxx>

Inheritance diagram for Art::Paperback::Graphics::Font:

Public Member Functions

virtual ~Font () noexcept
 Destructor.
 
virtual Documentdocument ()=0
 Access the parent document of this font.
 
virtual Carousel::Object object ()=0
 Get the COS object for this font.
 
virtual string name () const =0
 Get the name of the font.
 
virtual int16_t get_ascent () const =0
 Get the font ascent.
 
virtual int16_t get_descent () const =0
 Get the font descent.
 
virtual uint16_t get_xheight () const =0
 Get the font X-height.
 
virtual uint16_t get_capheight () const =0
 Get the font cap-height.
 
virtual Text_width get_text_width (string const &)=0
 Compute text width.
 

Protected Member Functions

 Font ()
 Constructor.
 

Private Member Functions

 Font (Font const &)=delete
 
 Font (Font &&)=delete
 
Fontoperator= (Font const &)=delete
 
Fontoperator= (Font &&)=delete
 

Detailed Description

Base class for fonts.

Constructor & Destructor Documentation

◆ ~Font()

virtual Art::Paperback::Graphics::Font::~Font ( )
inlinevirtualnoexcept

Destructor.

◆ Font()

Art::Paperback::Graphics::Font::Font ( )
inlineprotected

Constructor.

Member Function Documentation

◆ document()

virtual Document & Art::Paperback::Graphics::Font::document ( )
pure virtual

Access the parent document of this font.

Implemented in Art::Paperback::Graphics::Standard_font.

◆ object()

virtual Carousel::Object Art::Paperback::Graphics::Font::object ( )
pure virtual

Get the COS object for this font.

Implemented in Art::Paperback::Graphics::Standard_font.

◆ name()

virtual string Art::Paperback::Graphics::Font::name ( ) const
pure virtual

Get the name of the font.

Returns
Returns the name of the font.

Implemented in Art::Paperback::Graphics::Standard_font.

◆ get_ascent()

virtual int16_t Art::Paperback::Graphics::Font::get_ascent ( ) const
pure virtual

Get the font ascent.

Returns
Returns the font ascent.

Implemented in Art::Paperback::Graphics::Standard_font.

◆ get_descent()

virtual int16_t Art::Paperback::Graphics::Font::get_descent ( ) const
pure virtual

Get the font descent.

Implemented in Art::Paperback::Graphics::Standard_font.

◆ get_xheight()

virtual uint16_t Art::Paperback::Graphics::Font::get_xheight ( ) const
pure virtual

Get the font X-height.

Implemented in Art::Paperback::Graphics::Standard_font.

◆ get_capheight()

virtual uint16_t Art::Paperback::Graphics::Font::get_capheight ( ) const
pure virtual

Get the font cap-height.

Implemented in Art::Paperback::Graphics::Standard_font.

◆ get_text_width()

virtual Text_width Art::Paperback::Graphics::Font::get_text_width ( string const & )
pure virtual

Compute text width.

Implemented in Art::Paperback::Graphics::Standard_font.