ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* box, strut
@ 2003-09-05  8:01 Patrick Gundlach
  2003-09-05 10:23 ` Hans Hagen
  0 siblings, 1 reply; 3+ messages in thread
From: Patrick Gundlach @ 2003-09-05  8:01 UTC (permalink / raw)


Hello,

could someone please explain the following result?

\starttext
\setbox0=\hbox{fg}\showbox0 
\setbox0=\hbox{\strut fg}\showbox0 
\stoptext

gives

> \box0=
\hbox(8.33331+2.33331)x9.46518
./cmr12/f
./cmr12/g

! OK.
l.3 \setbox0=\hbox{fg}\showbox0
                               

> \box0=
\hbox(10.41603+4.05064)x9.46518
.\hbox(10.41603+4.05064)x0.0
..\rule(10.41603+4.05064)x0.0
..\glue 0.0 plus 1.0fil minus 1.0fil
./cmr12/f
./cmr12/g

! OK.
l.4 \setbox0=\hbox{\strut fg}\showbox0



OK, the first box is easy. The second one gives me a slight headache:
why is the rule 10.4 + 4.1 pt? (14.46667 total)

the definition of strut(box) is 

 \setbox\strutbox=\hbox{\vrule height8.5pt depth3.5pt width\z@}

so where do the other 2.46667 point come from?


Patrick
-- 
Silent is the goldfish in its bowl

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

end of thread, other threads:[~2003-09-05 10:54 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
2003-09-05  8:01 box, strut Patrick Gundlach
2003-09-05 10:23 ` Hans Hagen
2003-09-05 10:54   ` Extending into the left margin Duncan Hothersall

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