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? -- John Culleton Wexford Press Free list of books for self-publishers: http://wexfordpress.net/shortlist.html PDF e-book: "Create Book Covers with Scribus" available at http://www.booklocker.com/books/4055.html
Am 22.05.2013 um 16:13 schrieb john Culleton
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?
Do you mean \fakeword? \usemodule[visual] \starttext \dorecurse{10}{\fakeword\space} \blank \dorecurse{10}{\fakewords{2}{8}\par} \stoptext Wolfgang
Hi John,
John Culleton
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.... [2] http://context.aanhet.net/svn/contextman/context-reference/en/co-typography.... 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
Am 22.05.2013 um 19:17 schrieb Sietse Brouwer
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.
One of these examples can be found in the TeXbook on page 65. IIRC a few presentations regardings math used boxes to show the position of the various symbols and the needed kerns for sub- and superscripts etc. Wolfgang
Sietse wrote:
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.
Wolfgang wrote:
One of these examples can be found in the TeXbook on page 65.
Found it; screenshot attached. And now I remember where I saw the hollow rectangles --- it wasn't in a document, but on the GUST website. http://www.gust.org.pl/ @John: we have now found * \fakewords: uniform black slabs with a thin line underneath to suggest descenders * Code to convert letters to filled rectangles * An example of letters-to-outlined-rectangles in the TeXbook * Outlined rectangles on the GUST homepage. Was any of these the fake text you were remembering, or do you think there is still something else? This seems a nice occasion to complete the wiki's [[Dummy text]] article. (Which also mentions the ipsum module for lorem ipsum text, by the way.) http://wiki.contextgarden.net/Dummy_text Cheers, Sietse
participants (3)
-
john Culleton
-
Sietse Brouwer
-
Wolfgang Schuster