Lines Matching full:if

28     if(font_file == NULL)  in gx_studio_font_util_open()
32 if(font_handle == 0) in gx_studio_font_util_open()
38 if(error) in gx_studio_font_util_open()
45 if(error) in gx_studio_font_util_open()
68 if(font_handle -> initialized != 1) in gx_studio_font_util_get_glyph()
72 if(font_handle -> size != pt) in gx_studio_font_util_get_glyph()
75 if(error) in gx_studio_font_util_get_glyph()
87 if(font_handle -> face -> glyph -> format != FT_GLYPH_FORMAT_BITMAP) in gx_studio_font_util_get_glyph()
89 if(aa) in gx_studio_font_util_get_glyph()
95 if (aa && slot->bitmap.pixel_mode == FT_PIXEL_MODE_MONO) in gx_studio_font_util_get_glyph()
129 if (font_handle->initialized != 1) in gx_studio_font_util_get_kerning_info()
132 if (FT_HAS_KERNING(font_handle->face) == 0) in gx_studio_font_util_get_kerning_info()
138 if (!map) in gx_studio_font_util_get_kerning_info()
144 if (first_glyph > 0xff) in gx_studio_font_util_get_kerning_info()
148 if (last_glyph > 0xff) in gx_studio_font_util_get_kerning_info()
155 if (!right_glyph_index) in gx_studio_font_util_get_kerning_info()
164 if (!map->Test(index)) in gx_studio_font_util_get_kerning_info()
171 if (!left_glyph_index) in gx_studio_font_util_get_kerning_info()
178 if ((error == 0) && (kerning_vector.x)) in gx_studio_font_util_get_kerning_info()
186 if (kerning_pairs.GetCount()) in gx_studio_font_util_get_kerning_info()
196 if (kerning_glyph->gx_kerning_table) in gx_studio_font_util_get_kerning_info()
216 if(!font_handle) in gx_studio_font_util_close()
219 if(font_handle -> initialized == 1) in gx_studio_font_util_close()
222 if(font_handle -> face) in gx_studio_font_util_close()
224 if(font_handle -> library) in gx_studio_font_util_close()
306 if (pre == data[index]) in DuplicatesCount()
340 if (count >= 3) in RleEncode()
342 if (raw_count) in RleEncode()
346 if (put_data) in RleEncode()
362 if (count > 128) in RleEncode()
367 if (put_data) in RleEncode()
380 if ((raw_count == 128) || (index == width)) in RleEncode()
384 if (put_data) in RleEncode()
418 if (compressed_size < data_size) in RleEncodeGlyphData()
440 if (!data_size) in RleDecodeGlyphData()
463 if (count & 0x80) in RleDecodeGlyphData()
518 if(bitmap_size == 0) in CopyGlyphData()
539 if (reversed_order) in CopyGlyphData()
549 if (in_byte & in_mask) in CopyGlyphData()
557 if (num_bits > 8) in CopyGlyphData()
585 if (col & 1) in CopyGlyphData()
587 if (reversed_order) in CopyGlyphData()
599 if (reversed_order) in CopyGlyphData()
610 // check for odd width, if so write out last pixel in CopyGlyphData()
611 if (glyph.width & 1) in CopyGlyphData()
634 if (bits_per_pix == 1) in GetFontMetrics()
641 if (!map.Test(use_char)) in GetFontMetrics()
649 if(glyph.height > metrics.max_height) in GetFontMetrics()
653 if(glyph.gx_glyph_ascent > metrics.ascent) in GetFontMetrics()
657 if(glyph.gx_glyph_descent > metrics.descent) in GetFontMetrics()
663 if (metrics.max_height < (metrics.ascent + metrics.descent)) in GetFontMetrics()
692 if (!project) in MakeFontPage()
704 if (!IsRenesasDave2D(GetOpenProject())) in MakeFontPage()
710 if (info->compress) in MakeFontPage()
718 if (info->font_kerning) in MakeFontPage()
720 if (FT_HAS_KERNING(handle->face)) in MakeFontPage()
751 if (IsDave2dFontFormat(project, display)) in MakeFontPage()
760 if (IsDave2dFontFormat(project, display)) in MakeFontPage()
771 if (reversed_order) in MakeFontPage()
776 if (info->compress) in MakeFontPage()
781 if (info->font_kerning) in MakeFontPage()
788 if (!map.Test(use_char)) in MakeFontPage()
795 if (info->compress) in MakeFontPage()
805 if (info->font_kerning) in MakeFontPage()
809 if (use_char <= 0xff) in MakeFontPage()
849 if(!project) in MakeFont()
856 if (gx_studio_font_util_open(CT2A(abspath.GetString()), &handle) != 0) in MakeFont()
858 if (warn_on_error) in MakeFont()
867 if (info->font_support_extended_unicode) in MakeFont()
885 if (info->font_pages_count) in MakeFont()
893 if (pages[page].enabled && pages[page].first_char <= pages[page].last_char) in MakeFont()
899 if (info->font_charset_include_string_table) in MakeFont()
903 if (tmap) in MakeFont()
909 if (char_map.Test(0xe00, 0xe7f)) in MakeFont()
912 if (char_map.Test(0x0e33)) in MakeFont()
914 // The vowel sara am will be split into the character nikhahit and sara aa if it is in MakeFont()
924 if (char_map.Test(0x600, 0x6ff)) in MakeFont()
933 if (char_map.IsEmpty()) in MakeFont()
946 if (char_map.Test(first_char, first_char)) in MakeFont()
959 if (last_char > max_char) in MakeFont()
964 if (char_map.Test(first_char, last_char)) in MakeFont()
969 if (newpage) in MakeFont()
971 if (!head_page) in MakeFont()
975 if (last_page) in MakeFont()
1005 if (!char_map) in InsertStringTableGlyphs()
1011 if (gx_studio_font_util_open(CT2A(abspath.GetString()), &handle) != 0) in InsertStringTableGlyphs()
1016 if (bits_per_pix > 1) in InsertStringTableGlyphs()
1027 if (IsDave2dFontFormat(GetOpenProject(), display)) in InsertStringTableGlyphs()
1036 if (char_map->Test(char_val)) in InsertStringTableGlyphs()
1043 if (page->gx_font_first_glyph <= char_val && in InsertStringTableGlyphs()
1048 if (info->font_kerning) in InsertStringTableGlyphs()
1052 if ((!put_glyph->gx_glyph_map) && (put_glyph->gx_glyph_advance == 0)) in InsertStringTableGlyphs()
1056if (gx_studio_font_util_get_glyph(handle, char_val, height, anti_alias, &glyph) != GXS_FONT_UTIL_S… in InsertStringTableGlyphs()
1063 if (put_glyph->gx_kerning_table) in InsertStringTableGlyphs()
1067 if (char_val <= 0xff) in InsertStringTableGlyphs()
1074 else if (page->gx_font_format & GX_FONT_FORMAT_COMPRESSED) in InsertStringTableGlyphs()
1078 if ((!put_glyph->gx_glyph_map) && (put_glyph->gx_glyph_advance == 0)) in InsertStringTableGlyphs()
1082if (gx_studio_font_util_get_glyph(handle, char_val, height, anti_alias, &glyph) != GXS_FONT_UTIL_S… in InsertStringTableGlyphs()
1097 if ((!put_glyph->gx_glyph_map) && (put_glyph->gx_glyph_advance == 0)) in InsertStringTableGlyphs()
1101if (gx_studio_font_util_get_glyph(handle, char_val, height, anti_alias, &glyph) != GXS_FONT_UTIL_S… in InsertStringTableGlyphs()
1115 if ((!found_page) || (status != TRUE)) in InsertStringTableGlyphs()
1142 if (font->gx_font_glyphs.gx_font_normal_glyphs) in DestroyFont()
1148 if (glyph->gx_glyph_map) in DestroyFont()
1154 if (font->gx_font_format & GX_FONT_FORMAT_COMPRESSED) in DestroyFont()
1160 else if (font->gx_font_format & GX_FONT_FORMAT_KERNING) in DestroyFont()
1163 if (kering_glyph->gx_kerning_table) in DestroyFont()
1192 if (glyph_start > page->gx_font_last_glyph) in FindFirstValidGlyph()
1198 if (page->gx_font_format & GX_FONT_FORMAT_COMPRESSED) in FindFirstValidGlyph()
1201 if (compressed_glyph[index].gx_glyph_map != NULL || in FindFirstValidGlyph()
1207 else if (page->gx_font_format & GX_FONT_FORMAT_KERNING) in FindFirstValidGlyph()
1210 if (kerning_glyph[index].gx_glyph_map != NULL || in FindFirstValidGlyph()
1218 if (page->gx_font_glyphs.gx_font_normal_glyphs[index].gx_glyph_map != NULL || in FindFirstValidGlyph()
1242 if (page->gx_font_format & GX_FONT_FORMAT_COMPRESSED) in FindDeadGlyphBlock()
1248 if (compressed_glyph[index - page->gx_font_first_glyph].gx_glyph_map == NULL && in FindDeadGlyphBlock()
1253 if (dead_count > MAX_FONT_DEAD_BLOCK) in FindDeadGlyphBlock()
1266 else if (page->gx_font_format & GX_FONT_FORMAT_KERNING) in FindDeadGlyphBlock()
1272 if (kerning_glyph[index - page->gx_font_first_glyph].gx_glyph_map == NULL && in FindDeadGlyphBlock()
1277 if (dead_count > MAX_FONT_DEAD_BLOCK) in FindDeadGlyphBlock()
1295if (page->gx_font_glyphs.gx_font_normal_glyphs[index - page->gx_font_first_glyph].gx_glyph_map == … in FindDeadGlyphBlock()
1300 if (dead_count > MAX_FONT_DEAD_BLOCK) in FindDeadGlyphBlock()
1337 if(bitmap_size != 0) in CopyGlyphs()
1370 if (bitmap_size != 0) in CopyKerningGlyphs()
1381 if (get -> gx_kerning_table) in CopyKerningGlyphs()
1383 /* Copy kerning table if there's one */ in CopyKerningGlyphs()
1413 if (bitmap_size != 0) in CopyCompressedGlyphs()
1446 if (first_glyph <= src_page->gx_font_last_glyph) in optimize_font()
1448 // stop if there is a large dead section in optimize_font()
1462 if (src_page->gx_font_format & GX_FONT_FORMAT_COMPRESSED) in optimize_font()
1466 else if(src_page->gx_font_format & GX_FONT_FORMAT_KERNING) in optimize_font()
1475 if (last_page) in optimize_font()
1498 if (new_font) in MakeOptimizedFont()
1526 if (!head_page) in GetFontStorage()
1540 if (font_page->gx_font_format & GX_FONT_FORMAT_COMPRESSED) in GetFontStorage()
1545 else if (font_page->gx_font_format & GX_FONT_FORMAT_KERNING) in GetFontStorage()
1550 if (kerning_glyph->gx_kerning_table) in GetFontStorage()
1569 /* if kerning info size is bigger than 5 kB*/ in GetFontStorage()
1570 if (kerning_datasize > 5120) in GetFontStorage()
1572 if (kerning_datasize > datasize) in GetFontStorage()
1592 if (info->raw) in GetPixelmapStorage()
1597 if (!file) in GetPixelmapStorage()
1614 if (map) in GetPixelmapStorage()
1618 if (map->gx_pixelmap_aux_data_size) in GetPixelmapStorage()
1620 if (info->output_color_format != GX_COLOR_FORMAT_8BIT_PALETTE || in GetPixelmapStorage()