% 导言区
% 12pt为设置字体大小的基础是12磅
\documentclass[12pt]{article}
\usepackage{ctex}
\newcommand{\myfont}{\textit{\textbf{\textsf{Fancy Text}}}}
% 正文区(文稿区)
\begin{document}
% 字体族设置(罗马字体、无衬线字体、打字机字体)
\textrm{Roman Family} \textsf{Sans Serif Family}
\texttt{Typewritter Family}
{\rmfamily Roman Family} {\sffamily Sans Serif Family}
{\ttfamily Typewritter Family}\\
% 字体大小
{\tiny hello}\\
{\small hello}\\
{\large hello}\\
%中文字号设置命令
\zihao{5} 你好!
% 自定义命令进行字体设置
\myfont
\end{document}