Am Montag, 10. Juni 2024, 15:53:19 MESZ schrieb Wolfgang Schuster: > Gerion Entrup schrieb am 10.06.2024 um 13:16: > > Hi, > > > > I'd like to scale something (actually a symbol drawn in TikZ) to the exact > > high of the char 'M'. I found the scale environment for it but struggle to > > measure the correct font height. I found the "definemeasure/measure/measured" > > commands but they define a dimension and are not for doing measurements on > > rendered text. Is there a simple way to get the height a char as a dimension? > > > > MWE: > > ``` > > \starttext > > % Is it possible to replace 1cm with a common expression? > > This is the letter M. \scale[height=1cm]{a} should have the exact same size as > > M. > > > > This should also be true {\tfc with a bigger M. \scale[height=1cm]{a}}. > > \stoptext > > ``` > > \starttext > M\scale[height=\heightofstring{M}]{a}M > \stoptext > > Wolfgang > Thank you all! Added to the wiki: https://wiki.contextgarden.net/Dimensions Gerion