From mboxrd@z Thu Jan 1 00:00:00 1970 X-Msuck: nntp://news.gmane.io/gmane.comp.tex.context/84423 Path: news.gmane.org!not-for-mail From: luigi scarso Newsgroups: gmane.comp.tex.context Subject: Re: question about linespace adjustment Date: Wed, 25 Sep 2013 23:00:16 +0200 Message-ID: References: <5241A380.8050608@sil.org> <5241B74E.3030403@sil.org> <5241CFD3.4020008@sil.org> <5241FF01.1020604@sil.org> <52433F76.30905@sil.org> Reply-To: mailing list for ConTeXt users NNTP-Posting-Host: plane.gmane.org Mime-Version: 1.0 Content-Type: multipart/mixed; boundary="===============1544093557==" X-Trace: ger.gmane.org 1380142823 31265 80.91.229.3 (25 Sep 2013 21:00:23 GMT) X-Complaints-To: usenet@ger.gmane.org NNTP-Posting-Date: Wed, 25 Sep 2013 21:00:23 +0000 (UTC) To: mailing list for ConTeXt users Original-X-From: ntg-context-bounces@ntg.nl Wed Sep 25 23:00:28 2013 Return-path: Envelope-to: gctc-ntg-context-518@m.gmane.org Original-Received: from balder.ntg.nl ([5.39.185.229]) by plane.gmane.org with esmtp (Exim 4.69) (envelope-from ) id 1VOwCA-0007D2-Ux for gctc-ntg-context-518@m.gmane.org; Wed, 25 Sep 2013 23:00:27 +0200 Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 040FD101DE; Wed, 25 Sep 2013 22:58:18 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id ArgZ0ZJzXjBv; Wed, 25 Sep 2013 22:58:15 +0200 (CEST) Original-Received: from balder.ntg.nl (localhost [IPv6:::1]) by balder.ntg.nl (Postfix) with ESMTP id 70127101E5; Wed, 25 Sep 2013 22:58:15 +0200 (CEST) Original-Received: from localhost (localhost [127.0.0.1]) by balder.ntg.nl (Postfix) with ESMTP id 7EB88101E5 for ; Wed, 25 Sep 2013 22:58:13 +0200 (CEST) X-Virus-Scanned: Debian amavisd-new at balder.ntg.nl Original-Received: from balder.ntg.nl ([127.0.0.1]) by localhost (balder.ntg.nl [127.0.0.1]) (amavisd-new, port 10024) with LMTP id Vdq5KBmM9KIL for ; Wed, 25 Sep 2013 22:58:12 +0200 (CEST) Original-Received: from filter1-utr.mf.surf.net (filter1-utr.mf.surf.net [195.169.124.152]) by balder.ntg.nl (Postfix) with ESMTP id 231F5101DE for ; Wed, 25 Sep 2013 22:58:11 +0200 (CEST) Original-Received: from mail-qa0-x22c.google.com (mail-qa0-x22c.google.com [IPv6:2607:f8b0:400d:c00::22c]) by filter1-utr.mf.surf.net (8.14.3/8.14.3/Debian-9.4) with ESMTP id r8PL0GBf024099 for ; Wed, 25 Sep 2013 23:00:17 +0200 Original-Received: by mail-qa0-f44.google.com with SMTP id j7so3806551qaq.17 for ; Wed, 25 Sep 2013 14:00:16 -0700 (PDT) DKIM-Signature: v=1; a=rsa-sha256; c=relaxed/relaxed; d=gmail.com; s=20120113; h=mime-version:in-reply-to:references:date:message-id:subject:from:to :content-type; bh=l3dvzjnhMvZysS+olwBf+TmGwI7YxbKcgP18aBlaS4U=; b=w43HF/5IhMVNtpCd6nQpd2Ry3U1XyTmi//rvEluByoWIvrUT9n8idipOJ79WunAhJe dObAsInzy9LjxQTnLCU/HOghpJQTtJDSxZxOXsp+PrOdxKM7OF2i3L+oGUibXg9ebfFM FKmpB6Rpyfl3FSDpNEW+nMGSKa5BrwjcZ0Kaab5avlVqQXpN3wkYOAmdhqUXEwdsl7E2 xYYV1LUyS9nY0utdnQSkQNMc+FLW0s+eeHhvIgriAJGolu/UjlWegrJik1tmXWbluQPz GUdJ1OmVBIm1uVd6QFyO7XSBxsvaHEg+G7RuN2OL3Gl/UEM3488G3JVJ/MwxG89xlZxI 1pAQ== X-Received: by 10.49.88.3 with SMTP id bc3mr5064048qeb.30.1380142816292; Wed, 25 Sep 2013 14:00:16 -0700 (PDT) Original-Received: by 10.140.27.164 with HTTP; Wed, 25 Sep 2013 14:00:16 -0700 (PDT) In-Reply-To: <52433F76.30905@sil.org> X-Bayes-Prob: 0.007 (Score 0, tokens from: @@RPTN) X-CanIt-Geo: ip=2607:f8b0:400d:c00::22c; country=US X-CanItPRO-Stream: uu:ntg-context@ntg.nl (inherits from uu:default, base:default) X-Canit-Stats-ID: 07Ktx0hTe - 295be6389015 - 20130925 (trained as not-spam) X-Scanned-By: CanIt (www . roaringpenguin . com) X-BeenThere: ntg-context@ntg.nl X-Mailman-Version: 2.1.14 Precedence: list List-Id: mailing list for ConTeXt users List-Unsubscribe: , List-Archive: List-Post: List-Help: List-Subscribe: , Errors-To: ntg-context-bounces@ntg.nl Original-Sender: ntg-context-bounces@ntg.nl Xref: news.gmane.org gmane.comp.tex.context:84423 Archived-At: --===============1544093557== Content-Type: multipart/alternative; boundary=047d7bd6aeba4dfa1704e73b8a76 --047d7bd6aeba4dfa1704e73b8a76 Content-Type: text/plain; charset=UTF-8 On Wed, Sep 25, 2013 at 9:54 PM, Lars Huttar wrote: > And is the answer that the bodyfont is a conglomerate > of more properties than just the font, including interlinespace? > You can read font-ini.mkvi : %D \macros %D {setupbodyfont,switchtobodyfont} %D %D The next two macros are user ones. With \type{\setupbodyfont} %D one can set the document bodyfont size, font family, style %D and/or options defined in files, for example: %D %D \starttyping %D \setupbodyfont[modern,12pt,roman] %D \stoptyping %D %D This command affects the document as a whole: text, headers %D and footers. The second macro however affects only the text: %D %D \starttyping %D \switchtobodyfont[10pt] %D \stoptyping %D %D So we've got: %D %D \showsetup{setupbodyfont} %D \showsetup{switchtobodyfont} %D %D Both macros look alike. The second one also has to take %D all kind of keywords into account. If you follow switchtobodyfont you can see unexpanded\def\font_basics_switchtobodyfont#specification% {\edef\m_font_step{\bodyfontvariable{#specification}}% \ifx\m_font_step\empty \font_helpers_set_font\zerocount{#specification}% \else \font_helpers_switch_bodyfont_step % so we have a fast [small] switch \fi \the\everybodyfont \the\everyswitchtobodyfont} \unexpanded\def\switchtobodyfont[#specification]% could become an ifx {\doifsomething{#specification}{\font_basics_switchtobodyfont{#specification}}} The token register \everybodyfont and \everyswitchtobodyfont take care for spaces: (still in font-ini.mkvi) %D {everybodyfont,Everybodyfont,everyglobalbodyfont} %D %D Every change in bodyfont size has conseqences for the baseline %D distance and skips between paragraphs. These are initialized %D in other modules. Here we only provide the hooks that %D garantees their handling. %D At the system level one can initialize thing like: %D %D \starttyping %D \appendtoks \setupspacing \to \everybodyfont %D \stoptyping In core-def.mkiv \appendtoks \synchronizelocallinespecs \to \everyswitchtobodyfont while spac-ver.mkiv \unexpanded\def\synchronizelocallinespecs {\bodyfontlineheight \normallineheight \bodyfontstrutheight\strutheight \bodyfontstrutdepth \strutdepth} -- luigi --047d7bd6aeba4dfa1704e73b8a76 Content-Type: text/html; charset=UTF-8 Content-Transfer-Encoding: quoted-printable



