diff options
author | Owen Taylor <otaylor@redhat.com> | 2000-01-13 22:03:29 +0000 |
---|---|---|
committer | Owen Taylor <otaylor@src.gnome.org> | 2000-01-13 22:03:29 +0000 |
commit | 75eda811778629c19472a66bbc61ecfd3d978192 (patch) | |
tree | 720efe64a6385a38adc3b2b48d1be9492c0f63c2 /examples/viewer.c | |
parent | 85b2e7c75646b6a1722ff1781a221365d5c487cb (diff) | |
download | pango-75eda811778629c19472a66bbc61ecfd3d978192.tar.gz |
reindented. updated
Thu Jan 13 16:57:22 2000 Owen Taylor <otaylor@redhat.com>
* examples/viewer.c: reindented.
* README: updated
Diffstat (limited to 'examples/viewer.c')
-rw-r--r-- | examples/viewer.c | 26 |
1 files changed, 13 insertions, 13 deletions
diff --git a/examples/viewer.c b/examples/viewer.c index 2ed64c78..4404631f 100644 --- a/examples/viewer.c +++ b/examples/viewer.c @@ -233,7 +233,7 @@ break_run (char *text, PangoGlyphUnit *log_widths = g_new (PangoGlyphUnit, item->num_chars); pango_break (text + item->offset, item->length, &item->analysis, - log_attrs); + log_attrs); get_logical_widths (text, item, buf, log_widths); new_width = 0; @@ -415,8 +415,8 @@ runs_x_to_cp (char *text, GList *runs, int x, int *offset) char *p; pango_x_to_cp (text + item->offset, item->length, - &item->analysis, buf, (x - pixels) * 72, - &pos, NULL); + &item->analysis, buf, (x - pixels) * 72, + &pos, NULL); /* Converter the character position to byte offset */ p = text + item->offset; @@ -514,9 +514,9 @@ runs_char_bounds (char *text, GList *runs, int offset, int *x, int *width) /* Find bounds */ pango_cp_to_x (text + item->offset, item->length, - &item->analysis, buf, char_pos, FALSE, &start_x); + &item->analysis, buf, char_pos, FALSE, &start_x); pango_cp_to_x (text + item->offset, item->length, - &item->analysis, buf, char_pos, TRUE, &end_x); + &item->analysis, buf, char_pos, TRUE, &end_x); if (start_x < end_x) { @@ -655,14 +655,14 @@ expose_paragraph (Paragraph *para, GdkDrawable *drawable, /* Convert the item into glyphs */ pango_shape (font, - para->text + item->offset, item->length, - &item->analysis, - buf); + para->text + item->offset, item->length, + &item->analysis, + buf); /* Render the glyphs to the screen */ pango_x_render (GDK_DISPLAY(), GDK_WINDOW_XWINDOW (drawable), - GDK_GC_XGC (gc), buf, x + x_off, - y + line->ascent); + GDK_GC_XGC (gc), buf, x + x_off, + y + line->ascent); /* Advance to next x position */ @@ -828,9 +828,9 @@ main (int argc, char **argv) /* We hard code a font globally for now */ font = pango_x_load_font (GDK_DISPLAY(), - // "-misc-fixed-medium-r-semicondensed--13-*-*-*-c-*-iso10646-1," - "-gnu-unifont-medium-r-normal--16-*-*-*-c-*-iso10646-1," - "-*-*-medium-r-normal--12-*-*-*-*-*-*-*"); + /* "-misc-fixed-medium-r-semicondensed--13-*-*-*-c-*-iso10646-1," */ + "-gnu-unifont-medium-r-normal--16-*-*-*-c-*-iso10646-1," + "-*-*-medium-r-normal--16-*-*-*-*-*-*-*"); /* Create the user interface */ |