\def\fileversion{1.0}%
\def\filedate{2005/12/20}%
\NeedsTeXFormat{LaTeX2e}%
\ProvidesPackage{fouriernc}%
[\filedate\space\fileversion\space fouriernc package]%

%The metrics for the 'upright' option have not been tuned.
\DeclareOption{sloped}{\PassOptionsToPackage{sloped}{fourier}}
%\DeclareOption{upright}{\PassOptionsToPackage{upright}{fourier}}

\ExecuteOptions{sloped}
\ProcessOptions
\RequirePackage{fourier}

%\ifsloped
  \DeclareSymbolFont{letters}{FML}{fncmi}{m}{it}
  \DeclareSymbolFont{otherletters}{FML}{fncm}{m}{it}
  \SetSymbolFont{letters}{bold}{FML}{fncmi}{b}{it}
  \SetSymbolFont{otherletters}{bold}{FML}{fncm}{b}{it}
%\else
%  \DeclareSymbolFont{letters}{FML}{fncm}{m}{it}
%  \DeclareSymbolFont{otherletters}{FML}{fncmi}{m}{it}
%  \SetSymbolFont{letters}{bold}{FML}{fncm}{b}{it}
%  \SetSymbolFont{otherletters}{bold}{FML}{fncmi}{b}{it}
%\fi

\renewcommand{\rmdefault}{fnc}

\DeclareFontSubstitution{FML}{fncmi}{m}{it}
\DeclareFontSubstitution{FMS}{fncm}{m}{n}

\DeclareSymbolFont{operators}{T1}{fnc}{m}{n}
\SetSymbolFont{operators}{bold}{T1}{fnc}{b}{n}
\DeclareSymbolFont{symbols}{FMS}{fncm}{m}{n}
\DeclareMathAlphabet{\mathbf}{T1}{fnc}{b}{n}
\DeclareMathAlphabet{\mathrm}{T1}{fnc}{m}{n}
\DeclareMathAlphabet{\mathit}{T1}{fnc}{m}{it}
\DeclareMathAlphabet{\mathcal}{FMS}{fncm}{m}{n}

\endinput