Take_cheeze Wiki
Advertisement

Windows[]

Calculating Point[]

pixel = point * resolution / 72;

72 * (1 + 1/3) = 96

Freetype[]

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[]

Shinonome font[]

Advertisement