From 45ed857b1fabb4045a47299481da43374e4c456d Mon Sep 17 00:00:00 2001 From: handa Date: Thu, 29 Jul 2004 12:59:04 +0000 Subject: [PATCH] (create_widgets): Fix width of index glyphs.. --- example/otfview.c | 3 ++- 1 file changed, 2 insertions(+), 1 deletion(-) diff --git a/example/otfview.c b/example/otfview.c index 0b36be3..662d0b8 100644 --- a/example/otfview.c +++ b/example/otfview.c @@ -1018,7 +1018,8 @@ create_widgets () } w = head; } - XtSetArg(arg[4], XtNwidth, glyph_width + 2); + /* 10 = (1 (border_width) + 4 (inner_width)) * 2 */ + XtSetArg(arg[4], XtNwidth, glyph_width + 10); XtSetArg (arg[5], XtNfromVert, glyph[112]); XtSetArg (arg[6], XtNfromHoriz, w); XtSetArg (arg[7], XtNborderWidth, 0); -- 1.7.10.4