% fsbodoni.sty
%
% Copyright (c) 2002 Christian Kuhn
% Christian.Kuhn@QNo.de
%
% This file may be distributed and/or modified under the
% conditions of the LaTeX Project Public License, either
% version 1.2 of this license or (at your option) any later
% version.
% The latest version of this license is in
%   http://www.latex-project.org/lppl.txt
% and version 1.2 or later is part of all distributions of
% LaTeX version 1999/12/01 or later.
%
% You are not allowed to change this file.
%
% This package implements some commands for easy access to the
% FSBodoni and BodoniCondensed PostScript-Type1-Fonts from the
% FontSite-500-CD. Necessary .tfm-, .vf-, .fd-, and .map-files come
% bundled with this style. .afm- and .pfb-files must be taken from the
% FontSite-500-CD and renamed according the Karl-Berry-Scheme.
%
\NeedsTeXFormat{LaTeX2e}[1998/06/01]
\ProvidesPackage{fsbodoni}
   [2002/02/13 v0.9beta FontSite FSBodoni font package]

\newif\if@fbddef
\DeclareOption{default}{\@fbddeftrue}
% If Option default is used, the choosen Bodoni will be used as \familydefault

\newif\if@fbdnot
\DeclareOption{nodefault}{\@fbdnottrue}
% If Option nodefault is NOT used, the choosen Bodoni will be used
% as \rmdefault, otherwise only the implemented commands will be
% available

\newif\if@fbdnox
\DeclareOption{noexpert}{\@fbdnoxtrue}
% If Option noexpert is NOT used, the expertised FSBodoni will be
% used. Otherwise the version without expert chars and SC will be
% used.

\newif\if@fbdosf
\DeclareOption{osf}{\@fbdosftrue}
% If Option osf is used, oldstyle figures are available as normal text
% figures. Regular figures are available in the SC-font.

\ProcessOptions\relax

% Choice of the family
\if@fbdnot
% If Option nodefault is used, nothing has to be done here
\else
% noexpert and osf are only available in the regular width
  \if@fbdnox % no expert fonts?
    \renewcommand{\rmdefault}{fbd}
  \else % expert fonts
    \if@fbdosf % oldstyle figures?
      \renewcommand{\rmdefault}{fbdj}
    \else % regular figures?
      \renewcommand{\rmdefault}{fbdx}
    \fi
  \fi
% If Option default is used (it makes only sense if nodefault is not
% used), \familydefault will be set to \rmdefault
  \if@fbddef
    \renewcommand{\familydefault}{\rmdefault}
  \fi
\fi

% noexpert and osf are only available in the regular width
\if@fbdnox % no expert fonts?
  \newcommand{\Fsbodoni}{\fontfamily{fbdr}\selectfont}
\else % expert fonts
  \if@fbdosf % oldstyle figures?
    \newcommand{\Fsbodoni}{\fontfamily{fbdrj}\selectfont}
  \else % regular figures?
    \newcommand{\Fsbodoni}{\fontfamily{fbdrx}\selectfont}
  \fi
\fi

\providecommand{\textfbd}[1]{{\Fsbodoni #1}}

\providecommand{\ebseries}{\fontseries{eb}\selectfont}
\providecommand{\texteb}[1]{{\ebseries #1}}

\newcommand{\Fbd}{\fontfamily{fbd}\selectfont}
\newcommand{\Fbdx}{\fontfamily{fbdx}\selectfont}
\newcommand{\Fbdj}{\fontfamily{fbdj}\selectfont}

\PackageWarning{fsbodoni}{This package provides SoftMaker/FontSite
  Bodoni as a roman font. That font does not well mix with the
  Computer Modern Math, Sans Serif, or Typewriter fonts. Choose
  the math, sans serif and typewriter fonts according to the fonts you have
  installed and your taste.}

\endinput

