# How can I set the chapter titles in EB Garamond?

I am using the font EB Garamond but I don't succeed to get the chapter and section titles to be set right. The package ebgaramond does not have all the features I want, and when looking for the font with fontspec, the true type version seems to be taken. That's why I have to define the path to the fonts explicitly.

At the moment, I use the following MWE:

% arara: lualatex: { shell: yes, options: -synctex=-1 }

\documentclass{scrreprt}
\usepackage{luatextra}
\usepackage{fontspec}
\defaultfontfeatures{%
,RawFeature={+dlig, +calt, +cv11, +ss05}
,Ligatures={TeX}
}
\setmainfont[%
,Path = C:/WINDOWS/Fonts/
,Extension = .otf
,UprightFont = *12-Regular
,ItalicFont  = *12-Italic
,BoldFont = *08-Regular
]{EB Garamond}

\begin{document}

\chapter{Test}
Test
\section{Test}
%\textin{T}est % This does not work eather.

\end{document}


I don't know, what is happening and would like to use the font in all places.

-
scrreport is responsible for determining what font is used in section and chapter headings, not fontsepc. It is explained in the manual; something like \setkomafont{chapter}{<commands>}, if I remember... –  jon Feb 21 at 16:36
Thanks, will look at that. Actually, the headings work correctly. And the page numbers also. Weird. Only the titles are misbehaving. –  LaRiFaRi Feb 21 at 16:38
What is a 'title' in the above example? –  jon Feb 21 at 16:40
\chapter{Test}. Egregs answer seems to work. Thanks for your time. –  LaRiFaRi Feb 21 at 16:42

The standard for the Koma-Script classes is to print sectional titles in the sans serif font. Adding

\addtokomafont{disposition}{\rmfamily}


@LaRiFaRi Just don't load a bold font. Or add also \mdseries after \rmfamily –  egreg Feb 21 at 16:44