# intraFont.h

`#include "intrafont_wrapper.h"`
`#include "libccc.h"`
intraFont.hのインクルード依存関係図
このグラフは、どのファイルから直接、間接的にインクルードされているかを示しています。

ソースコードを見る。

## データ構造
struct | Glyph
struct | GlyphBW
struct | PGF_Header
struct | intraFont
## マクロ定義
#define | INTRAFONT_ADVANCE_H 0x00000000
#define | INTRAFONT_ADVANCE_V 0x00000100
#define | INTRAFONT_ALIGN_LEFT 0x00000000
#define | INTRAFONT_ALIGN_CENTER 0x00000200
#define | INTRAFONT_ALIGN_RIGHT 0x00000400
#define | INTRAFONT_ALIGN_FULL 0x00000600
#define | INTRAFONT_SCROLL_LEFT 0x00002000
#define | INTRAFONT_SCROLL_SEESAW 0x00002200
#define | INTRAFONT_SCROLL_RIGHT 0x00002400
#define | INTRAFONT_SCROLL_THROUGH 0x00002600
#define | INTRAFONT_WIDTH_VAR 0x00000000
#define | INTRAFONT_WIDTH_FIX 0x00000800
#define | INTRAFONT_ACTIVE 0x00001000
#define | INTRAFONT_CACHE_MED 0x00000000
#define | INTRAFONT_CACHE_LARGE 0x00004000
#define | INTRAFONT_CACHE_ASCII 0x00008000
#define | INTRAFONT_CACHE_ALL 0x0000C000
#define | INTRAFONT_STRING_ASCII (0x00010000*CCC_CP000)
#define | INTRAFONT_STRING_CP437 (0x00010000*CCC_CP437)
#define | INTRAFONT_STRING_CP850 (0x00010000*CCC_CP850)
#define | INTRAFONT_STRING_CP866 (0x00010000*CCC_CP866)
#define | INTRAFONT_STRING_SJIS (0x00010000*CCC_CP932)
#define | INTRAFONT_STRING_GBK (0x00010000*CCC_CP936)
#define | INTRAFONT_STRING_KOR (0x00010000*CCC_CP949)
#define | INTRAFONT_STRING_BIG5 (0x00010000*CCC_CP950)
#define | INTRAFONT_STRING_CP1251 (0x00010000*CCC_CP1251)
#define | INTRAFONT_STRING_CP1252 (0x00010000*CCC_CP1252)
#define | INTRAFONT_STRING_UTF8 (0x00010000*CCC_CPUTF8)
#define | FILETYPE_PGF 0x00
#define | FILETYPE_BWFON 0x01
#define | PGF_BMP_H_ROWS 0x01
#define | PGF_BMP_V_ROWS 0x02
#define | PGF_BMP_OVERLAY 0x03
#define | PGF_NO_EXTRA1 0x04
#define | PGF_NO_EXTRA2 0x08
#define | PGF_NO_EXTRA3 0x10
#define | PGF_CHARGLYPH 0x20
#define | PGF_SHADOWGLYPH 0x40
#define | PGF_CACHED 0x80
#define | PGF_WIDTH_MASK 0x000000FF
#define | PGF_OPTIONS_MASK 0x00003FFF
#define | PGF_ALIGN_MASK 0x00000600
#define | PGF_SCROLL_MASK 0x00002600
#define | PGF_CACHE_MASK 0x0000C000
#define | PGF_STRING_MASK 0x00FF0000
## 関数
int | intraFontInit (void)
void | intraFontShutdown (void)
intraFont * | intraFontLoad (const char *filename, unsigned int options)
void | intraFontUnload (intraFont *font)
void | intraFontActivate (intraFont *font)
void | intraFontSetStyle (intraFont *font, float size, unsigned int color, unsigned int shadowColor, unsigned int options)
void | intraFontSetEncoding (intraFont *font, unsigned int options)
void | intraFontSetAltFont (intraFont *font, intraFont *altFont)
float | intraFontPrintUCS2 (intraFont *font, float x, float y, const unsigned short *text)
float | intraFontPrintUCS2Ex (intraFont *font, float x, float y, const unsigned short *text, int length)
float | intraFontPrintColumnUCS2 (intraFont *font, float x, float y, float width, const unsigned short *text)
float | intraFontPrintColumnUCS2Ex (intraFont *font, float x, float y, float width, const unsigned short *text, int length)
float | intraFontPrint (intraFont *font, float x, float y, const char *text)
float | intraFontPrintEx (intraFont *font, float x, float y, const char *text, int length)
float | intraFontPrintColumn (intraFont *font, float x, float y, float width, const char *text)
float | intraFontPrintColumnEx (intraFont *font, float x, float y, float width, const char *text, int length)
float | intraFontPrintf (intraFont *font, float x, float y, const char *text,...)
float | intraFontMeasureText (intraFont *font, const char *text)
float | intraFontMeasureTextEx (intraFont *font, const char *text, int length)
float | intraFontMeasureTextUCS2 (intraFont *font, const unsigned short *text)
float | intraFontMeasureTextUCS2Ex (intraFont *font, const unsigned short *text, int length)

## マクロ定義

#define FILETYPE_BWFON 0x01

#define FILETYPE_PGF 0x00

#define INTRAFONT_ACTIVE 0x00001000

#define INTRAFONT_ADVANCE_H 0x00000000

#define INTRAFONT_ADVANCE_V 0x00000100

#define INTRAFONT_ALIGN_CENTER 0x00000200

