From mboxrd@z Thu Jan 1 00:00:00 1970 To: 9fans@cse.psu.edu Subject: Re: [9fans] Japanese Font From: "rob pike" MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Message-Id: <20010209034147.2ACFB199E1@mail.cse.psu.edu> Date: Thu, 8 Feb 2001 22:41:43 -0500 Topicbox-Message-UUID: 5f7c4120-eac9-11e9-9e20-41e7f4b1d025 Yes, I understand that. I was trying to tell you the way to do it. It's like this, schematically: s = allocimage(0, 0, HUGE, height); x = 0; for(i in number of characters){ c = allocmemimage(0, 0, c.width, height); convert bdf to character in c draw(s, Rect(x, 0, x+c.width, height), c, nil, ZP); fontchar[i] = {...., x, ...}; x += c.width; } t = allocimage(0, 0, x, height); draw(t, t->r, s, nil, ZP); Or you could calculate the subfont width before allocating s by adding another loop. -rob