ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* How to calculate the height of text of a certain width?
@ 2020-03-24 11:19 Rudolf Bahr
  2020-03-24 14:56 ` Wolfgang Schuster
  0 siblings, 1 reply; 10+ messages in thread
From: Rudolf Bahr @ 2020-03-24 11:19 UTC (permalink / raw)
  To: mailing list for ConTeXt users

Hello dear All,

the following MWE works best:


\definelayer[LAY]
\starttext

\setlayerframed[LAY]
  [x=0pt,y=20pt]
  [frame=on,
   width=300pt,
   align={right,}]   % tolerant}]
  {\input ward }
 
\flushlayer[LAY]
\stoptext


Now, it could have a favourable effect on designing a page if the height of a text
of certain width could be calculated in advance, depending of the font.
Is there a way?

As I fear, TeX's means "\setbox" woun't work with aligned texts.

Best wishes, remain healthy,
Rudolf
___________________________________________________________________________________
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
___________________________________________________________________________________

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

end of thread, other threads:[~2020-03-25 11:00 UTC | newest]

Thread overview: 10+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2020-03-24 11:19 How to calculate the height of text of a certain width? Rudolf Bahr
2020-03-24 14:56 ` Wolfgang Schuster
2020-03-24 15:29   ` Rudolf Bahr
2020-03-24 15:36     ` Aditya Mahajan
2020-03-24 18:41       ` Rudolf Bahr
2020-03-24 15:43     ` Wolfgang Schuster
2020-03-24 18:04       ` Rudolf Bahr
2020-03-24 18:29         ` Wolfgang Schuster
2020-03-25 10:30           ` Rudolf Bahr
2020-03-25 11:00           ` Rudolf Bahr

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