# Change main text font only

I am writing a book and I use \usepackage{charter}, but this changes the font of the main text too. How do I keep the font for Chapter title, Section title, header, footer etc of this package and use other font for the main text (i.e. CM Serif)? This is my code so far

\documentclass{book}
\usepackage[T1]{fontenc}
\usepackage{charter}
\usepackage{lipsum}

\begin{document}
\chapter{Chapter 1}
\lipsum
\end{document}


The charter package changes two elements:

\renewcommand{\rmdefault}{bch}
\renewcommand{\bfdefault}{b}


You can just avoid this setting of \rmdefault by selecting bch (bitstream charter) as-needed. Tapping into the sectional units with sectsty is straight-forward, although other options also exist. Also, fancyhdr is typically the go-to when it comes to header/footer customization, but again, other options also exist.

\documentclass{book}

\usepackage{sectsty,fancyhdr,lipsum}

\newcommand{\charterfont}{\fontfamily{bch}\selectfont}
\chapterfont{\charterfont}
\sectionfont{\charterfont\bfseries}

\fancyfoot[C]{\charterfont\thepage}
\pagestyle{fancy}

\fancypagestyle{plain}{%