From 0ea5fc66924303d1bf73ba283a383e2aadee02f2 Mon Sep 17 00:00:00 2001 From: neodarz Date: Sat, 11 Aug 2018 20:21:34 +0200 Subject: Initial commit --- docs/doxygen/nel/classNL3D_1_1CFontGenerator.html | 572 ++++++++++++++++++++++ 1 file changed, 572 insertions(+) create mode 100644 docs/doxygen/nel/classNL3D_1_1CFontGenerator.html (limited to 'docs/doxygen/nel/classNL3D_1_1CFontGenerator.html') diff --git a/docs/doxygen/nel/classNL3D_1_1CFontGenerator.html b/docs/doxygen/nel/classNL3D_1_1CFontGenerator.html new file mode 100644 index 00000000..1d15e83a --- /dev/null +++ b/docs/doxygen/nel/classNL3D_1_1CFontGenerator.html @@ -0,0 +1,572 @@ + + + + nevrax.org : docs + + + + + + + + + + + + + + +
# Home   # nevrax.com   
+ + + + +
Nevrax
+ + + + + + + + + + +
+ + +
+ Nevrax.org
+ + + + + + + +
#News
#Mailing-list
#Documentation
#CVS
#Bugs
#License
+
+ + +
+ + +
+Docs + +
+  + + + + + +
Documentation 
+ +
+Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Namespace Members   Compound Members   File Members   Related Pages   Search  
+

NL3D::CFontGenerator Class Reference

Generate bitmap based on a true type font (using freetype2). +More... +

+#include <font_generator.h> +

+List of all members. + + + + + + + + + + + + + + + + + + + +

Public Methods

 CFontGenerator (const std::string &fontFileName, const std::string &fontExFileName="")
 Constructor. More...

virtual ~CFontGenerator ()
uint8getBitmap (ucchar c, uint32 size, uint32 &width, uint32 &height, uint32 &pitch, sint32 &left, sint32 &top, sint32 &advx, uint32 &glyphIndex)
 generate and return a bitmap. More...

void getSizes (ucchar c, uint32 size, uint32 &width, uint32 &height)
 returns the width and height of a character using a specific size and. More...

void getKerning (ucchar left, ucchar right, sint32 &kernx)
uint32 getCharIndex (ucchar c)

Public Attributes

std::string FontFileName

Private Methods

const char * getFT2Error (FT_Error fte)

Private Attributes

FT_Face _Face

Static Private Attributes

FT_Library _Library
bool _LibraryInit = false
+


Detailed Description

+Generate bitmap based on a true type font (using freetype2). +

+

+Author:
+Vianney Lecroart , Nevrax France
+Date:
+2000
+

+ +

+Definition at line 51 of file font_generator.h.


Constructor & Destructor Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + +
NL3D::CFontGenerator::CFontGenerator const std::string &   fontFileName,
const std::string &   fontExFileName = ""
+
+ + + + + +
+   + + +

+Constructor. +

+

+Parameters:
+ + +
fontFileName  +path+filename (ex: "c:\winnt\fonts\arial.ttf")
+
+

+Definition at line 93 of file font_generator.cpp. +

+References _Face, _Library, _LibraryInit, getFT2Error, nlerror, and nlwarning.

+

+ + + + +
+ + + + + + + + + +
NL3D::CFontGenerator::~CFontGenerator   [virtual]
+
+ + + + + +
+   + + +

+ +

+Definition at line 138 of file font_generator.cpp.

+


Member Function Documentation

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
uint8 * NL3D::CFontGenerator::getBitmap ucchar   c,
uint32   size,
uint32  width,
uint32  height,
uint32  pitch,
sint32  left,
sint32  top,
sint32  advx,
uint32  glyphIndex
+
+ + + + + +
+   + + +

+generate and return a bitmap. +

+

+Parameters:
+ + + + + + +
c  +the unicode char
size  +size of the generated font in ??? format
width  +width of the generated bitmap, this value is set by this function
height  +height of the generated bitmap, this value is set by this function
pitch  +pitch of the generated bitmap (+ or - the number of bytes per row), this value is set by this function
+
+

+Definition at line 169 of file font_generator.cpp. +

+References _Face, getFT2Error, height, nlerror, ucchar, and width.

+

+ + + + +
+ + + + + + + + + + +
uint32 NL3D::CFontGenerator::getCharIndex ucchar   c
+
+ + + + + +
+   + + +

+ +

+Definition at line 248 of file font_generator.cpp. +

+References _Face, and ucchar.

+

+ + + + +
+ + + + + + + + + + +
const char * NL3D::CFontGenerator::getFT2Error FT_Error   fte [private]
+
+ + + + + +
+   + + +

+ +

+Definition at line 73 of file font_generator.cpp. +

+References ft_errors, and NLMISC::smprintf. +

+Referenced by CFontGenerator, getBitmap, getKerning, and getSizes.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + +
void NL3D::CFontGenerator::getKerning ucchar   left,
ucchar   right,
sint32  kernx
+
+ + + + + +
+   + + +

+ +

+Definition at line 226 of file font_generator.cpp. +

+References _Face, getFT2Error, nlerror, and ucchar.

+

+ + + + +
+ + + + + + + + + + + + + + + + + + + + + + + + + + + + + + + +
void NL3D::CFontGenerator::getSizes ucchar   c,
uint32   size,
uint32  width,
uint32  height
+
+ + + + + +
+   + + +

+returns the width and height of a character using a specific size and. +

+

+Warning:
+this function is not very fast (but faster than getBitmap()) because it has to load the char before.
+

+Definition at line 142 of file font_generator.cpp. +

+References _Face, getFT2Error, height, nlerror, ucchar, and width.

+


Member Data Documentation

+

+ + + + +
+ + +
FT_Face NL3D::CFontGenerator::_Face [private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 90 of file font_generator.h. +

+Referenced by CFontGenerator, getBitmap, getCharIndex, getKerning, and getSizes.

+

+ + + + +
+ + +
FT_Library NL3D::CFontGenerator::_Library [static, private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 69 of file font_generator.cpp. +

+Referenced by CFontGenerator.

+

+ + + + +
+ + +
bool NL3D::CFontGenerator::_LibraryInit = false [static, private] +
+
+ + + + + +
+   + + +

+ +

+Definition at line 70 of file font_generator.cpp. +

+Referenced by CFontGenerator.

+

+ + + + +
+ + +
std::string NL3D::CFontGenerator::FontFileName +
+
+ + + + + +
+   + + +

+ +

+Definition at line 81 of file font_generator.h.

+


The documentation for this class was generated from the following files: + + + +
                                                                                                                                                                    +
+ + -- cgit v1.2.1