ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Giuseppe Bilotta <bourbaki@bigfoot.com>
Cc: ntg-context@ntg.nl
Subject: Re[3]: Enabling protruding
Date: Thu, 24 Jan 2002 12:10:06 +0100	[thread overview]
Message-ID: <1611860625.20020124121006@bigfoot.com> (raw)
In-Reply-To: <5.1.0.14.1.20020124112706.039925c0@server-1>

Thursday, January 24, 2002 Hans Hagen wrote:

HH> At 07:44 PM 1/23/2002 +0100, Giuseppe Bilotta wrote:

HH> interesting, took me a while to identify the problem (has to do with empty
HH> parameter). I'll send you a new syst-gen.tex to test.

Seems to work ...

HH> now, to the hanging: one complication is that once a font is 'defined', its 
HH> characteristics are kind of fixed; i could remove this limitation but it 
HH> would not help at all, since hanging get fixed in tex itself.

I thought it was possible to change the protruding by reassigning
the lp/rpcodes.

HH> this means that for the preloaded cmr fonts, (or any preloaded
HH> font) one has to redefine them; also, because of the design
HH> sizes, cmr's are not mapped onto Serif, so here we need to
HH> manually set the fonts (unless one defines them as any ps
HH> collection, ignoreing the design size)

This is a little of a pain.

About design sizes: couldn't you implement the font remapping
mechanism in such a way that cmr10 sa 12 -> cmr12 and so on, or
something like that?

Maybe something like use a flag (discrete=yes,no) so that when
discrete is on (yes), you give the base name (cmr) and ConTeXt appends
the size (10, 12, ...), and when discrete if off (no) it just
scales.

HH> % output=pdftex

HH> \setupfontsynonym[cmr10][handling=pure]
HH> \setupfontsynonym[Serif][handling=pure]
HH> \setupfonthandling[normal][left=1,right=1]

HH> % so here we load 'm again

HH> \usetypescript[cmr] \setupbodyfont[10pt]

HH> % handy for tracing the hanging

HH> \showframe

HH> % off we go

HH> \starttext
HH>    \dorecurse{100}{testtest, }
HH>    \setupalign[hanging]
HH>    \dorecurse{100}{testtest, }
HH>    \setupbodyfont[pos,10pt]
HH>    \dorecurse{100}{testtest, }
HH> \stoptext

Now cmr hangs even when align is not set to hanging (you can see
this by prefixing \setupalign[nothanging] before the first
dorecurse).

--
Giuseppe "Oblomov" Bilotta


  reply	other threads:[~2002-01-24 11:10 UTC|newest]

Thread overview: 16+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
2002-01-23 16:28 Giuseppe Bilotta
2002-01-23 17:21 ` Hans Hagen
2002-01-23 18:44   ` Re[2]: " Giuseppe Bilotta
2002-01-24 10:32     ` Hans Hagen
2002-01-24 11:10       ` Giuseppe Bilotta [this message]
2002-01-24 13:45         ` Re[3]: " Hans Hagen
2002-01-24 15:36           ` Taco Hoekwater
2002-01-24 16:05             ` Hans Hagen
2002-01-25 14:47               ` Re[5]: " Giuseppe Bilotta
2002-04-15 11:08         ` no hanging punctuation Albrecht Kauffmann
2002-04-18  9:05           ` Lutz Haseloff
2002-04-18 10:19             ` Patrick Gundlach
2002-04-18 10:33               ` Lutz Haseloff
2002-04-18 12:10                 ` Bill McClain
2002-01-25 15:38       ` Enabling protruding Bill McClain
2002-01-25 16:15         ` Hans Hagen

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=1611860625.20020124121006@bigfoot.com \
    --to=bourbaki@bigfoot.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).