IVT
BitmapFont.cpp File Reference
#include "BitmapFont.h"
#include "Image/ByteImage.h"
#include "Image/PrimitivesDrawer.h"
#include <stdio.h>
#include <string.h>

Go to the source code of this file.

Macros

#define PCF_PROPERTIES   (1<<0)
 
#define PCF_ACCELERATORS   (1<<1)
 
#define PCF_METRICS   (1<<2)
 
#define PCF_BITMAPS   (1<<3)
 
#define PCF_INK_METRICS   (1<<4)
 
#define PCF_BDF_ENCODINGS   (1<<5)
 
#define PCF_SWIDTHS   (1<<6)
 
#define PCF_GLYPH_NAMES   (1<<7)
 
#define PCF_BDF_ACCELERATORS   (1<<8)
 
#define PCF_DEFAULT_FORMAT   0x00000000
 
#define PCF_INKBOUNDS   0x00000200
 
#define PCF_ACCEL_W_INKBOUNDS   0x00000100
 
#define PCF_COMPRESSED_METRICS   0x00000100
 
#define PCF_GLYPH_PAD_MASK   (3<<0) /* See the bitmap table for explanation */
 
#define PCF_BYTE_MASK   (1<<2) /* If set then Most Sig Byte First */
 
#define PCF_BIT_MASK   (1<<3) /* If set then Most Sig Bit First */
 
#define PCF_SCAN_UNIT_MASK   (3<<4) /* See the bitmap table for explanation */
 

Functions

static short my_invert_byte_order_short (short x, int bInvert=false)
 
static unsigned int my_invert_byte_order_int (unsigned int x, int bInvert=false)
 

Macro Definition Documentation

#define PCF_ACCEL_W_INKBOUNDS   0x00000100

Definition at line 72 of file BitmapFont.cpp.

#define PCF_ACCELERATORS   (1<<1)

Definition at line 61 of file BitmapFont.cpp.

#define PCF_BDF_ACCELERATORS   (1<<8)

Definition at line 68 of file BitmapFont.cpp.

#define PCF_BDF_ENCODINGS   (1<<5)

Definition at line 65 of file BitmapFont.cpp.

#define PCF_BIT_MASK   (1<<3) /* If set then Most Sig Bit First */

Definition at line 77 of file BitmapFont.cpp.

#define PCF_BITMAPS   (1<<3)

Definition at line 63 of file BitmapFont.cpp.

#define PCF_BYTE_MASK   (1<<2) /* If set then Most Sig Byte First */

Definition at line 76 of file BitmapFont.cpp.

#define PCF_COMPRESSED_METRICS   0x00000100

Definition at line 73 of file BitmapFont.cpp.

#define PCF_DEFAULT_FORMAT   0x00000000

Definition at line 70 of file BitmapFont.cpp.

#define PCF_GLYPH_NAMES   (1<<7)

Definition at line 67 of file BitmapFont.cpp.

#define PCF_GLYPH_PAD_MASK   (3<<0) /* See the bitmap table for explanation */

Definition at line 75 of file BitmapFont.cpp.

#define PCF_INK_METRICS   (1<<4)

Definition at line 64 of file BitmapFont.cpp.

#define PCF_INKBOUNDS   0x00000200

Definition at line 71 of file BitmapFont.cpp.

#define PCF_METRICS   (1<<2)

Definition at line 62 of file BitmapFont.cpp.

#define PCF_PROPERTIES   (1<<0)

Definition at line 60 of file BitmapFont.cpp.

#define PCF_SCAN_UNIT_MASK   (3<<4) /* See the bitmap table for explanation */

Definition at line 78 of file BitmapFont.cpp.

#define PCF_SWIDTHS   (1<<6)

Definition at line 66 of file BitmapFont.cpp.

Function Documentation

static unsigned int my_invert_byte_order_int ( unsigned int  x,
int  bInvert = false 
)
static

Definition at line 283 of file BitmapFont.cpp.

static short my_invert_byte_order_short ( short  x,
int  bInvert = false 
)
static

Definition at line 270 of file BitmapFont.cpp.