I want to control the size of the chapter number in ConTeXt with some command like LaTeX \anyfontsize. I was checking this answer https://tex.stackexchange.com/a/668592/14423 I was able to modify the gap between the chapter number and the vertical line (\blackrule) but I could not control the size of the chapter number. Another related question is, the size of \blackrule is affected by the size of the chapter number?
\definehspace[oneem][-.125 em]
\starttexdefinition MyNumberChapterCommand #1
{\tfe #1}
%\enspace
\hspace[oneem]
\blackrule[
height=\lineheight,
depth=\strutdepth,
width=2pt,
color=darkred,
]
\stoptexdefinition
\definebodyfont[14pt][rm][tfe=Regular at 36pt]
\setuphead[chapter][
numbercommand=\MyNumberChapterCommand,
page=no,%Just to have them on the same page here
%numberstyle=\tfe
]
\starttext
\startchapter[title={With a rule}]
Bla bla bla
\stopchapter
\stoptext

\anyfontsizedoes in latex. – Aditya Mar 11 '23 at 00:41