[Tex/LaTex] how to change the chapter font size

chaptersfontsize

How can i change the following code to make the chapter title font size bigger?

\titleformat{\chapter}[block]
{\normalfont\sffamily}{}{0pt}
{\parbox[b]{\chapnumb}{%
\fontsize{120}{110}\selectfont\thechapter}%
\parbox[b]{\dimexpr\textwidth-\chapnumb\relax}{%
\raggedleft%
\hfill{\LARGE#1}\\
\rule{\dimexpr\textwidth-\chapnumb\relax}{0.4pt}}}

The above code reproduce this:
enter image description here

and i would like to be like this:
enter image description here

Code is taken from the following post:
Chapter style like this without memoir?

thanks in advance

Best Answer

The use of the [explicit] option to titlesec forces the user to input #1 for the title format. You'll note a reference to \LARGE#1 within the definition of \titleformat for \chapter (both). Adjust this to suit your needs.

Below I've updated the font reference so you can (re)define \chaptertitlefont:

enter image description here

\documentclass{book}
\usepackage[explicit]{titlesec}
\usepackage{lmodern,lipsum}

\newlength\chapnumb
\setlength\chapnumb{4cm}
\newcommand{\chaptertitlefont}{\normalfont\sffamily\Huge}

\titleformat{\chapter}[block]
{\normalfont\sffamily}{}{0pt}
{\parbox[b]{\chapnumb}{%
   \fontsize{120}{110}\selectfont\thechapter}%
  \parbox[b]{\dimexpr\textwidth-\chapnumb\relax}{%
    \raggedleft%
    \hfill{\chaptertitlefont#1}\\
    \rule{\dimexpr\textwidth-\chapnumb\relax}{0.4pt}}}
\titleformat{name=\chapter,numberless}[block]
{\normalfont\sffamily}{}{0pt}
{\parbox[b]{\chapnumb}{%
   \mbox{}}%
  \parbox[b]{\dimexpr\textwidth-\chapnumb\relax}{%
    \raggedleft%
    \hfill{\chaptertitlefont#1}\\
    \rule{\dimexpr\textwidth-\chapnumb\relax}{0.4pt}}}

\begin{document}

\chapter*{A Long Title for an Unnumbered Test Chapter}
\lipsum[4]
\chapter{Introduction}
\lipsum[4]

\end{document}

The above changes the font to \Huge. If you want larger font sizes, see Fonts larger than \Huge?