Windows[]
Calculating Point[]
- freetype guide
- resolution Dot per inch(DPI)
pixel = point * resolution / 72;
72 * (1 + 1/3) = 96
Freetype[]
- Free font engine
- API Reference
Mono bitmap[]
- printing bitmap
- 0x80 means that most left pixel of this octed is true.
- 0x01 means that most right pixel of this octed is true.
FT_Bitmap *bm = &face->glyph->bitmap;
int row, col, bit, c;
/* モノクロビットマップの場合 */
for (row = 0; row < bm->rows; row ++) {
for (col = 0; col < bm->pitch; col ++) {
c = bm->buffer[bm->pitch * row + col];
for (bit = 7; bit >= 0; bit --) {
if (((c >> bit) & 1) == 0)
printf(" ");
else
printf("##");
}
}
printf("\n");
}
Family name[]
- Sans-serif: Gothic
- Serif: Mincho
IPA Font[]
- Download page
- Free true type/open type font.
- Little big.
Shinonome font[]
- Download page
- Free bitmap font.
- "bfd" format is used.