9fans - fans of the OS Plan 9 from Bell Labs
 help / color / mirror / Atom feed
From: erik quanstrom <quanstro@coraid.com>
To: 9fans@cse.psu.edu
Subject: [9fans] font height.
Date: Thu, 15 Mar 2007 12:27:07 -0500	[thread overview]
Message-ID: <5d56557488a1ffb57a230ecabaef1c84@coraid.com> (raw)

code2000 and cyberbit both have accented characters that are
taller than the nominal height of the font, like Ó.  unfortunately
the draw library, the frame library, rio and acme are not aware that
different characters in a font may have different heights.  thus characters
like Ó are chopped off at the knees.  fonts like pelm solve this by 
compressing the height of accented caps, an unattractive but effective
solution.

the obvious place to start in helping libdraw understand different
letter heights would be in in libdraw/stringwidth.c.  the function 
_stringnwidth, should be replaced with _stringnsize, returning a Point.

but that's the easy part!  rio and acme have fine-tuned drawing routines
that make the assumption that fonts are fixed-height.

- erik


                 reply	other threads:[~2007-03-15 17:27 UTC|newest]

Thread overview: [no followups] expand[flat|nested]  mbox.gz  Atom feed

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=5d56557488a1ffb57a230ecabaef1c84@coraid.com \
    --to=quanstro@coraid.com \
    --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).