Unit BmpFontsTypes

DescriptionusesClasses, Interfaces, Objects and RecordsFunctions and ProceduresTypesConstantsVariables

Description

BmpFontsTypes provides types and utilities for defining bitmap fonts as constants in Pascal code.

Concrete examples of fonts defined using these types may be found in bfnt_xxx units. You can generate such bfnt_xxx units from *.ttf fonts using my font2pascal program.

Types in this unit were defined with the idea to easily use them with OpenGL glBitmap and glPixelStorei procedures (see e.g. unit OpenGLBmpFonts that does exactly this). However, this unit does not depend on OpenGL, it's generally-usable.

Overview

Classes, Interfaces, Objects and Records

Name Description
record TBFNTCharInfo  
packed record TBFNTChar TBFNTChar record defines the bitmap character.

Functions and Procedures

function BFNTCharRowByteLength(Width, Alignment: Cardinal): Cardinal; overload;
function BFNTCharRowByteLength(BFNTChar: PBFNTChar): Cardinal; overload;

Types

PBFNTChar = ˆTBFNTChar;
TBmpFont = array[char]of PBFNTChar;
PBmpFont = ˆTBmpFont;

Description

Functions and Procedures

function BFNTCharRowByteLength(Width, Alignment: Cardinal): Cardinal; overload;
 
function BFNTCharRowByteLength(BFNTChar: PBFNTChar): Cardinal; overload;
 

Types

PBFNTChar = ˆTBFNTChar;
 
TBmpFont = array[char]of PBFNTChar;
 
PBmpFont = ˆTBmpFont;
 

Generated by PasDoc 0.10.0 on 2008-02-25 00:00:29