% musixebgr.tex : EBGaramond font definitions for MusiXTeX
%
% usage: 
%
%    \input musixtex
%    \input musixebgr
%    ...
%
%   MusiXebgr.tex is free software; you can redistribute it and/or modify
%   it under the terms of the GNU General Public License as published by
%   the Free Software Foundation; either version 2, or (at your option)
%   any later version.
%
%   MusiXebgr.tex is distributed in the hope that it will be useful,
%   but WITHOUT ANY WARRANTY; without even the implied warranty of
%   MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
%   GNU General Public License for more details.
%
%   You should have received a copy of the GNU General Public License
%   along with MusiXTeX; see the file COPYING.  If not, write to
%   the Free Software Foundation, Inc., 59 Temple Place - Suite 330,
%   Boston, MA 02111-1307, USA.
%
%   Copyright 2025  Bob Tennent rdt@cs.queensu.ca
%
\immediate\write16{MusiXebg\space<2025/02/02>}
\ifx\undefined\startpiece\errmessage{Input musixtex.tex before musixebgr.tex}\fi
%
% 7pt roman, bold, italic, bold italic, slanted and small-cap
\font\sevenrm=EBGaramond-Regular-osf-t1 at 7pt
\font\sevenbf=EBGaramond-Bold-osf-t1 at 7pt
\font\sevenit=EBGaramond-Italic-osf-t1 at 7pt
\font\sevenbi=EBGaramond-BoldItalic-osf-t1 at 7pt
\font\sevensc=EBGaramond-Regular-osf-sc-t1 at 7pt
%
% 8pt roman, bold, italic, bold italic, slanted and small-cap
\font\eightrm=EBGaramond-Regular-osf-t1 at 8pt
\font\eightbf=EBGaramond-Bold-osf-t1 at 8pt
\font\eightit=EBGaramond-Italic-osf-t1 at 8pt
\font\eightbi=EBGaramond-BoldItalic-osf-t1 at 8pt
\font\eightsc=EBGaramond-Regular-osf-sc-t1 at 8pt
%
% 9pt
\font\ninerm=EBGaramond-Regular-osf-t1 at 9pt
\font\ninebf=EBGaramond-Bold-osf-t1 at 9pt
\font\nineit=EBGaramond-Italic-osf-t1 at 9pt
\font\ninebi=EBGaramond-BoldItalic-osf-t1 at 9pt
\font\ninesc=EBGaramond-Regular-osf-sc-t1 at 9pt
%
% 10pt
\font\tenrm=EBGaramond-Regular-osf-t1 at 10pt
\font\tenbf=EBGaramond-Bold-osf-t1 at 10pt
\font\tenit=EBGaramond-Italic-osf-t1 at 10pt
\font\tenbi=EBGaramond-BoldItalic-osf-t1 at 10pt
\font\tensc=EBGaramond-Regular-osf-sc-t1 at 10pt
%
% 11pt
\font\elevenrm=EBGaramond-Regular-osf-t1 scaled \magstephalf
\font\elevenbf=EBGaramond-Bold-osf-t1 scaled \magstephalf
\font\elevenit=EBGaramond-Italic-osf-t1 scaled \magstephalf
\font\elevenbi=EBGaramond-BoldItalic-osf-t1 scaled \magstephalf
\font\elevensc=EBGaramond-Regular-osf-sc-t1 scaled \magstephalf
%
% 12pt
\font\twelverm=EBGaramond-Regular-osf-t1 scaled \magstep1
\font\twelvebf=EBGaramond-Bold-osf-t1 scaled \magstep1
\font\twelveit=EBGaramond-Italic-osf-t1 scaled \magstep1
\font\twelvebi=EBGaramond-BoldItalic-osf-t1 scaled \magstep1
\font\twelvesc=EBGaramond-Regular-osf-sc-t1 scaled \magstep1
%
% 14pt
\font\frtrm=EBGaramond-Regular-osf-t1 scaled \magstep2
\font\frtbf=EBGaramond-Bold-osf-t1 scaled \magstep2
\font\frtit=EBGaramond-Italic-osf-t1 scaled \magstep2
\font\frtbi=EBGaramond-BoldItalic-osf-t1 scaled \magstep2
\font\frtsc=EBGaramond-Regular-osf-sc-t1 scaled \magstep2
%
% 17pt
\font\svtrm=EBGaramond-Regular-osf-t1 scaled \magstep3
\font\svtbf=EBGaramond-Bold-osf-t1 scaled \magstep3
\font\svtit=EBGaramond-Italic-osf-t1 scaled \magstep3
\font\svtbi=EBGaramond-BoldItalic-osf-t1 scaled \magstep3
\font\svtsc=EBGaramond-Regular-osf-sc-t1 scaled \magstep3
%
% 20pt
\font\twtyrm=EBGaramond-Regular-osf-t1 scaled \magstep4
\font\twtybf=EBGaramond-Bold-osf-t1 scaled \magstep4
\font\twtyit=EBGaramond-Italic-osf-t1 scaled \magstep4
\font\twtybi=EBGaramond-BoldItalic-osf-t1 scaled \magstep4
\font\twtysc=EBGaramond-Regular-osf-sc-t1 scaled \magstep4
%
% 25pt
\font\twfvrm=EBGaramond-Regular-osf-t1 scaled \magstep5
\font\twfvbf=EBGaramond-Bold-osf-t1 scaled \magstep5
\font\twfvit=EBGaramond-Italic-osf-t1 scaled \magstep5
\font\twfvbi=EBGaramond-BoldItalic-osf-t1 scaled \magstep5
\font\twfvsc=EBGaramond-Regular-osf-sc-t1 scaled \magstep5
%
%
% large fonts for titles
% (If you prefer bold, use \bf)
% (If you prefer roman, use \rm)
%
\def\bigtype{\bigfont\sc}
\def\Bigtype{\Bigfont\sc}
\def\BIgtype{\BIgfont\sc}
\def\BIGtype{\BIGfont\sc}
%
\font\ppfftwelve=EBGaramond-BoldItalic-osf-t1 at 8pt
\font\ppffsixteen=EBGaramond-BoldItalic-osf-t1 at 10pt
\font\ppfftwenty=EBGaramond-BoldItalic-osf-t1 at 12pt
\font\ppfftwentyfour=EBGaramond-BoldItalic-osf-t1 at 14pt
\font\ppfftwentynine=EBGaramond-BoldItalic-osf-t1 at 17pt
%
\def\f{{\ppff f}}
\def\ff{{\ppff ff}}
\def\fp{{\ppff fp}}
\def\fff{{\ppff fff}}
\def\ffff{{\ppff ffff}}
\def\mf{{\ppff mf}}
\def\p{{\ppff p}}
\def\pp{{\ppff pp}}
\def\ppp{{\ppff ppp}}
\def\pppp{{\ppff pppp}}
%
%
% sl fonts needed by musixsty
%
\font\eightsl=EBGaramond-Italic-osf-t1 at 8pt
\font\ninesl=EBGaramond-Italic-osf-t1 at 9pt
\font\tensl=EBGaramond-Italic-osf-t1 at 10pt
\font\twelvesl=EBGaramond-Italic-osf-t1 scaled \magstep1
\font\frtsl=EBGaramond-Italic-osf-t1 scaled \magstep2
\font\svtsl=EBGaramond-Italic-osf-t1 scaled \magstep3
\font\twtysl=EBGaramond-Italic-osf-t1 scaled \magstep4
\font\twfvsl=EBGaramond-Italic-osf-t1 scaled \magstep5
%
%
\edef\catcodeat{\the\catcode`\@}\catcode`\@=11
%
\def\sF{{\ppff s\p@kern f}}
\def\sfz{{\ppff s\p@kern f\f@kern z}}
\def\sfzp{{\ppff s\p@kern f\f@kern z\p@kern p}}

\def\mp@{{\ppff mp}}
\let\mezzopiano\mp@

\catcode`\@=\catcodeat

%
% Redefine accented characters for 8-bit font, suggested by David Carlisle:
%

\ifx\documentclass\undefined
\catcode`\@=11
\def\ProvidesFile#1[#2]{}
\def\DeclareFontEncoding#1#2#3{}
\def\DeclareTextAccent#1#2#3{%
\def#1##1{%
\expandafter\ifx\csname T1\string#1-\string##1\endcsname\relax
{\accent#1 ##1}%
\else
\csname T1\string#1-\string##1\expandafter\endcsname
\fi}}
\def\DeclareTextCommand#1#2{\xdtcmd}%not today
\def\xdtcmd#1#{\xxdtcmd}%not today
\def\xxdtcmd#1{}%not today
\def\DeclareTextCompositeCommand#1#2#3#4{}%not today
\def\DeclareTextSymbol#1#2#3{%
\def#1{\char#3\relax}}
\def\DeclareTextComposite#1#2#3#4{%
\expandafter\def\csname T1\string#1-\string#3\endcsname{\char#4\relax}}

\input t1enc.def 

% \c needs special treatment
\def\c#1{\leavevmode\ifx c#1\char231 \else\setbox\z@\hbox{#1}\ifdim\ht\z@=1ex\accent11 #1%
     \else{\ooalign{\unhbox\z@\crcr
        \hidewidth\char11\hidewidth}}\fi\fi}
\catcode`\@=\catcodeat
\fi

\normtype
\endinput
