\DeclareFontEncoding{JP}{}{}
\jfontencoding{JP}
\DeclareFontSubstitution{JP}{dn}{m}{n}
\begingroup
\nfss@catcodes
\input{JPdn.fd}
\endgroup
\DeclareErrorJFont{JP}{dn}{m}{n}{10}
\newcommand\jrmdefault{dn}
\newcommand\jsfdefault{dn}
\newcommand\jttdefault{dn}
\newcommand\jbfdefault{bx}
\newcommand\jmddefault{m}
\newcommand\jitdefault{n}
\newcommand\jsldefault{n}
\newcommand\jscdefault{n}
\newcommand\jupdefault{n}
\newcommand\jencodingdefault{JP}
\newcommand\jfamilydefault{\jrmdefault}
\newcommand\jseriesdefault{\jmddefault}
\newcommand\jshapedefault{\jupdefault}

\newcommand{\dm}{\protect\pdm}
\newcommand{\pdm}{\jfontseries\jmddefault\selectfont}
\newcommand{\dg}{\protect\pdg}
\newcommand{\pdg}{\jfontseries\jbfdefault\selectfont}
\let\@min\min
\renewcommand{\min}{\protect\pmin}
\newcommand{\pmin}{\ifmmode\@min\else\pdm\fi}
\let\goth\dg
