VR-Forces Developer's Guide
 All Classes Namespaces Files Functions Variables Typedefs Enumerations Enumerator Properties Friends Macros Groups Pages
List of all members | Public Types | Public Member Functions
makVrv::DtFontInterface Class Referenceabstract

A class with encapsulated a font loaded from disk with a given size.

Inheritance diagram for makVrv::DtFontInterface:
Inheritance graph
[legend]

Public Types

enum  TextAlignment { AlignLeft, AlignCenter, AlignRight, AlignJustify }
 

Public Member Functions

 DtFontInterface ()=default
 
 ~DtFontInterface ()
 
virtual float lineHeight () const =0
 
virtual DtBoundingBox calculateBoundingBox (const DtPen &pen, const DtUnicode &string, unsigned int pos=0, int len=-1)=0
 
virtual Dt2dPoint calculateGlyphSize (const DtPen &pen, const DtUnicode &string, unsigned int pos=0, int len=-1)=0
 
virtual bool isValid () const =0
 

Member Enumeration Documentation

Enumerator
AlignLeft 
AlignCenter 
AlignRight 
AlignJustify 

Constructor & Destructor Documentation

makVrv::DtFontInterface::DtFontInterface ( )
default

CTOR.

makVrv::DtFontInterface::~DtFontInterface ( )

DTOR.

Member Function Documentation

virtual float makVrv::DtFontInterface::lineHeight ( ) const
pure virtual

Implemented in makVrv::DtFont.

virtual DtBoundingBox makVrv::DtFontInterface::calculateBoundingBox ( const DtPen pen,
const DtUnicode string,
unsigned int  pos = 0,
int  len = -1 
)
pure virtual

Calculate the bounding box for a string.

Implemented in makVrv::DtFont.

virtual Dt2dPoint makVrv::DtFontInterface::calculateGlyphSize ( const DtPen pen,
const DtUnicode string,
unsigned int  pos = 0,
int  len = -1 
)
pure virtual

Calculate the bounding box for a string.

Implemented in makVrv::DtFont.

virtual bool makVrv::DtFontInterface::isValid ( ) const
pure virtual

Returns true if this font is valid (has a character map)

Implemented in makVrv::DtFont.


The documentation for this class was generated from the following file:

Document ID: Generated on Thu Oct 23 22:29:17 EDT 2025 from SVN revision 280951
Copyright © 2005-2024 MAK Technologies. All Rights Reserved (www.mak.com)