[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

Re: font work




    Andries> In short: the distributed Imakefile.lesstif is a piece of
    Andries> junk. Either shame on Danny Backx, or shame on the distributor
    Andries> who changed the source without updating Imakefile.  (Maybe it is
    Andries> completely superfluous, and the original Makefile is good enough
    Andries> also for LessTif? I haven't tried.)

I don't use imake any more and generally protest when other people do.  It is
a complicated piece of junk that only a few people can use effectively.  But I
foolishly accepted the Imakefile.lesstif for distribution which was usable for
only one old version of Lesstif.  I had intended to remove it long ago, but
keep forgetting.

Use the Makefile originally provided with the distribution, Andries.  It must
be edited by hand, but will not have any of those errors.

    Andries> A small bug in xmbdfed: if I start it, the file menu has only two
    Andries> entries: New and Open. Afterwards it has 7 entries.  A bug in the
    Andries> initialization code, I suppose.

This is a long-standing Lesstif problem.

    Andries> Another flaw: I get the error message Warning: XmForm
    Andries> xmbdfed_help_form : attachment to xmbdfed_help_topics which is
    Andries> not a child, replaced with xmbdfed_help_topicsSW

This is indeed a problem.  Here is the patch.

Index: help.c
===================================================================
RCS file: /home/sml/cvsrep/misc/xmbdfed/help.c,v
retrieving revision 1.6
diff -u -r1.6 help.c
--- help.c	1999/05/03 17:17:56	1.6
+++ help.c	1999/09/02 17:00:25
@@ -193,7 +193,7 @@
         XtSetArg(av[ac], XmNtopAttachment, XmATTACH_WIDGET); ac++;
         XtSetArg(av[ac], XmNtopWidget, label); ac++;
         XtSetArg(av[ac], XmNleftAttachment, XmATTACH_WIDGET); ac++;
-        XtSetArg(av[ac], XmNleftWidget, help.topics); ac++;
+        XtSetArg(av[ac], XmNleftWidget, XtParent(help.topics)); ac++;
         XtSetArg(av[ac], XmNrightAttachment, XmATTACH_FORM); ac++;
         XtSetArg(av[ac], XmNbottomAttachment, XmATTACH_WIDGET); ac++;
         XtSetArg(av[ac], XmNbottomWidget, frame); ac++;

    Andries> So far, so good.
    Andries> Aha. GF files. But metafont input files are .mf files.  On this
    Andries> machine .gf files are found only in /usr/lib/grok.  Maybe the mf
    Andries> program produces GF files.

    Andries> # mf gtib.mf ....

You generated the font at 365.6 points at the default resolution.  The images
are bound to be huge.  The largest I have tested xmbdfed with is 10pt at
300dpi.  Anything else was too big to fit on the screen of a notebook
computer.  I'll test with larger sizes.

BTW, haven't you received my email on how to use MetaFont?  I gave very
explicit directions for generating GF fonts.

    Andries> So far for now.  You see, I am inexperienced, have never used
    Andries> these things before and do not know yet how to avoid the bugs in
    Andries> these programs.

The only error was using the Imakefile which I apologize for including :-)
-----------------------------------------------------------------------------
Mark Leisher
Computing Research Lab               The more I see of the representatives
New Mexico State University          of the people, the more I admire my dogs.
Box 30001, Dept. 3CRL                   -- Alphonse de Lamartine, 1790-1869
Las Cruces, NM  88003
-
Linux-UTF8:   i18n of Linux on all levels
Archive:      http://mail.nl.linux.org/lists/