From: Pablo Rodriguez <oinos@gmx.es>
To: ntg-context@ntg.nl
Subject: Re: efficiently scaling fonts
Date: Thu, 24 Dec 2020 16:00:37 +0100 [thread overview]
Message-ID: <f040a7bb-b35d-bcc7-2cd3-1a0774a02c85@gmx.es> (raw)
In-Reply-To: <27aae4a0-aa04-dee3-8dc2-8b1555bb4a42@xs4all.nl>
On 12/24/20 12:20 PM, Hans Hagen wrote:
> Hi,
>
> I uploaded a new lmtx ... in a previous mail i mentioned font scaling
> and I made that two dimensional:
Hi Hans,
many thanks for the LMTX new release.
I can only get it working after removing the extra \starttext and adding
\stopbuffer and \getbuffer, such as in:
\setuplayout[topspace=1cm,header=1cm]
\setuplayout[middle]
\setupbodyfont[pagella,10pt]
\setupalign[verytolerant,stretch]
\setupwhitespace[big]
\starttext
\startbuffer
\definescaledfont[bfe][xscale=2000,yscale=6000,style=bf]
\setuphead[chapter][style=\bfe]
\dostepwiserecurse {10} {2020} {10} {
\title{Here we go #1!}
\start
\glyphxscale#1\relax
\glyphyscale#1\relax
\setupinterlinespace
\samplefile{ward}%
\start
\bf
\samplefile{ward}%
\glyphxscale\numexpr(#1*2)/3\relax
\glyphyscale#1\relax
\samplefile{ward}%
\par
\stop
\def\TEST{y = \sqrt{x^2 + 1}^3}%
\dontleavehmode
\ruledhbox{\glyphxscale #1 \glyphyscale #1
$\left{\TEST\right}$}
\ruledhbox{\glyphxscale #1 \glyphyscale
\numexpr#1*3\relax $\left{\TEST\right}$}
\ruledhbox{\glyphxscale \numexpr#1/2\relax \glyphyscale
\numexpr#1*2\relax $\left{\TEST\right}$}
\par
\stop
\page
}
\stopbuffer
\getbuffer
\stoptext
Many thanks for your excellent work.
Happy holidays to you and to all list members,
Pablo
--
http://www.ousia.tk
___________________________________________________________________________________
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://context.aanhet.net
archive : https://bitbucket.org/phg/context-mirror/commits/
wiki : http://contextgarden.net
___________________________________________________________________________________
prev parent reply other threads:[~2020-12-24 15:00 UTC|newest]
Thread overview: 2+ messages / expand[flat|nested] mbox.gz Atom feed top
2020-12-24 11:20 Hans Hagen
2020-12-24 15:00 ` Pablo Rodriguez [this message]
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=f040a7bb-b35d-bcc7-2cd3-1a0774a02c85@gmx.es \
--to=oinos@gmx.es \
--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).