Lines Matching refs:chars_count

377                     int chars_count,  in font_resource_alloc()  argument
387 if (chars_count != 0) { in font_resource_alloc()
388 uint size = (chars_count + 7) / 8; in font_resource_alloc()
391 widths = (void *)gs_alloc_byte_array(mem, chars_count, sizeof(*widths), in font_resource_alloc()
402 memset(widths, 0, chars_count * sizeof(*widths)); in font_resource_alloc()
411 pfres->count = chars_count; in font_resource_alloc()
561 gs_id rid, font_type ftype, int chars_count, in font_resource_simple_alloc() argument
566 chars_count, write_contents); in font_resource_simple_alloc()
638 pdf_resize_resource_arrays(gx_device_pdf *pdev, pdf_font_resource_t *pfres, int chars_count) in pdf_resize_resource_arrays() argument
648 if (chars_count < pfres->count) in pdf_resize_resource_arrays()
652 pfres->count, chars_count); in pdf_resize_resource_arrays()
657 (pfres->count + 7) / 8, (chars_count + 7) / 8); in pdf_resize_resource_arrays()
663 sizeof(*pfres->u.cidfont.v), pfres->count * 2, chars_count * 2); in pdf_resize_resource_arrays()
669 sizeof(*pfres->u.cidfont.Widths2), pfres->count, chars_count); in pdf_resize_resource_arrays()
677 sizeof(*pfres->u.cidfont.CIDToGIDMap), pfres->count, chars_count); in pdf_resize_resource_arrays()
680 pfres->u.cidfont.CIDToGIDMapLength = chars_count; in pdf_resize_resource_arrays()
687 (pfres->count + 7) / 8, (chars_count + 7) / 8); in pdf_resize_resource_arrays()
692 pfres->count = chars_count; in pdf_resize_resource_arrays()
1052 int chars_count; in pdf_font_cidfont_alloc() local
1061 chars_count = ((const gs_font_cid0 *)font)->cidata.common.CIDCount; in pdf_font_cidfont_alloc()
1066 chars_count = ((const gs_font_cid2 *)font)->cidata.common.CIDCount; in pdf_font_cidfont_alloc()
1068 map = (void *)gs_alloc_byte_array(pdev->pdf_memory, chars_count, in pdf_font_cidfont_alloc()
1072 memset(map, 0, chars_count * sizeof(*map)); in pdf_font_cidfont_alloc()
1079 chars_count, write_contents); in pdf_font_cidfont_alloc()
1084 pdfont->u.cidfont.CIDToGIDMapLength = chars_count; in pdf_font_cidfont_alloc()
1095 (chars_count + 7) / 8, "pdf_font_cidfont_alloc"); in pdf_font_cidfont_alloc()
1098 memset(pdfont->u.cidfont.used2, 0, (chars_count + 7) / 8); in pdf_font_cidfont_alloc()
1116 int chars_count = pdfont->count; in pdf_obtain_cidfont_widths_arrays() local
1122 ww = (double *)gs_alloc_byte_array(mem, chars_count, sizeof(*ww), in pdf_obtain_cidfont_widths_arrays()
1125 vv = (double *)gs_alloc_byte_array(mem, chars_count, sizeof(*vv) * 2, in pdf_obtain_cidfont_widths_arrays()
1128 ww0 = (double *)gs_alloc_byte_array(mem, chars_count, sizeof(*ww0), in pdf_obtain_cidfont_widths_arrays()
1132 memset(ww0, 0, chars_count * sizeof(*ww)); in pdf_obtain_cidfont_widths_arrays()
1143 memset(vv, 0, chars_count * 2 * sizeof(*vv)); in pdf_obtain_cidfont_widths_arrays()
1144 memset(ww, 0, chars_count * sizeof(*ww)); in pdf_obtain_cidfont_widths_arrays()