Next: \settoheight, Previous: \addtolength, Up: Lengths
\settodepth
\settodepth{\gnat}{text}
The \settodepth command sets the value of a length command equal to the depth of the text argument.
length
text