% chantilly.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
% Chantilly and ChantillyCondensed 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{chantilly}
   [2002/02/13 v0.9beta FontSite Chantilly font package]

\newif\if@fgsdef
\DeclareOption{default}{\@fgsdeftrue}
% If Option default is used, the choosen Chantilly will be used as \familydefault

\newif\if@fgsnot
\DeclareOption{nodefault}{\@fgsnottrue}
% If Option nodefault is NOT used, the choosen Chantilly will be used
% as \sfdefault, otherwise only the implemented commands will be
% available

\ProcessOptions\relax

% Choice of the family
\if@fgsnot
% If Option nodefault is used, nothing has to be done here
\else
% noexpert and osf are only available in the regular width
  \renewcommand{\sfdefault}{fgs}
% If Option default is used (it makes only sense if nodefault is not
% used), \familydefault will be set to \sfdefault
  \if@fgsdef
    \renewcommand{\familydefault}{\sfdefault}
  \fi
\fi

\newcommand{\Chantilly}{\fontfamily{fgs}\selectfont}

\providecommand{\textfgs}[1]{{\Chantilly #1}}

\providecommand{\ebseries}{\fontseries{eb}\selectfont}
\providecommand{\texteb}[1]{{\ebseries #1}}
\providecommand{\liseries}{\fontseries{l}\selectfont}
\providecommand{\textli}[1]{{\liseries #1}}
\providecommand{\ubseries}{\fontseries{ub}\selectfont}
\providecommand{\textub}[1]{{\ubseries #1}}

\newcommand{\Fgs}{\fontfamily{fgs}\selectfont}

\PackageWarning{chantilly}{This package provides SoftMaker/FontSite
  Chantilly as a sansserif font. That font does not well mix with the
  Computer Modern Math, Roman, or Typewriter fonts. Choose
  the math, roman, and typewriter fonts according to the fonts you have
  installed and your taste.}

\endinput

