Lines Matching refs:wbytes
52 static unsigned int width = 8, wbytes, height = 16; variable
275 hash = fnv_32_buf(bytes, wbytes * height, FNV1_32_INIT) % FONTCVT_NHASH; in add_glyph()
277 if (memcmp(gl->g_data, bytes, wbytes * height) == 0) { in add_glyph()
284 gl->g_data = xmalloc(wbytes * height); in add_glyph()
285 memcpy(gl->g_data, bytes, wbytes * height); in add_glyph()
365 if (wbytes == 1) { in parse_bitmap_line()
367 } else if (wbytes == 2) { in parse_bitmap_line()
371 errx(1, "Unsupported wbytes %u!", wbytes); in parse_bitmap_line()
384 uint8_t bytes[wbytes * height], bytes_r[wbytes * height]; in parse_bdf()
403 if (parse_bitmap_line(bytes + i * wbytes, in parse_bdf()
404 bytes_r + i * wbytes, line, dwidth) != 0) in parse_bdf()
426 wbytes = howmany(width, 8); in set_width()
453 bytes = xmalloc(wbytes * height); in parse_hex()
454 bytes_r = xmalloc(wbytes * height); in parse_hex()
468 if (parse_bitmap_line(bytes + i * wbytes, in parse_hex()
469 bytes_r + i * wbytes, line, dwidth) != 0) { in parse_hex()
576 if ((i % wbytes) == 0) { in write_glyph_source()
611 if (cb(gl->g_data, wbytes * height, 1, fp) != 1) in write_glyphs()
740 size_t uncompressed_size = wbytes * height * glyph_unique; in write_fnt_source()
1014 wbytes = howmany(width, 8); in main()