From: Sietse Brouwer <sbbrouwer@gmail.com>
To: mailing list for ConTeXt users <ntg-context@ntg.nl>
Subject: Re: Faux font
Date: Wed, 22 May 2013 19:17:08 +0200 [thread overview]
Message-ID: <CAF=dkzy8Y0=-9V-CpTJU-a1o9NfGpF9PFbnmnQhicCNi3Q6rbw@mail.gmail.com> (raw)
In-Reply-To: <6D90E11E-CED6-44BA-B5C6-CE2042610A56@gmail.com>
Hi John,
John Culleton <John@wexfordpress.com> wrote:
>> In some Context manuals (can't remember which ones) there is a faux font
>> that just consists of little rectangles of two different sizes. What is
>> the name of that font? Is it included in e.g. TeXLive?
Wolfgang wrote:
> Do you mean \fakeword?
Link to the This Way that introduces \fakeword and friends:
http://www.pragma-ade.com/general/magazines/mag-0007.pdf
(I am personally rather fond of the \simplethesis command. (This
command produces a lot of output, so it may take a bit longer than you
expect --- just like a real thesis.))
Or perhaps you mean the black boxes in section 5 of the reference
manual's typography chapter [1]? Those are made by replacing every
letter with a black rule of equal height, depths, and width. I dug op
the code [2]; relevant bit is below.
[1] http://context.aanhet.net/svn/contextman/context-reference/en/co-typography.pdf
[2] http://context.aanhet.net/svn/contextman/context-reference/en/co-typography.tex
NB: I also have some recollection of dummy text composed of hollow
rectangles rather than solid black ones, but like you I cannot
remember where I saw that. Maybe the document also showed kerns, in
pretty colors? I can't remember.
Cheers,
Sietse
% Converting every letter into a rectangle.
\def\somecharacter#1%
{\setbox0=\hbox{#1}%
\blackrule[width=\wd0,height=\ht0,depth=\dp0]}
\def\someline%
{\noindent \processtokens\somecharacter\somecharacter\relax\space
{The height and depth of lines differs.}}
\starttext
\someline
\stoptext
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!
maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage : http://www.pragma-ade.nl / http://tex.aanhet.net
archive : http://foundry.supelec.fr/projects/contextrev/
wiki : http://contextgarden.net
___________________________________________________________________________________
next prev parent reply other threads:[~2013-05-22 17:17 UTC|newest]
Thread overview: 5+ messages / expand[flat|nested] mbox.gz Atom feed top
2013-05-22 14:13 john Culleton
2013-05-22 15:21 ` Wolfgang Schuster
2013-05-22 17:17 ` Sietse Brouwer [this message]
2013-05-22 17:28 ` Wolfgang Schuster
2013-05-23 10:29 ` Sietse Brouwer
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='CAF=dkzy8Y0=-9V-CpTJU-a1o9NfGpF9PFbnmnQhicCNi3Q6rbw@mail.gmail.com' \
--to=sbbrouwer@gmail.com \
--cc=ntg-context@ntg.nl \
/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).