My flow chart keeps having the problem below:
I think because I am using a font: amsfonts
\begin{scope}[start chain=going below,
nodes={on chain,draw,minimum height=1.7em,inner xsep=1ex,
equal size,rounded corners,join,font=\amsfonts},
However, I want my flow char having the same font as my text.
I am not sure what is my font size here. I assume is amsfonts
\documentclass[12pt,oneside]{book}
\usepackage{amsmath}
\usepackage{enumitem, url}
\usepackage{eqparbox}
\newbox\eqnodebox
\usepackage{tikz}
\tikzset{equal size/.style={execute at begin
node={\setbox\eqnodebox=\hbox\bgroup},
execute at end node={\egroup\eqmakebox[#1][c]{\copy\eqnodebox}}},
equal size/.default=A}
\usetikzlibrary{arrows.meta,
chains,
positioning}
\usepackage{makecell, multirow, tabularx} %for table multirow
\begin{document}
\begin{figure}[h!]
\centering
\begin{tikzpicture}[node distance=0.5cm]
\begin{scope}[start chain=going below,
nodes={on chain,draw,minimum height=1.7em,inner xsep=1ex,
equal size,rounded corners,join,font=\amsfonts},
every join/.style={-{Triangle[length=2mm,width=4mm]},line width=1.5mm,
gray!50,shorten >=1mm,shorten <=1mm}]
\node{Sample 1};
\node{Sample 1};
\node{Sample 1};
\node{Sample 1};
\node{Sample 1};
\end{scope}
\end{tikzpicture}
\caption{Testing Sample 1 Sample 1.}
\label{fig:flowchart}
\end{figure}
\end{document}


font=\amsfonts. This is not a valid command. The font size will be the one of the ambient text unless you change it, so you do not need to add a key for that, let alonefont=\amsfonts. – May 24 '20 at 09:27fonttype, is it possible? Besidefont=\sffamily? – aan May 24 '20 at 09:34\sffamilyis not a font but a family, you could also usefont=\ttfamily. You can change the font weight withfont=\bfseriesand you can combine all those. – May 24 '20 at 09:37