Lines Matching refs:ci
234 inline int font_info::contains(charinfo *ci) in contains() argument
236 return fm != 0 && fm->contains(ci->get_index()); in contains()
432 charinfo *ci = get_charinfo(symbol("|")); in get_narrow_space_width() local
433 if (fm->contains(ci->get_index())) in get_narrow_space_width()
434 return hunits(fm->get_width(ci->get_index(), fs.to_scaled_points())); in get_narrow_space_width()
441 charinfo *ci = get_charinfo(symbol("^")); in get_half_narrow_space_width() local
442 if (fm->contains(ci->get_index())) in get_half_narrow_space_width()
443 return hunits(fm->get_width(ci->get_index(), fs.to_scaled_points())); in get_half_narrow_space_width()
545 inline int tfont::contains(charinfo *ci) in contains() argument
547 return fm->contains(ci->get_index()); in contains()
550 inline int tfont::get_character_type(charinfo *ci) in get_character_type() argument
552 return fm->get_character_type(ci->get_index()); in get_character_type()
615 charinfo *ci = 0; in get_lig() local
620 ci = get_charinfo(SYMBOL_ff); in get_lig()
624 ci = get_charinfo(SYMBOL_fi); in get_lig()
628 ci = get_charinfo(SYMBOL_fl); in get_lig()
636 ci = get_charinfo(SYMBOL_Fi); in get_lig()
640 ci = get_charinfo(SYMBOL_Fl); in get_lig()
644 if (ci != 0 && fm->contains(ci->get_index())) in get_lig()
645 return ci; in get_lig()
801 void check_charinfo(tfont *tf, charinfo *ci);
1006 void troff_output_file::check_charinfo(tfont *tf, charinfo *ci) in check_charinfo() argument
1011 int height = tf->get_char_height(ci).to_units(); in check_charinfo()
1012 int width = tf->get_width(ci).to_units() in check_charinfo()
1013 + tf->get_italic_correction(ci).to_units(); in check_charinfo()
1014 int depth = tf->get_char_depth(ci).to_units(); in check_charinfo()
1019 void troff_output_file::put_char_width(charinfo *ci, tfont *tf, in put_char_width() argument
1030 unsigned char c = ci->get_ascii_code(); in put_char_width()
1036 check_charinfo(tf, ci); in put_char_width()
1037 if (ci->numbered()) { in put_char_width()
1039 put(ci->get_number()); in put_char_width()
1043 const char *s = ci->nm.contents(); in put_char_width()
1060 check_charinfo(tf, ci); in put_char_width()
1070 check_charinfo(tf, ci); in put_char_width()
1079 check_charinfo(tf, ci); in put_char_width()
1101 void troff_output_file::put_char(charinfo *ci, tfont *tf, in put_char() argument
1108 unsigned char c = ci->get_ascii_code(); in put_char()
1114 if (ci->numbered()) { in put_char()
1116 put(ci->get_number()); in put_char()
1120 const char *s = ci->nm.contents(); in put_char()
1779 charinfo *ci; member in charinfo_node
1788 : node(x, s, pop), ci(c) in charinfo_node()
1794 if (ci->ends_sentence()) in ends_sentence()
1796 else if (ci->transparent()) in ends_sentence()
1804 return ci->overlaps_horizontally(); in overlaps_horizontally()
1809 return ci->overlaps_vertically(); in overlaps_vertically()
1980 wid = tf->get_width(ci); in glyph_node()
1996 return new glyph_node(ci, tf, gcol, fcol, wid, state, div_nest_level); in copy()
1998 return new glyph_node(ci, tf, gcol, fcol, state, div_nest_level); in copy()
2009 return tf->get_character_type(ci); in character_type()
2014 assert(ci->get_hyphenation_code() == (*p)->hyphenation_code); in add_self()
2037 return new hyphen_list(ci->get_hyphenation_code(), tail); in get_hyphen_list()
2079 if ((lig = tf->get_lig(ci, gn->ci)) != 0) { in merge_glyph_node()
2086 if (tf->get_kern(ci, gn->ci, &kern)) { in merge_glyph_node()
2104 return tf->get_width(ci); in width()
2115 *min = -tf->get_char_height(ci); in vertical_extent()
2116 *max = tf->get_char_depth(ci); in vertical_extent()
2121 return tf->get_char_skew(ci); in skew()
2126 return tf->get_subscript_correction(ci); in subscript_correction()
2131 return tf->get_italic_correction(ci); in italic_correction()
2136 return tf->get_left_italic_correction(ci); in left_italic_correction()
2146 unsigned char c = ci->get_ascii_code(); in ascii_print()
2150 ascii->outs(ci->nm.contents()); in ascii_print()
2155 unsigned char c = ci->get_ascii_code(); in debug_node()
2160 fputs(ci->nm.contents(), stderr); in debug_node()
2195 return new ligature_node(ci, tf, gcol, fcol, wid, n1->copy(), n2->copy(), in copy()
2198 return new ligature_node(ci, tf, gcol, fcol, n1->copy(), n2->copy(), in copy()
3490 unsigned char c = ci->get_asciify_code(); in asciify()
3492 c = ci->get_ascii_code(); in asciify()
4200 return new composite_node(copy_node_list(n), ci, tf, state, div_nest_level); in copy()
4243 unsigned char c = ci->get_asciify_code(); in asciify()
4245 c = ci->get_ascii_code(); in asciify()
4256 unsigned char c = ci->get_ascii_code(); in ascii_print()
4260 ascii->outs(ci->nm.contents()); in ascii_print()
4267 return new hyphen_list(ci->get_hyphenation_code(), tail); in get_hyphen_list()
4272 assert(ci->get_hyphenation_code() == (*p)->hyphenation_code); in add_self()
4516 out->put_char_width(ci, ptf, gcol, fcol, width(), H0); in tprint()
4520 hunits w = ptf->get_width(ci); in tprint()
4535 out->put_char(ci, ptf, gcol, fcol); in tprint()
4538 out->put_char_width(ci, ptf, gcol, fcol, w, k); in tprint()
4550 x -= ptf->get_width(ci); in zero_width_tprint()
4556 out->put_char(ci, ptf, gcol, fcol); in zero_width_tprint()
4559 out->put_char(ci, ptf, gcol, fcol); in zero_width_tprint()
4873 charinfo *ci = get_charinfo(symbol(gl.contents())); in make_glyph_node() local
4874 if (ci && ci->get_macro()) in make_glyph_node()
4875 return make_composite_node(ci, env); in make_glyph_node()
4926 node *make_node(charinfo *ci, environment *env) in make_node() argument
4928 switch (ci->get_special_translation()) { in make_node()
4941 charinfo *tem = ci->get_translation(); in make_node()
4943 ci = tem; in make_node()
4944 macro *mac = ci->get_macro(); in make_node()
4945 if (mac && ci->is_normal()) in make_node()
4946 return make_composite_node(ci, env); in make_node()
4948 return make_glyph_node(ci, env); in make_node()
4951 int character_exists(charinfo *ci, environment *env) in character_exists() argument
4953 if (ci->get_special_translation() != charinfo::TRANSLATE_NONE) in character_exists()
4955 charinfo *tem = ci->get_translation(); in character_exists()
4957 ci = tem; in character_exists()
4958 if (ci->get_macro()) in character_exists()
4960 node *nd = make_glyph_node(ci, env, 1); in character_exists()
4968 node *node::add_char(charinfo *ci, environment *env, in add_char() argument
4972 switch (ci->get_special_translation()) { in add_char()
4990 charinfo *tem = ci->get_translation(); in add_char()
4992 ci = tem; in add_char()
4993 macro *mac = ci->get_macro(); in add_char()
4994 if (mac && ci->is_normal()) { in add_char()
4995 res = make_composite_node(ci, env); in add_char()
5009 node *gn = make_glyph_node(ci, env); in add_char()
5029 if (ci->can_break_before()) in add_char()
5031 if (ci->can_break_after()) in add_char()
5559 return ci == ((composite_node *)nd)->ci in same()
5580 return ci == ((glyph_node *)nd)->ci in same()
6140 charinfo *ci = get_charinfo(symbol(gl.contents())); in remove_font_special_character() local
6141 if (!ci) in remove_font_special_character()
6143 macro *m = ci->set_macro(0); in remove_font_special_character()