#define INTRAFONT_ALIGN_FULL 0x00000600

#define INTRAFONT_ALIGN_LEFT 0x00000000

#define INTRAFONT_ALIGN_RIGHT 0x00000400

#define INTRAFONT_CACHE_ALL 0x0000C000

#define INTRAFONT_CACHE_ASCII 0x00008000

#define INTRAFONT_CACHE_LARGE 0x00004000

#define INTRAFONT_CACHE_MED 0x00000000

#define INTRAFONT_SCROLL_LEFT 0x00002000

#define INTRAFONT_SCROLL_RIGHT 0x00002400

#define INTRAFONT_SCROLL_SEESAW 0x00002200

#define INTRAFONT_SCROLL_THROUGH 0x00002600

#define INTRAFONT_STRING_ASCII (0x00010000*CCC_CP000)

#define INTRAFONT_STRING_BIG5 (0x00010000*CCC_CP950)

#define INTRAFONT_STRING_CP1251 (0x00010000*CCC_CP1251)

#define INTRAFONT_STRING_CP1252 (0x00010000*CCC_CP1252)

#define INTRAFONT_STRING_CP437 (0x00010000*CCC_CP437)

#define INTRAFONT_STRING_CP850 (0x00010000*CCC_CP850)

#define INTRAFONT_STRING_CP866 (0x00010000*CCC_CP866)

#define INTRAFONT_STRING_GBK (0x00010000*CCC_CP936)

#define INTRAFONT_STRING_KOR (0x00010000*CCC_CP949)

#define INTRAFONT_STRING_SJIS (0x00010000*CCC_CP932)

#define INTRAFONT_STRING_UTF8 (0x00010000*CCC_CPUTF8)

#define INTRAFONT_WIDTH_FIX 0x00000800

#define INTRAFONT_WIDTH_VAR 0x00000000

#define PGF_ALIGN_MASK 0x00000600

#define PGF_BMP_H_ROWS 0x01

#define PGF_BMP_OVERLAY 0x03

#define PGF_BMP_V_ROWS 0x02

#define PGF_CACHE_MASK 0x0000C000

#define PGF_CACHED 0x80

#define PGF_CHARGLYPH 0x20

#define PGF_NO_EXTRA1 0x04

#define PGF_NO_EXTRA2 0x08

#define PGF_NO_EXTRA3 0x10

#define PGF_OPTIONS_MASK 0x00003FFF

#define PGF_SCROLL_MASK 0x00002600

#define PGF_SHADOWGLYPH 0x40

#define PGF_STRING_MASK 0x00FF0000

#define PGF_WIDTH_MASK 0x000000FF

## 関数

void intraFontActivate | ( | intraFont * | font | ) |

int intraFontInit | ( | void |  | ) |

intraFont* intraFontLoad | ( | const char * | filename,
|  | unsigned int | options |
| ) |  |  |

float intraFontMeasureText | ( | intraFont * | font,
|  | const char * | text |
| ) |  |  |

float intraFontMeasureTextEx | ( | intraFont * | font,
|  | const char * | text,
|  | int | length |
| ) |  |  |

float intraFontMeasureTextUCS2 | ( | intraFont * | font,
|  | const unsigned short * | text |
| ) |  |  |

float intraFontMeasureTextUCS2Ex | ( | intraFont * | font,
|  | const unsigned short * | text,
|  | int | length |
| ) |  |  |

float intraFontPrint | ( | intraFont * | font,
|  | float | x,
|  | float | y,
|  | const char * | text |
| ) |  |  |

float intraFontPrintColumn | ( | intraFont * | font,
|  | float | x,
|  | float | y,
|  | float | width,
|  | const char * | text |
| ) |  |  |

float intraFontPrintColumnEx | ( | intraFont * | font,
|  | float | x,
|  | float | y,
|  | float | width,
|  | const char * | text,
|  | int | length |
| ) |  |  |

float intraFontPrintColumnUCS2 | ( | intraFont * | font,
|  | float | x,
|  | float | y,
|  | float | width,
|  | const unsigned short * | text |
| ) |  |  |

float intraFontPrintColumnUCS2Ex | ( | intraFont * | font,
|  | float | x,
|  | float | y,
|  | float | width,
|  | const unsigned short * | text,
|  | int | length |
| ) |  |  |

float intraFontPrintEx | ( | intraFont * | font,
|  | float | x,
|  | float | y,
|  | const char * | text,
|  | int | length |
| ) |  |  |

float intraFontPrintf | ( | intraFont * | font,
|  | float | x,
|  | float | y,
|  | const char * | text,
|  |  | ... |
| ) |  |  |

float intraFontPrintUCS2 | ( | intraFont * | font,
|  | float | x,
|  | float | y,
|  | const unsigned short * | text |
| ) |  |  |

float intraFontPrintUCS2Ex | ( | intraFont * | font,
|  | float | x,
|  | float | y,
|  | const unsigned short * | text,
|  | int | length |
| ) |  |  |

void intraFontSetAltFont | ( | intraFont * | font,
|  | intraFont * | altFont |
| ) |  |  |

void intraFontSetEncoding | ( | intraFont * | font,
|  | unsigned int | options |
| ) |  |  |

void intraFontSetStyle | ( | intraFont * | font,
|  | float | size,
|  | unsigned int | color,
|  | unsigned int | shadowColor,
|  | unsigned int | options |
| ) |  |  |

void intraFontShutdown | ( | void |  | ) |

void intraFontUnload | ( | intraFont * | font | ) |