# intraFont.c

`#include <pspkernel.h>`
`#include <pspgu.h>`
`#include <pspgum.h>`
`#include <pspdisplay.h>`
`#include <stdarg.h>`
`#include <stdio.h>`
`#include <string.h>`
`#include <malloc.h>`
`#include "intraFont.h"`
intraFont.cのインクルード依存関係図

## マクロ定義
#define | LOCAL_BUFFER_LENGTH 256
## 関数
static unsigned int | __attribute__ ((aligned(16)))
unsigned long * | intraFontGetTable (FILE *file, unsigned long n_elements, unsigned long bp_element)
int | intraFontGetBMP (intraFont *font, unsigned short id, unsigned char glyphtype)
int | intraFontGetGlyph (unsigned char *data, unsigned long *b, unsigned char glyphtype, signed long *advancemap, Glyph *glyph)
unsigned short | intraFontGetID (intraFont *font, cccUCS2 ucs)
static int | intraFontSwizzle (intraFont *font)
int | intraFontPreCache (intraFont *font, unsigned int options)
intraFont * | intraFontLoad (const char *filename, unsigned int options)
void | intraFontUnload (intraFont *font)
int | intraFontInit (void)
void | intraFontShutdown (void)
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 | intraFontPrintf (intraFont *font, float x, float y, const char *text,...)
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 column, const char *text)
float | intraFontPrintColumnEx (intraFont *font, float x, float y, float column, const char *text, int length)
float | intraFontPrintUCS2 (intraFont *font, float x, float y, const cccUCS2 *text)
float | intraFontPrintUCS2Ex (intraFont *font, float x, float y, const cccUCS2 *text, int length)
float | intraFontPrintColumnUCS2 (intraFont *font, float x, float y, float column, const cccUCS2 *text)
float | intraFontPrintColumnUCS2Ex (intraFont *font, float x, float y, float column, const cccUCS2 *text, int length)
float | intraFontMeasureText (intraFont *font, const char *text)
float | intraFontMeasureTextEx (intraFont *font, const char *text, int length)
float | intraFontMeasureTextUCS2 (intraFont *font, const cccUCS2 *text)
float | intraFontMeasureTextUCS2Ex (intraFont *font, const cccUCS2 *text, int length)

## マクロ定義

#define LOCAL_BUFFER_LENGTH 256

## 関数

static unsigned int __attribute__ | ( | (aligned(16)) |  | ) | `[static]`

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

int intraFontGetBMP | ( | intraFont * | font,
|  | unsigned short | id,
|  | unsigned char | glyphtype |
| ) |  |  |

int intraFontGetGlyph | ( | unsigned char * | data,
|  | unsigned long * | b,
|  | unsigned char | glyphtype,
|  | signed long * | advancemap,
|  | Glyph * | glyph |
| ) |  |  |

unsigned short intraFontGetID | ( | intraFont * | font,
|  | cccUCS2 | ucs |
| ) |  |  |

unsigned long* intraFontGetTable | ( | FILE * | file,
|  | unsigned long | n_elements,
|  | unsigned long | bp_element |
| ) |  |  |

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 cccUCS2 * | text |
| ) |  |  |

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

int intraFontPreCache | ( | intraFont * | font,
|  | unsigned int | options |
| ) |  |  |

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

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

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

float intraFontPrintColumnUCS2 | ( | intraFont * | font,
|  | float | x,
|  | float | y,
|  | float | column,
|  | const cccUCS2 * | text |
| ) |  |  |

float intraFontPrintColumnUCS2Ex | ( | intraFont * | font,
|  | float | x,
|  | float | y,
|  | float | column,
|  | const cccUCS2 * | 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 cccUCS2 * | text |
| ) |  |  |

float intraFontPrintUCS2Ex | ( | intraFont * | font,
|  | float | x,
|  | float | y,
|  | const cccUCS2 * | 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 |  | ) |

static int intraFontSwizzle | ( | intraFont * | font | ) | `[static]`

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