DATAKIT SDK  V2026.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...
 
FontTypeEnum & FontType ()
 Retrieves the font type - get/set -. More...
 
const FontTypeEnum & FontType () const
 Retrieves the font type - read only -. More...
 
Dtk_Size_t & ID ()
 Retrieves the font Id - get/set -. More...
 
const Dtk_Size_t & ID () const
 Retrieves the font Id - read only -. More...
 
Dtk_string & Name ()
 Retrieves the font name - get/set -. More...
 
const Dtk_string & Name () const
 Retrieves the font name - read only -. 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 
185  {
186  FontUnknown = 0,
190  };

Constructor & Destructor Documentation

◆ ~Dtk_Font()

Dtk_Font::~Dtk_Font ( )

Destructor.

◆ Dtk_Font()

Dtk_Font::Dtk_Font ( )

Default constructor.

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()

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.

Dtk_Font::FontTruescript
@ FontTruescript
Definition: util_draw_dtk.hpp:187
Dtk_Font::FontUnknown
@ FontUnknown
Definition: util_draw_dtk.hpp:186
Dtk_Font::FontOpentype
@ FontOpentype
Definition: util_draw_dtk.hpp:189
Dtk_Font::FontPostscript
@ FontPostscript
Definition: util_draw_dtk.hpp:188