diff options
author | wl <wl> | 2006-02-17 16:39:42 +0000 |
---|---|---|
committer | wl <wl> | 2006-02-17 16:39:42 +0000 |
commit | 455b2e198f65238b4949ce278e06bd8f0f190c4d (patch) | |
tree | e85096b7e5ac2d732326405eee07f195804a8e04 /src/devices | |
parent | b2e4361da9c612b09c2470258680d85569223a53 (diff) | |
download | groff-455b2e198f65238b4949ce278e06bd8f0f190c4d.tar.gz |
* src/include/font.h (name_to_glyph): Renamed from
font::name_to_index.
(number_to_glyph): Renamed from font::number_to_index.
(glyph_to_name): Renamed from font::index_to_name.
(glyph_to_number): Renamed from font::index_to_number.
* src/libs/libgroff/nametoindex.cpp: Likewise.
* src/roff/troff/charinfo.h (charinfo::as_glyph): Renamed from
charinfo::get_index.
* src/roff/troff/input.cpp: All callers changed.
* src/roff/troff/node.cpp: Likewise.
* src/libs/libgroff/font.cpp: Likewise.
* src/devices/grops/ps.cpp: Likewise.
* src/devices/grohtml/post-html.cpp: Likewise.
* src/libs/libdriver/printer.cpp: Likewise.
Diffstat (limited to 'src/devices')
-rw-r--r-- | src/devices/grohtml/post-html.cpp | 10 | ||||
-rw-r--r-- | src/devices/grops/ps.cpp | 2 |
2 files changed, 6 insertions, 6 deletions
diff --git a/src/devices/grohtml/post-html.cpp b/src/devices/grohtml/post-html.cpp index 66965cd0..f2d21792 100644 --- a/src/devices/grohtml/post-html.cpp +++ b/src/devices/grohtml/post-html.cpp @@ -1417,7 +1417,7 @@ void page::add_and_encode (style *s, const string &str, if (html_glyph) html_string += html_glyph; else { - glyph g = s->f->name_to_index((troff_charname + '\0').contents()); + glyph g = name_to_glyph((troff_charname + '\0').contents()); if (s->f->contains(g)) html_string += s->f->get_code(g); } @@ -4220,7 +4220,7 @@ html_printer::html_printer() } res = r; html.set_fixed_point(point); - space_glyph = font::name_to_index("space"); + space_glyph = name_to_glyph("space"); space_width = font::hor; paper_length = font::paperlength; linelength = font::res*13/2; @@ -4302,7 +4302,7 @@ const char *get_html_translation (font *f, const string &name) if ((f == 0) || name.empty()) return NULL; else { - glyph g = f->name_to_index((char *)(name + '\0').contents()); + glyph g = name_to_glyph((char *)(name + '\0').contents()); if (f->contains(g)) return get_html_entity(f->get_code(g)); else @@ -4650,7 +4650,7 @@ void html_printer::set_numbered_char(int num, const environment *env, nbsp_width = -num; num = 160; // } - glyph g = font::number_to_index(num); + glyph g = number_to_glyph(num); int fn = env->fontno; if (fn < 0 || fn >= nfonts) { error("bad font position `%1'", fn); @@ -4681,7 +4681,7 @@ void html_printer::set_numbered_char(int num, const environment *env, glyph html_printer::set_char_and_width(const char *nm, const environment *env, int *widthp, font **f) { - glyph g = font::name_to_index(nm); + glyph g = name_to_glyph(nm); int fn = env->fontno; if (fn < 0 || fn >= nfonts) { error("bad font position `%1'", fn); diff --git a/src/devices/grops/ps.cpp b/src/devices/grops/ps.cpp index 9a867d61..f2ed3e63 100644 --- a/src/devices/grops/ps.cpp +++ b/src/devices/grops/ps.cpp @@ -630,7 +630,7 @@ ps_printer::ps_printer(double pl) } res = r; out.set_fixed_point(point); - space_glyph = font::name_to_index("space"); + space_glyph = name_to_glyph("space"); if (pl == 0) paper_length = font::paperlength; else |