I need to input Chinese characters in a document and I need to set the indent of the first line to 2 times width of current font to satisfy the Chinese habits, and the width of a Chinese character is not 1em or 1ex certainly.
So I try to use the LaTeX2e command \f@size to get the width of current font. I use \setlength{\parindent}{\f@size \p@}, it works well with the indent of only 1 time width of current font. However, when I set \setlength{\parindent}{2\f@size \p@}, the indent gets toooo large, just like the following image:

And the effect of the indent of only 1 time width of current font is

Also, I've tried use the \dimeval{} command, but it also doesn't work as expected. The MWE is
\documentclass{article}
\usepackage{indentfirst,zhlipsum,xeCJK}
\makeatletter
\setlength{\parindent}{\dimeval{2\f@size \p@}}
\makeatother
\begin{document}
\zhlipsum[6]
\end{document}



\setlength{\parindent}{2em}. – Jasper Habicht Mar 16 '24 at 07:47\setlength{\parindent}{\dimeval{\f@size \p@ * 2}}or\setlength{\parindent}{\dimexpr\f@size \p@ * 2\relax}. – Jasper Habicht Mar 16 '24 at 08:27