From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: From: erik quanstrom Date: Tue, 12 May 2009 08:44:48 -0400 To: 9fans@9fans.net In-Reply-To: MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: Re: [9fans] stats font problem fixed Topicbox-Message-UUID: f7001f66-ead4-11e9-9d60-3106f5b1d025 ; grep openfont `{find . | grep '\.[ch]$'} | grep " > Hi, > I use ttf2subf'ed fonts on my lcd, only program that doesn't obay the > current rio font settings is stats. I have added the code below which > not only obeys the current rio settings but also addes support for > specifying new font with -F switch. this looks interesting. but stats isn't the only program that picks its own fonts. some programs like faces and abaco would suffer if one substituted the users' font. (abaco does uses a fixed set of fonts.) ; cd /sys/src/cmd; grep openfont `{find . | grep '\.[ch]$'} | grep " ./auth/factotum/fgui.c: invis = openfont(display, "/lib/font/bit/lucm/passwd.9.font"); ./bitsy/keyboard.c: keyfont = openfont(display, "/lib/font/bit/lucidasans/boldlatin1.6.font"); ./bitsy/keyboard.c: keyctlfont = openfont(display, "/lib/font/bit/lucidasans/unicode.6.font"); ./bitsy/prompter.c: f = openfont(display, "/lib/font/bit/lucidasans/boldlatin1.6.font"); ./bitsy/prompter.c: f = openfont(display, "/lib/font/bit/lucidasans/unicode.6.font"); ./faces/main.c: tinyfont = openfont(display, "/lib/font/bit/misc/ascii.5x7.font"); ./faces/main.c: mediumfont = openfont(display, "/lib/font/bit/pelm/latin1.8.font"); ./ip/gping.c: mediumfont = openfont(display, "/lib/font/bit/pelm/latin1.8.font"); ./stats.c: mediumfont = openfont(display, "/lib/font/bit/pelm/latin1.8.font"); ./trace.c: mediumfont = openfont(display, "/lib/font/bit/lucidasans/unicode.10.font"); ./trace.c: tinyfont = openfont(display, "/lib/font/bit/lucidasans/unicode.7.font"); ./abaco/main.c: error("openfont"); - erik