Branch Coverage

third_party/modest/source/myfont/myfont.c
Criterion Covered Total %
branch 0 128 0.0


line true false branch
43 0 0 if(mf->mchar == NULL)
46 0 0 if((status = mchar_async_init(mf->mchar, 64, (4096 * 2))))
51 0 0 if(status)
71 0 0 if(mf == NULL)
76 0 0 if(self_destroy) {
104 0 0 if(return_data)
107 0 0 if(data_size)
113 0 0 if(fh == NULL)
116 0 0 if(mycore_fseek(fh, 0L, SEEK_END)) {
122 0 0 if(file_size == -1) {
127 0 0 if(mycore_fseek(fh, 0L, SEEK_SET)) {
132 0 0 if(file_size > 0)
141 0 0 if(data == NULL) {
146 0 0 if(mycore_fread(data, 1, file_size, fh) != file_size) {
153 0 0 if(return_data)
156 0 0 if(data_size)
164 0 0 if(return_data)
172 0 0 if(data_size < 12)
184 0 0 if(data_size < (12 + (mf->header.numTables * 16)))
187 0 0 for(uint16_t i = 0; i < mf->header.numTables; i++)
239 0 0 if(myfont_check_required_tables(mf))
244 0 0 if((status = myfont_load_table_cmap(mf, font_data, data_size)))
247 0 0 if((status = myfont_load_table_head(mf, font_data, data_size)))
250 0 0 if((status = myfont_load_table_name(mf, font_data, data_size)))
253 0 0 if((status = myfont_load_table_os_2(mf, font_data, data_size)))
256 0 0 if((status = myfont_load_table_maxp(mf, font_data, data_size)))
259 0 0 if((status = myfont_load_table_hhea(mf, font_data, data_size)))
262 0 0 if((status = myfont_load_table_hmtx(mf, font_data, data_size)))
265 0 0 if((status = myfont_load_table_loca(mf, font_data, data_size)))
268 0 0 if((status = myfont_load_table_glyf(mf, font_data, data_size)))
271 0 0 if((status = myfont_load_table_vhea(mf, font_data, data_size)))
274 0 0 if((status = myfont_load_table_vmtx(mf, font_data, data_size)))
277 0 0 if((status = myfont_load_table_pclt(mf, font_data, data_size)))
285 0 0 if(mf->cache.tables_offset[ MyFONT_TKEY_cmap ] == 0 ||
0 0 if(mf->cache.tables_offset[ MyFONT_TKEY_cmap ] == 0 ||
286 0 0 mf->cache.tables_offset[ MyFONT_TKEY_glyf ] == 0 ||
287 0 0 mf->cache.tables_offset[ MyFONT_TKEY_head ] == 0 ||
288 0 0 mf->cache.tables_offset[ MyFONT_TKEY_hhea ] == 0 ||
289 0 0 mf->cache.tables_offset[ MyFONT_TKEY_hmtx ] == 0 ||
290 0 0 mf->cache.tables_offset[ MyFONT_TKEY_loca ] == 0 ||
291 0 0 mf->cache.tables_offset[ MyFONT_TKEY_maxp ] == 0 ||
292 0 0 mf->cache.tables_offset[ MyFONT_TKEY_name ] == 0 ||
324 0 0 if(mf->table_os_2.version > 1)
326 0 0 if(mf->table_os_2.sxHeight)
330 0 0 if(xheight == 0 && mf->table_pclt.xHeight)
0 0 if(xheight == 0 && mf->table_pclt.xHeight)
333 0 0 if(xheight == 0)
338 0 0 if(mf_status == MyFONT_STATUS_OK) {
351 0 0 if(mf->table_os_2.version > 1) {
352 0 0 if(mf->table_os_2.sCapHeight)
356 0 0 if(cap_height == 0 && mf->table_pclt.capHeight)
0 0 if(cap_height == 0 && mf->table_pclt.capHeight)
359 0 0 if(cap_height == 0)
364 0 0 if(mf_status == MyFONT_STATUS_OK) {
381 0 0 if(mf->table_hhea.numberOfHMetrics == 0 || mf->table_hmtx.hMetrics == NULL)
0 0 if(mf->table_hhea.numberOfHMetrics == 0 || mf->table_hmtx.hMetrics == NULL)
388 0 0 if(mf_status) {
389 0 0 if(status)
400 0 0 if(mf->table_vhea.numOfLongVerMetrics == 0 || mf->table_vmtx.vMetrics == NULL)
0 0 if(mf->table_vhea.numOfLongVerMetrics == 0 || mf->table_vmtx.vMetrics == NULL)
407 0 0 if(mf_status) {
408 0 0 if(status)
423 0 0 if(mf_status) {
424 0 0 if(status)