Richard Boegli's CnC_Generals_Zero_Hour Fork WIP
This is documentation of Richard Boegil's Zero Hour Fork
 
Loading...
Searching...
No Matches
TTFontClass Class Reference

#include <TTFont.h>

Public Member Functions

 TTFontClass (HDC hdc, char *filename, char *facename, int height, int weight=FW_NORMAL, BYTE charset=ANSI_CHARSET, int width=0, int escapement=0, int orientation=0, BYTE italic=FALSE, BYTE underline=FALSE, BYTE strikeout=FALSE, BYTE outputPrecision=OUT_TT_ONLY_PRECIS, BYTE clipPrecision=CLIP_DEFAULT_PRECIS, BYTE quality=PROOF_QUALITY, BYTE pitchAndFamily=FF_DONTCARE)
 
virtual ~TTFontClass (void)
 
virtual int Char_Pixel_Width (HDC hdc, UINT c) const
 
virtual int Char_Pixel_Width (HDC hdc, char const *string, int *num_bytes=NULL) const
 
virtual int String_Pixel_Width (HDC hdc, char const *string) const
 
virtual void String_Pixel_Bounds (HDC hdc, const char *string, Rect &bounds) const
 
virtual int Get_Width (void) const
 
virtual int Get_Height (void) const
 
virtual int Set_XSpacing (HDC hdc, int x)
 
virtual int Set_YSpacing (int y)
 
virtual int Find_Text_VLength (HDC hdc, char *str, int width)
 
virtual HFONT Get_Font_Ptr (void)
 
virtual int IsFontDBCS (void) const
 
virtual UINT Get_Double_Byte_Char (const char *string, int *num_bytes=NULL) const
 
virtual Point2D Print (HDC hdc, char const *string, Rect const &cliprect, COLORREF forecolor=TEXT_COLOR, COLORREF backcolor=TEXT_NORMAL_SHADOW_COLOR, TextFormatType flag=TPF_LEFT_TEXT, TextShadowType shadow=TPF_NOSHADOW)
 
virtual Point2D Print (HDC hdc, wchar_t const *string, Rect const &cliprect, COLORREF forecolor=TEXT_COLOR, COLORREF backcolor=TEXT_NORMAL_SHADOW_COLOR, TextFormatType flag=TPF_LEFT_TEXT, TextShadowType shadow=TPF_NOSHADOW)
 

Detailed Description

Definition at line 185 of file TTFont.h.

Constructor & Destructor Documentation

◆ TTFontClass()

TTFontClass::TTFontClass ( HDC hdc,
char * filename,
char * facename,
int height,
int weight = FW_NORMAL,
BYTE charset = ANSI_CHARSET,
int width = 0,
int escapement = 0,
int orientation = 0,
BYTE italic = FALSE,
BYTE underline = FALSE,
BYTE strikeout = FALSE,
BYTE outputPrecision = OUT_TT_ONLY_PRECIS,
BYTE clipPrecision = CLIP_DEFAULT_PRECIS,
BYTE quality = PROOF_QUALITY,
BYTE pitchAndFamily = FF_DONTCARE )

Definition at line 120 of file TTFont.cpp.

◆ ~TTFontClass()

virtual TTFontClass::~TTFontClass ( void )
inlinevirtual

Definition at line 207 of file TTFont.h.

Member Function Documentation

◆ Char_Pixel_Width() [1/2]

int TTFontClass::Char_Pixel_Width ( HDC hdc,
char const * string,
int * num_bytes = NULL ) const
virtual

Definition at line 329 of file TTFont.cpp.

◆ Char_Pixel_Width() [2/2]

int TTFontClass::Char_Pixel_Width ( HDC hdc,
UINT c ) const
virtual

Definition at line 288 of file TTFont.cpp.

◆ Find_Text_VLength()

int TTFontClass::Find_Text_VLength ( HDC hdc,
char * str,
int width )
virtual

Definition at line 1041 of file TTFont.cpp.

◆ Get_Double_Byte_Char()

UINT TTFontClass::Get_Double_Byte_Char ( const char * string,
int * num_bytes = NULL ) const
virtual

Definition at line 502 of file TTFont.cpp.

◆ Get_Font_Ptr()

virtual HFONT TTFontClass::Get_Font_Ptr ( void )
inlinevirtual

Definition at line 225 of file TTFont.h.

◆ Get_Height()

int TTFontClass::Get_Height ( void ) const
virtual

Definition at line 582 of file TTFont.cpp.

◆ Get_Width()

int TTFontClass::Get_Width ( void ) const
virtual

Definition at line 562 of file TTFont.cpp.

◆ IsFontDBCS()

virtual int TTFontClass::IsFontDBCS ( void ) const
inlinevirtual

Definition at line 226 of file TTFont.h.

◆ Print() [1/2]

Point2D TTFontClass::Print ( HDC hdc,
char const * string,
Rect const & cliprect,
COLORREF forecolor = TEXT_COLOR,
COLORREF backcolor = TEXT_NORMAL_SHADOW_COLOR,
TextFormatType flag = TPF_LEFT_TEXT,
TextShadowType shadow = TPF_NOSHADOW )
virtual

Definition at line 801 of file TTFont.cpp.

◆ Print() [2/2]

Point2D TTFontClass::Print ( HDC hdc,
wchar_t const * string,
Rect const & cliprect,
COLORREF forecolor = TEXT_COLOR,
COLORREF backcolor = TEXT_NORMAL_SHADOW_COLOR,
TextFormatType flag = TPF_LEFT_TEXT,
TextShadowType shadow = TPF_NOSHADOW )
virtual

Definition at line 687 of file TTFont.cpp.

◆ Set_XSpacing()

int TTFontClass::Set_XSpacing ( HDC hdc,
int x )
virtual

Definition at line 603 of file TTFont.cpp.

◆ Set_YSpacing()

int TTFontClass::Set_YSpacing ( int y)
virtual

Definition at line 634 of file TTFont.cpp.

◆ String_Pixel_Bounds()

void TTFontClass::String_Pixel_Bounds ( HDC hdc,
const char * string,
Rect & bounds ) const
virtual

Definition at line 427 of file TTFont.cpp.

◆ String_Pixel_Width()

int TTFontClass::String_Pixel_Width ( HDC hdc,
char const * string ) const
virtual

Definition at line 379 of file TTFont.cpp.


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