From: Wolfgang Zillig <wolfgang.zillig@student.kuleuven.be>
Subject: Re: Is it possible to automatically determine font size to fit text to a given space?
Date: Fri, 02 Dec 2005 16:18:40 +0100 [thread overview]
Message-ID: <439065D0.70807@student.kuleuven.be> (raw)
In-Reply-To: <4390540E.3000501@wxs.nl>
Could't it be done by metapost?
Wolfgang
Hans Hagen schrieb:
> Daniel Pittman wrote:
>
>> Hints about that, or a native TeX method[1], would be very much
>> appreciated. At the moment it is a relatively slow process of manual
>> trial and error.
>>
>>
> this is something tex is pretty good at and it runs as fast as normal
>
> how does your current code look? (the solution depends a bit it);
> think of something
>
> \doloop{
> \setbox\scratchbox=\vbox
> {the content of the label}
> \ifx\ht\scratchbox>10cm
> \switchtobodyfont[small] \else
> \unvbox\scratchbox
> \exitloop
> \fi
> }
>
> Hans
> _______________________________________________
> ntg-context mailing list
> ntg-context@ntg.nl
> http://www.ntg.nl/mailman/listinfo/ntg-context
>
next prev parent reply other threads:[~2005-12-02 15:18 UTC|newest]
Thread overview: 7+ messages / expand[flat|nested] mbox.gz Atom feed top
2005-12-02 1:14 Daniel Pittman
2005-12-02 14:02 ` Hans Hagen
2005-12-02 15:18 ` Wolfgang Zillig [this message]
2005-12-02 15:30 ` Hans Hagen
2005-12-03 10:10 ` Daniel Pittman
2005-12-04 9:40 ` Gerben Wierda
2005-12-04 20:46 ` 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=439065D0.70807@student.kuleuven.be \
--to=wolfgang.zillig@student.kuleuven.be \
--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).