9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: Kenji Okamoto <okamoto@granite.cias.osakafu-u.ac.jp>
To: 9fans@cse.psu.edu
Subject: Re: [9fans] links bug
Date: Mon, 26 Jul 2004 11:19:49 +0900	[thread overview]
Message-ID: <cbc3877fd1b50e6ed7979977c6c89131@granite.cias.osakafu-u.ac.jp> (raw)
In-Reply-To: <6e790ab1ad857bc8931c3e70eede36d2@plan9.escet.urjc.es>

> The problem here was that clicking on a form gave a broken links.

I haven't this problem though...

My Font definitions are as follows:
in plan9.c file;

-------from here-------
static uchar *
plan9_init_driver(uchar *param, uchar *d)
{
	int i;
	char *tmp;

#ifdef PLAN9_DEBUG
	MESSAGE("plan9 init driver\n");
#endif
	if(initdraw(nil, nil, "flame") < 0)
		exits("initdraw failed");

	for (i = 0; i < 256; i++)
		colors[i] = allocimage(display, Rect(0, 0, 1, 1), screen->chan,
			1, cmap2rgba(i));

	/* normal fonts, the defaults are rather small */
	tmp = getenv("Font11");
	if(tmp != nil)
		fnt[Font11] = plan9_loadfont(tmp);
	else
		fnt[Font11] = plan9_loadfont("/lib/font/bit/lucidasans/unicode.6.font");

	tmp = getenv("Font13");
	if(tmp != nil)
		fnt[Font13] = plan9_loadfont(tmp);
	else
		fnt[Font13] = plan9_loadfont("/lib/font/bit/lucidasans/unicode.7.font");

	tmp = getenv("Font15");
	if(tmp != nil)
		fnt[Font15] = plan9_loadfont(tmp);
	else
		fnt[Font15] = plan9_loadfont("/lib/font/bit/lucidasans/unicode.8.font");

	tmp = getenv("Font19");
	if(tmp != nil)
		fnt[Font19] = plan9_loadfont(tmp);
	else
		fnt[Font19] = plan9_loadfont("/lib/font/bit/lucidasans/unicode.10.font");

	tmp = getenv("Font26");
	if(tmp != nil)
		fnt[Font26] = plan9_loadfont(tmp);
	else
		fnt[Font26] = plan9_loadfont("/lib/font/bit/lucidasans/unicode.13.font");

	/* italic fonts */
	tmp = getenv("FontItal11");
	if(tmp != nil)
		fnt[FontItal11] = plan9_loadfont(tmp);
	else
		fnt[FontItal11] = plan9_loadfont("/lib/font/bit/lucidasans/italicunicode.6.font");

	tmp = getenv("FontItal13");
	if(tmp != nil)
		fnt[FontItal13] = plan9_loadfont(tmp);
	else
		fnt[FontItal13] = plan9_loadfont("/lib/font/bit/lucidasans/italicunicode.7.font");

	tmp = getenv("FontItal15");
	if(tmp != nil)
		fnt[FontItal15] = plan9_loadfont(tmp);
	else
		fnt[FontItal15] = plan9_loadfont("/lib/font/bit/lucidasans/italicunicode.8.font");

	tmp = getenv("FontItal19");
	if(tmp != nil)
		fnt[FontItal19] = plan9_loadfont(tmp);
	else
		fnt[FontItal19] = plan9_loadfont("/lib/font/bit/lucidasans/italicunicode.10.font");

	tmp = getenv("FontItal26");
	if(tmp != nil)
		fnt[FontItal26] = plan9_loadfont(tmp);
	else
		fnt[FontItal26] = plan9_loadfont("/lib/font/bit/lucidasans/italicunicode.13.font");

	/* bold fonts */
	tmp = getenv("FontBold11");
	if(tmp != nil)
		fnt[FontBold11] = plan9_loadfont(tmp);
	else
		fnt[FontBold11] = plan9_loadfont("/lib/font/bit/lucidasans/boldunicode.6.font");

	tmp = getenv("FontBold13");
	if(tmp != nil)
		fnt[FontBold13] = plan9_loadfont(tmp);
	else
		fnt[FontBold13] = plan9_loadfont("/lib/font/bit/lucidasans/boldunicode.7.font");

	tmp = getenv("FontBold15");
	if(tmp != nil)
		fnt[FontBold15] = plan9_loadfont(tmp);
	else
		fnt[FontBold15] = plan9_loadfont("/lib/font/bit/lucidasans/boldunicode.8.font");

	tmp = getenv("FontBold19");
	if(tmp != nil)
		fnt[FontBold19] = plan9_loadfont(tmp);
	else
		fnt[FontBold19] = plan9_loadfont("/lib/font/bit/lucidasans/boldunicode.10.font");

	tmp = getenv("FontBold26");
	if(tmp != nil)
		fnt[FontBold26] = plan9_loadfont(tmp);
	else
		fnt[FontBold26] = plan9_loadfont("/lib/font/bit/lucidasans/boldunicode.13.font");

	/* typescript */
	tmp = getenv("FontType11");
	if(tmp != nil)
		fnt[FontType11] = plan9_loadfont(tmp);
	else
		fnt[FontType11] = plan9_loadfont("/lib/font/bit/lucidasans/typeunicode.6.font");

	tmp = getenv("FontType13");
	if(tmp != nil)
		fnt[FontType13] = plan9_loadfont(tmp);
	else
		fnt[FontType13] = plan9_loadfont("/lib/font/bit/lucidasans/typeunicode.7.font");

	tmp = getenv("FontType15");
	if(tmp != nil)
		fnt[FontType15] = plan9_loadfont(tmp);
	else
		fnt[FontType15] = plan9_loadfont("/lib/font/bit/lucidasans/typeunicode.9.font");

	tmp = getenv("FontType19");
	if(tmp != nil)
		fnt[FontType19] = plan9_loadfont(tmp);
	else
		fnt[FontType19] = plan9_loadfont("/lib/font/bit/lucidasans/typeunicode.12.font");

	tmp = getenv("FontType26");
	if(tmp != nil)
		fnt[FontType26] = plan9_loadfont(tmp);
	else
		fnt[FontType26] = plan9_loadfont("/lib/font/bit/lucidasans/typeunicode.16.font");

	eresized(0);
	watchevents();
	return nil;
}
---------end here-----

Kenji

PS. I believe all the definitions and font files are found in our web site.



  reply	other threads:[~2004-07-26  2:19 UTC|newest]

Thread overview: 6+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2004-07-22  8:09 Gorka Guardiola Múzquiz
2004-07-23  9:47 ` Kenji Okamoto
2004-07-23 10:11   ` Kenji Okamoto
2004-07-23 11:12     ` Gorka Guardiola Múzquiz
2004-07-26  2:19       ` Kenji Okamoto [this message]
2004-07-23 14:46   ` andrey mirtchovski

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=cbc3877fd1b50e6ed7979977c6c89131@granite.cias.osakafu-u.ac.jp \
    --to=okamoto@granite.cias.osakafu-u.ac.jp \
    --cc=9fans@cse.psu.edu \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).