DarkSDK addon with the full Class CAAText (Fast Antialiased DirectX Text)
Last Version 25.02.2009
Thanks to Morcilla - Message "Which DirectX SDKs can be used with DGDK?":
http://forum.thegamecreators.com/?m=forum_view&t=144802&b=22
for original code in text.h/text.cpp!
==================================================================
Replacement to standard DarkGDK functions:
void dbPerformChecklistForFonts ( void );
dbText( int iX, int iY, char* szText ); -> AAPrint(int x, int y, int align, LPSTR pString) or
startText();
AAText(int x, int y, int align, LPSTR pString);
endText();
dbCenterText( int iX, int iY, char* szText ); -> ... AAText(int x, int y, ALIGN_CENTER, LPSTR pString);/AAText(int x, int y, ALIGN_CENTERWINDOW, LPSTR pString); ...
dbSetTextFont( char* szTypeface ); -> setFont(LPSTR pFont, int FontSize, bool FontBold, bool FontItalic);
dbSetTextFont( char* szTypeface, int iCharacterSet ); -> setFont(LPSTR pFont, int FontSize, bool FontBold, bool FontItalic); setCharset(int charset);
dbSetTextSize( int iSize ); -> setAttr(int FontSize, bool FontBold, bool FontItalic);
dbSetTextToNormal( void ); -> setAttr(int FontSize, FALSE, bool FontItalic);
dbSetTextToBold ( void ); -> setAttr(int FontSize, TRUE, bool FontItalic);
dbSetTextToItalic( void ); -> setAttr(int FontSize, bool FontBold, TRUE);
dbSetTextToBoldItalic( void );-> setAttr(int FontSize, TRUE, TRUE);
void dbSetTextToOpaque(); -> setAlpha(int a); // Set Text To Opaque
void dbSetTextToTransparent(); -> setAlpha(int a); // Set Text To Transparent
int dbTextBackgroundType ( void );
char* dbTextFont( void ); -> char* getFontName();
int dbTextSize( void ); -> int getFontSize();
int dbTextStyle( void ); -> int getFontStyle();
int dbTextWidth ( char* szString ); -> int getTextHeight(LPSTR pString);
int dbTextHeight( char* szString ); -> int getTextWidth(LPSTR pString);
+ Draw Bicolor String: void AATextBicolor(int x, int y, int align, LPSTR pString, float up, float down);
+ Draw Text with Shadow: void AATextShadow(int x, int y, int align, LPSTR pString);