BDFfont
TBDF_Font
Events | Fields | u_BDFfont | Members | Methods | Properties | Class Hierarchy
Class Hierarchy
TBDF_Font
TBDF_Font = class
File
Description
Font for all charset
Members
Fields
Field Description
Description  
FileName Font FileName
FIsTransparent transparent font
FOnProgressLoading Message with percents loaded
FontYOffset This is FontYOffset, a member of class TBDF_Font.
FPixelSpaceChar pixel space between character property
FullBitmap a bitmap with all glyphs inside
Height This is Height, a member of class TBDF_Font.
List_Glyph of DIB
SharePalette Palette of the Font
Properties
Property Description
IsTransparent This is IsTransparent, a member of class TBDF_Font.
PixelSpaceChar This is PixelSpaceChar, a member of class TBDF_Font.
Events
Event Description
OnFontLoading This is OnFontLoading, a member of class TBDF_Font.
Methods
Method Description
AddGlyphToFullBitmap Add a glyph to the font system AddGlyphToFullBitmap simply add the glyph in the internal representation of the font.
Create Creates and initializes a TBDF_Font.
Destroy Destroys an instance of TBDF_Font.
DrawText Draw a string on the Canvas at position (X,Y) To call the Draw method, the BDFfont must be initialized, by LoadFromFile method. Canvas drawing method can be configured as standard canvas routine. Beware that some character may not be defined ih the BDF font file you load !
InitFullBitmap  
LoadFromFile Load a BDF font from a file The file is load as CSV file (in fact, a text file separated by space). When loading very large file, use OnProgressLoading to be aware of progress loading.
SaveToBitmap Save the font to BMP file The BDF font is export in BMP file, 1bit for color. All the glyphs are inside, from left to right
SetPixelSpaceChar Change pixel space between two char (glyph) When the font is created, the value is set by default at 2 pixels, but can be changed with this method. A negative value will be converted to 0.
Legend
private
Data Member
Property
Event
Method
virtual
Links

Created with a demo version of Doc-O-Matic. This version is supplied for evaluation purposes only, do not distribute this documentation. To obtain a commercial license please see http://www.doc-o-matic.com/purchase.html.
Copyright (c) 2003. All rights reserved.