On Wed, Sep 25, 2013 at 9:54 PM, Lars Huttar <= lars_huttar@sil.or= g> wrote:
And is the answer that th= e bodyfont is a conglomerate
of more properties than just the font, including interlinespace?


You ca= n read=C2=A0 font-ini.mkvi :

%D \macros
%D=C2=A0=C2=A0 {setupbody= font,switchtobodyfont}
%D
%D The next two macros are user ones. With \type{\setupbodyfont}
%= D one can set the document bodyfont size, font family, style
%D and/or o= ptions defined in files, for example:
%D
%D \starttyping
%D \setup= bodyfont[modern,12pt,roman]
%D \stoptyping
%D
%D This command affects the document as a whole: te= xt, headers
%D and footers. The second macro however affects only the te= xt:
%D
%D \starttyping
%D \switchtobodyfont[10pt]
%D \stoptypin= g
%D
%D So we've got:
%D
%D \showsetup{setupbodyfont}
%D \sho= wsetup{switchtobodyfont}
%D
%D Both macros look alike. The second one= also has to take
%D all kind of keywords into account.
If you follow switchtobodyfont you can see

unexpanded\def\font_basics_switchtobodyfont#specification%
=C2= =A0 {\edef\m_font_step{\bodyfontvariable{#specification}}%
=C2=A0=C2=A0 = \ifx\m_font_step\empty
=C2=A0=C2=A0=C2=A0=C2=A0 \font_helpers_set_font\zerocount{#specification}%<= br>=C2=A0=C2=A0 \else
=C2=A0=C2=A0=C2=A0=C2=A0 \font_helpers_switch_body= font_step % so we have a fast [small] switch
=C2=A0=C2=A0 \fi
=C2=A0= =C2=A0 \the\everybodyfont
=C2=A0=C2=A0 \the\everyswitchtobodyfont}
\unexpanded\def\switchtobodyfont[#specification]% could become an ifx
= =C2=A0 {\doifsomething{#specification}{\font_basics_switchtobodyfont{#speci= fication}}}


The token register = \everybodyfont=C2=A0 and
\everyswitchtobodyfont take care for spaces:

(still in font-ini.mkvi)

%D= =C2=A0=C2=A0 {everybodyfont,Everybodyfont,everyglobalbodyfont}
%D
%D = Every change in bodyfont size has conseqences for the baseline
%D distance and skips between paragraphs. These are initialized
%D in ot= her modules. Here we only provide the hooks that
%D garantees their hand= ling.

%D At the system level one can initialize thing like:
%D
%D \starttyping
%D \appendtoks \setupspacing \to \everybodyfont
%D \s= toptyping

In core-def.mkiv

\appendtoks
=C2=A0=C2=A0=C2=A0 = \synchronizelocallinespecs
\to \everyswitchtobodyfont

while=C2=A0= spac-ver.mkiv

\unexpanded\def\synchronizelocallinespecs
=C2=A0 {\bodyfontlineheigh= t \normallineheight
=C2=A0=C2=A0 \bodyfontstrutheight\strutheight
=C2= =A0=C2=A0 \bodyfontstrutdepth \strutdepth}



--
luigi
--047d7bd6aeba4dfa1704e73b8a76-- --===============1544093557== Content-Type: text/plain; charset="us-ascii" MIME-Version: 1.0 Content-Transfer-Encoding: 7bit Content-Disposition: inline ___________________________________________________________________________________ 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 ___________________________________________________________________________________ --===============1544093557==--