equal
deleted
inserted
replaced
407 * that extra "1" was added as padding, so the sub-pixel positioning of |
407 * that extra "1" was added as padding, so the sub-pixel positioning of |
408 * fractional metrics could index into it. |
408 * fractional metrics could index into it. |
409 */ |
409 */ |
410 imageSize = bytesWidth*height; |
410 imageSize = bytesWidth*height; |
411 glyphInfo = (GlyphInfo*)malloc(sizeof(GlyphInfo)+imageSize); |
411 glyphInfo = (GlyphInfo*)malloc(sizeof(GlyphInfo)+imageSize); |
412 if (malloc == NULL) { |
412 if (glyphInfo == NULL) { |
413 FREE_AND_RETURN; |
413 FREE_AND_RETURN; |
414 } |
414 } |
415 glyphInfo->cellInfo = NULL; |
415 glyphInfo->cellInfo = NULL; |
416 glyphInfo->rowBytes = bytesWidth; |
416 glyphInfo->rowBytes = bytesWidth; |
417 glyphInfo->width = width; |
417 glyphInfo->width = width; |