9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@quanstro.net>
To: 9fans@9fans.net
Subject: Re: [9fans] stats font problem fixed
Date: Tue, 12 May 2009 08:44:48 -0400	[thread overview]
Message-ID: <aa0234fe91a569357667b0c24853a173@quanstro.net> (raw)
In-Reply-To: <f82f4a87-5968-4e9e-91fb-29e785ccf4af@z16g2000prd.googlegroups.com>

; 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



      reply	other threads:[~2009-05-12 12:44 UTC|newest]

Thread overview: 2+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2009-05-12  9:08 prem
2009-05-12 12:44 ` erik quanstrom [this message]

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=aa0234fe91a569357667b0c24853a173@quanstro.net \
    --to=quanstro@quanstro.net \
    --cc=9fans@9fans.net \
    /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).