| line |
true |
false |
branch |
|
36
|
0 |
0 |
if (ga->glyph_id < gb->glyph_id) return -1; |
|
37
|
0 |
0 |
if (ga->glyph_id > gb->glyph_id) return 1; |
|
70
|
0 |
0 |
if (!font || !out_buf) return PDFMAKE_EINVAL; |
|
|
0 |
0 |
if (!font || !out_buf) return PDFMAKE_EINVAL; |
|
73
|
0 |
0 |
if (font->type == PDFMAKE_FONT_TYPE1) { |
|
112
|
0 |
0 |
for (i = 0; i < 32; i++) { |
|
131
|
0 |
0 |
if (font->type != PDFMAKE_FONT_TRUETYPE || !font->ttf) { |
|
|
0 |
0 |
if (font->type != PDFMAKE_FONT_TRUETYPE || !font->ttf) { |
|
139
|
0 |
0 |
for (i = 1; i < ttf->num_glyphs; i++) { |
|
142
|
0 |
0 |
if (ttf->used_glyphs && (ttf->used_glyphs[byte] & bit)) { |
|
|
0 |
0 |
if (ttf->used_glyphs && (ttf->used_glyphs[byte] & bit)) { |
|
147
|
0 |
0 |
if (used_count == 0) { |
|
154
|
0 |
0 |
if (!mappings) return PDFMAKE_ENOMEM; |
|
159
|
0 |
0 |
for (cp = 0x20; cp < 0x10000 && map_count < used_count; cp++) { |
|
|
0 |
0 |
for (cp = 0x20; cp < 0x10000 && map_count < used_count; cp++) { |
|
161
|
0 |
0 |
if (gid > 0) { |
|
164
|
0 |
0 |
if (ttf->used_glyphs && (ttf->used_glyphs[byte] & bit)) { |
|
|
0 |
0 |
if (ttf->used_glyphs && (ttf->used_glyphs[byte] & bit)) { |
|
167
|
0 |
0 |
for (j = 0; j < map_count; j++) { |
|
168
|
0 |
0 |
if (mappings[j].glyph_id == gid) { |
|
173
|
0 |
0 |
if (!exists) { |
|
182
|
0 |
0 |
if (map_count == 0) { |
|
209
|
0 |
0 |
while (mi < map_count) { |
|
214
|
0 |
0 |
while (range_start + range_len < map_count) { |
|
216
|
0 |
0 |
if (mappings[next].glyph_id == mappings[range_start].glyph_id + range_len && |
|
217
|
0 |
0 |
mappings[next].unicode == mappings[range_start].unicode + range_len) { |
|
224
|
0 |
0 |
if (range_len >= 3) { |
|
242
|
0 |
0 |
while (mi < map_count && batch_count < 100) { |
|
|
0 |
0 |
while (mi < map_count && batch_count < 100) { |
|
244
|
0 |
0 |
while (mi + possible_range < map_count) { |
|
246
|
0 |
0 |
if (mappings[next].glyph_id == mappings[mi].glyph_id + possible_range && |
|
247
|
0 |
0 |
mappings[next].unicode == mappings[mi].unicode + possible_range) { |
|
254
|
0 |
0 |
if (possible_range >= 3) break; |
|
260
|
0 |
0 |
if (batch_count > 0) { |
|
263
|
0 |
0 |
for (j = 0; j < batch_count; j++) { |
|
303
|
0 |
0 |
if (!font || !out_buf) return PDFMAKE_EINVAL; |
|
|
0 |
0 |
if (!font || !out_buf) return PDFMAKE_EINVAL; |
|
305
|
0 |
0 |
if (font->type != PDFMAKE_FONT_TRUETYPE || !font->ttf) { |
|
|
0 |
0 |
if (font->type != PDFMAKE_FONT_TRUETYPE || !font->ttf) { |
|
313
|
0 |
0 |
for (i = 0; i < ttf->num_glyphs; i++) { |
|
316
|
0 |
0 |
if (ttf->used_glyphs && (ttf->used_glyphs[byte] & bit)) { |
|
|
0 |
0 |
if (ttf->used_glyphs && (ttf->used_glyphs[byte] & bit)) { |
|
321
|
0 |
0 |
if (used_count == 0) { |
|
331
|
0 |
0 |
for (i = 0; i < ttf->num_glyphs; i++) { |
|
335
|
0 |
0 |
if (ttf->used_glyphs && (ttf->used_glyphs[byte] & bit)) { |
|
|
0 |
0 |
if (ttf->used_glyphs && (ttf->used_glyphs[byte] & bit)) { |
|
336
|
0 |
0 |
if (!in_group) { |
|
343
|
0 |
0 |
} else if (in_group) { |
|
349
|
0 |
0 |
if (in_group) { |