%
%          CM fonts
%     HR - znakovi (dj i Dj)   
%

\def\rmdj {d\llap{\raise 1.22ex\hbox
  {\vrule height 0.09ex width 0.315em}\kern 0.04em}}
\def\sldj {d\llap{\raise 1.22ex\hbox
  {\vrule height 0.09ex width 0.265em}}\rlap{\raise 1.22ex\hbox
  {\vrule height 0.09ex width 0.05em}}}
\def\itdj {d\llap{\raise 1.22ex\hbox
  {\vrule height 0.09ex width 0.2em}}\rlap{\raise 1.22ex\hbox
  {\vrule height 0.09ex width 0.06em}}}
\def\bfdj {d\llap{\raise 1.16ex\hbox
  {\vrule height 0.126ex width 0.308em}\kern 0.04em}}
\def\ttdj {\rlap{\kern 0.17em\raise 1.1ex\hbox
  {\vrule height 0.09ex width 0.295em}}d}
\def\scdj {\rlap{\kern 0.04em\raise 0.57ex\hbox
  {\vrule height 0.09ex width 0.20em}}d}
\def\sfdj {d\llap{\raise 1.22ex\hbox
  {\vrule height 0.10ex width 0.3em}\kern 0.02em}}

\def\dj{\ifcase\fam \rmdj \or \or \or
  \or \itdj \or \sldj \or \bfdj \or \ttdj \or \sfdj \or \scdj \else \rmdj \fi}

\def\rmDi {\rlap{\kern 0.05em\raise 0.76ex\hbox
  {\vrule height 0.10ex width 0.28em}}D}
\def\slDi {\rlap{\kern 0.1em\raise 0.76ex\hbox
  {\vrule height 0.1ex width 0.28em}}D}
\def\itDi {\rlap{\kern 0.145em\raise 0.76ex\hbox
  {\vrule height 0.1ex width 0.274em}}D}
\def\bfDi {\rlap{\kern 0.044em\raise 0.72ex\hbox
  {\vrule height 0.126ex width 0.287em}}D}
\def\ttDi {\rlap{\kern 0.02em\raise 0.67ex\hbox
  {\vrule height 0.105ex width 0.20em}}D}
\def\scDi {\rlap{\kern 0.08em\raise 0.73ex\hbox
  {\vrule height 0.12ex width 0.24em}}D}
\def\sfDi {\rlap{\kern 0.02em\raise 0.727ex\hbox
  {\vrule height 0.126ex width 0.26em}}D}

\def\Di{\ifcase\fam \rmDi \or \or \or
  \or \itDi \or \slDi \or \bfDi \or \ttDi \or \sfDi \or \scDi \else \rmDi \fi}

\def\Dj {\hbox{\Di }}
