ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Is it possible to automatically determine font size to fit text to a given space?
@ 2005-12-02  1:14 Daniel Pittman
  2005-12-02 14:02 ` Hans Hagen
  0 siblings, 1 reply; 7+ messages in thread
From: Daniel Pittman @ 2005-12-02  1:14 UTC (permalink / raw)


G'day. 

One of the things I (ab)use ConTeXt for is printing little text labels
to Avery stock.  This works quite well, and I was pleasantly surprised
how easy it was to get working with some hints from Hans in the archives
of this list.

The labels, over time, have varying lengths of text on them, and to get
that to fit on a single label sometimes requires that I vary the font
size to avoid the text spilling over outside the bounding box.

Is there any reasonable way that I could automate the process of
adjusting the font size so that I got the biggest possible size while
keeping the text fully fitted to the label?


I don't mind automating this outside of TeX/ConTeXt, by using a script
to try the font sizes and examine the TeX output for overflow messages,
but I don't know quite what to look for.  

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.

Regards,
        Daniel

Footnotes: 
[1]  I don't care if it takes ten minutes to run, since this isn't a
     performance critical job.

^ permalink raw reply	[flat|nested] 7+ messages in thread

end of thread, other threads:[~2005-12-04 20:46 UTC | newest]

Thread overview: 7+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2005-12-02  1:14 Is it possible to automatically determine font size to fit text to a given space? Daniel Pittman
2005-12-02 14:02 ` Hans Hagen
2005-12-02 15:18   ` Wolfgang Zillig
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

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).