62 #ifndef D4D_FNT_EXTSRC_SUPPORT
63 #define D4D_FNT_EXTSRC_SUPPORT D4D_FALSE
85 #define D4D_FNT_PRTY_UNDERLINE_MASK (0x03)
86 #define D4D_FNT_PRTY_UNDERLINE_NONE_MASK (0x00)
87 #define D4D_FNT_PRTY_UNDERLINE_LINE_MASK (0x01)
88 #define D4D_FNT_PRTY_UNDERLINE_DOT_MASK (0x02)
89 #define D4D_FNT_PRTY_UNDERLINE_RES_MASK (0x03)
103 #define D4D_FNT_PRTY_STRIKETHROUGH_MASK (0x0C)
104 #define D4D_FNT_PRTY_STRIKETHROUGH_NONE_MASK (0x00)
105 #define D4D_FNT_PRTY_STRIKETHROUGH_SINGLE_MASK (0x04)
106 #define D4D_FNT_PRTY_STRIKETHROUGH_DOUBLE_MASK (0x08)
107 #define D4D_FNT_PRTY_STRIKETHROUGH_TRIPLE_MASK (0x0C)
109 #define D4D_FNT_PRTY_STRIKETHROUGH_SHIFT (0x02)
112 #define D4D_FNT_PRTY_TRANSPARENT_MASK (0x10)
113 #define D4D_FNT_PRTY_TRANSPARENT_NO_MASK (0x00)
114 #define D4D_FNT_PRTY_TRANSPARENT_YES_MASK (0x10)
123 #define D4D_FONT_PACK_BITORDER 0x01
124 #define D4D_FONT_PACK_BITORDER_BIGEND 0
125 #define D4D_FONT_PACK_BITORDER_LITTLEEND 0x01
127 #define D4D_FONT_PACK_SCANBASED 0x02
128 #define D4D_FONT_PACK_SCANBASED_ROW 0
129 #define D4D_FONT_PACK_SCANBASED_COLUMN 0x02
131 #define D4D_FONT_PACK_SCANPREFERRED 0x04
132 #define D4D_FONT_PACK_SCANPREFERRED_ROW 0
133 #define D4D_FONT_PACK_SCANPREFERRED_COLUMN 0x04
135 #define D4D_FONT_PACK_COMPRESSED 0x08
136 #define D4D_FONT_PACK_COMPRESSED_OFF 0
137 #define D4D_FONT_PACK_COMPRESSED_ON 0x08
139 #define D4D_FONT_PACK_DATA_LEN 0x030
140 #define D4D_FONT_PACK_DATA_LEN_8B 0x00
141 #define D4D_FONT_PACK_DATA_LEN_16B 0x10
142 #define D4D_FONT_PACK_DATA_LEN_32B 0x20
144 #define D4D_FONT_FLAGS_IX_STYLE 0x01
145 #define D4D_FONT_FLAGS_IX_STYLE_LINEAR 0x00
146 #define D4D_FONT_FLAGS_IX_STYLE_NONLINEAR 0x01
148 #define D4D_FONT_FLAGS_IX_TYPE 0x02
149 #define D4D_FONT_FLAGS_IX_TYPE_LOOKUP 0x00
150 #define D4D_FONT_FLAGS_IX_TYPE_MAP 0x02
152 #define D4D_FONT_FLAGS_FNT_WIDTH 0x04
153 #define D4D_FONT_FLAGS_FNT_WIDTH_MONOSPACE 0x00
154 #define D4D_FONT_FLAGS_FNT_WIDTH_PROPORTIONAL 0x04
234 #define D4D_DECLARE_USR_FONT_TABLE_BEGIN(name) const D4D_FONT_TYPE name[] = {
236 #define D4D_DECLARE_FONT_TABLE_BEGIN D4D_DECLARE_USR_FONT_TABLE_BEGIN(d4d_FontTable)
240 #define D4D_DECLARE_FONT(fontId, font_descriptor, xScale, yScale, charSpace, lineSpace) \
241 {fontId, (D4D_FONT_DESCRIPTOR*)&(font_descriptor), { xScale, yScale }, { charSpace, lineSpace }, NULL}, // font info will be replaced by font descriptor
243 #define D4D_DECLARE_FONT_FILE(fontId, fileName, xScale, yScale, charSpace, lineSpace) \
244 {fontId, NULL, { xScale, yScale }, { charSpace, lineSpace }, fileName}, // font info will be replaced by font descriptor
247 #define D4D_DECLARE_FONT_TABLE_END {0, NULL, {0, 0}, {0, 0}, NULL } };
272 #if D4D_EXTSRC_FILE_ENABLE != D4D_FALSE
274 void D4D_ExtFntSetWorkPath(
D4D_CHAR* pPath);
275 D4D_CHAR* D4D_ExtFntGetWorkPath(
void);
D4D_WCHAR D4D_TCHAR
Type definition of eGUI character (it depends on UNICODE setting if this is D4D_CHAR or D4D_WCHAR)...
D4D_FONT_TYPE * pFontType
D4D_TCHAR D4D_GetChar(D4D_FONT_TYPE *pFontType, D4D_FONT_IX ix)
D4D_FONT_TYPE * D4D_GetFont(D4D_FONT ix)
struct D4D_FONT_DESCRIPTOR_S D4D_FONT_DESCRIPTOR
const D4D_FONT_TYPE d4d_FontTable[]
D4D_FONT_SIZES charSpacing
D4D_FONT_PROPERTIES properties
const D4D_FONT_IX * pIxTable
const D4D_FONT_OFFSET * pOffTable
D4D_FONT_TYPE * D4D_GetFontTable(void)
void D4D_SetFontTable(D4D_FONT_TYPE *pFontTable)
struct D4D_FONT_DESCRIPTOR_S * pNext
Byte D4D_COOR
Type definition of eGUI coordination variables.
unsigned char Byte
Type definition of Byte (unsigned 8-bit).
D4D_FONT_DESCRIPTOR * pFontDescriptor
const D4D_FONT_DATA * pFontData
D4D_FONT_DSIZE charBmpSize
D4D_FONT_SIZES charFullSize
Type definition of eGUI tabulation structure.
LWord D4D_INDEX
Type definition of eGUI general index variables.
D4D_FONT_SIZE charBaseLine
LWord D4D_BOOL
Type definition of eGUI boolean.
char D4D_CHAR
Type definition of eGUI ASCII character.
D4D_FONT_SIZE D4D_GetFontWidth(D4D_FONT ix)
D4D_FONT_SIZE D4D_GetCharWidth(D4D_FONT ix, D4D_TCHAR ch)
D4D_FONT_SIZES D4D_GetFontSize(D4D_FONT ix)
D4D_COOR D4D_GetNextTab(D4D_TAB *pTab, D4D_COOR pos)
LWord D4D_COLOR
Type definition of eGUI color variables.
D4D_FONT_SIZE D4D_GetFontHeight(D4D_FONT ix)
unsigned short Word
Type definition of Word (unsigned 16-bit).
void * D4D_FILEPTR
Type definition of eGUI file pointer.
const D4D_FONT_SIZE * pSizeTable