Lines Matching refs:bitmap
125 BitmapPtr bitmap;
129 bitmap = malloc(sizeof(BitmapRec));
130 if(bitmap == NULL)
133 *bitmap = (BitmapRec) {
149 free(bitmap);
154 fprintf(stderr, "Duplicate bitmap %d.\n", code);
155 free(bitmap);
227 bitmap->advanceWidth = advanceWidth;
228 bitmap->horiBearingX = horiBearingX + dx;
229 bitmap->horiBearingY = horiBearingY - dy;
230 bitmap->width = new_width;
231 bitmap->height = new_height;
232 bitmap->stride = (new_width + 7) / 8;
234 bitmap->raster = malloc(bitmap->height * bitmap->stride);
235 if(bitmap->raster == NULL) {
236 free(bitmap);
239 memset(bitmap->raster, 0, bitmap->height * bitmap->stride);
243 bitmap->raster[y * bitmap->stride + x / 8] |=
247 strike->bitmaps[i][j] = bitmap;
250 return bitmap;
276 BitmapPtr bitmap0, bitmap;
284 while((bitmap = strikeBitmapIndex(strike, cmap, index + n)) != NULL) {
286 if(!SAME_METRICS(bitmap0, bitmap)) {
298 SAME_METRICS(bitmap, b1) &&
299 SAME_METRICS(bitmap, b2) &&
300 SAME_METRICS(bitmap, b3) &&
301 SAME_METRICS(bitmap, b4)) {
341 BitmapPtr bitmap = STRIKE_BITMAP(strike, code);
342 if(bitmap)
343 return bitmap->index;
436 BitmapPtr bitmap = STRIKE_BITMAP(strike, i);
437 if(!bitmap)
439 if(bitmap->advanceWidth > width_max)
440 width_max = bitmap->advanceWidth;
456 BitmapPtr bitmap = STRIKE_BITMAP(strike, code);
457 if(bitmap) {
460 (((float)bitmap->advanceWidth) / strike->sizeX) *
464 ((float)bitmap->horiBearingX / strike->sizeX) *
468 (((float)bitmap->horiBearingY - bitmap->height)
472 (((float)bitmap->horiBearingX + bitmap->width)
476 (((float)bitmap->horiBearingY) / strike->sizeY) *