DATAKIT API  V2025.4
Dtk_Font Class Reference

This is the font class This class lets you access to font information (name, type ...) More...

Public Types

enum  FontTypeEnum { FontUnknown = 0, FontTruescript, FontPostscript, FontOpentype }
 

Public Member Functions

 Dtk_Font ()
 Default constructor. More...
 
 Dtk_Font (const Dtk_Font &in)
 Copy constructor. More...
 
 Dtk_Font (Dtk_Font &&in) DTK_NOEXCEPT
 Move constructor. More...
 
FontTypeEnumFontType ()
 Retrieves the font type - get/set -. More...
 
const FontTypeEnumFontType () const
 Retrieves the font type - read only -. More...
 
Dtk_Size_tID ()
 Retrieves the font Id - get/set -. More...
 
const Dtk_Size_tID () const
 Retrieves the font Id - read only -. More...
 
Dtk_stringName ()
 Retrieves the font name - get/set -. More...
 
const Dtk_stringName () const
 Retrieves the font name - read only -. More...
 
Dtk_Fontoperator= (const Dtk_Font &in)
 Copy assignment operator. More...
 
Dtk_Fontoperator= (Dtk_Font &&in) DTK_NOEXCEPT
 Move assignment operator. More...
 
 ~Dtk_Font ()
 Destructor. More...
 

Protected Attributes

FontTypeEnum _font_type
 Font type (Postcript, TrueType) More...
 
Dtk_Size_t _ID
 Font ID. More...
 
Dtk_string _name
 Font name. More...
 

Detailed Description

This is the font class This class lets you access to font information (name, type ...)

Member Enumeration Documentation

◆ FontTypeEnum

Enumerator
FontUnknown 
FontTruescript 
FontPostscript 
FontOpentype 

Constructor & Destructor Documentation

◆ ~Dtk_Font()

Dtk_Font::~Dtk_Font ( )

Destructor.

◆ Dtk_Font() [1/3]

Dtk_Font::Dtk_Font ( )

Default constructor.

◆ Dtk_Font() [2/3]

Dtk_Font::Dtk_Font ( const Dtk_Font in)

Copy constructor.

Parameters
inObject to copy from.

◆ Dtk_Font() [3/3]

Dtk_Font::Dtk_Font ( Dtk_Font &&  in)

Move constructor.

Parameters
inObject to move from.

Member Function Documentation

◆ FontType() [1/2]

FontTypeEnum& Dtk_Font::FontType ( )

Retrieves the font type - get/set -.

Returns
The font type (FontTruescript, FontPostscript, etc...)
See also
FontTypeEnum() const

◆ FontType() [2/2]

const FontTypeEnum& Dtk_Font::FontType ( ) const

Retrieves the font type - read only -.

Returns
The font type (FontTruescript, FontPostscript, etc...)
See also
FontTypeEnum()

◆ ID() [1/2]

Dtk_Size_t& Dtk_Font::ID ( )

Retrieves the font Id - get/set -.

Returns
The font Id
See also
ID() const

◆ ID() [2/2]

const Dtk_Size_t& Dtk_Font::ID ( ) const

Retrieves the font Id - read only -.

Returns
The font Id
See also
ID()

◆ Name() [1/2]

Dtk_string& Dtk_Font::Name ( )

Retrieves the font name - get/set -.

Returns
The font name
See also
Name() const

◆ Name() [2/2]

const Dtk_string& Dtk_Font::Name ( ) const

Retrieves the font name - read only -.

Returns
The font name
See also
Name()

◆ operator=() [1/2]

Dtk_Font& Dtk_Font::operator= ( const Dtk_Font in)

Copy assignment operator.

Parameters
inObject to copy from.

◆ operator=() [2/2]

Dtk_Font& Dtk_Font::operator= ( Dtk_Font &&  in)

Move assignment operator.

Parameters
inObject to move from.

Field Documentation

◆ _font_type

FontTypeEnum Dtk_Font::_font_type
protected

Font type (Postcript, TrueType)

◆ _ID

Dtk_Size_t Dtk_Font::_ID
protected

Font ID.

◆ _name

Dtk_string Dtk_Font::_name
protected

Font name.