% $Id: dantelogo.sty 190 2015-10-09 13:04:36Z herbert $
%%
%% This is file `dantelogo.sty'.
%%
%% IMPORTANT NOTICE:
%%
%% dantelogo.sty Copyright (C) 2015- Herbert Voss <hvoss@tug.org>
%%                                   Klaus Hoeppner 
%%
%% This package may be distributed under the terms of the LaTeX Project
%% Public License, as described in lppl.txt in the base LaTeX distribution.
%% Either version 1.0 or, at your option, any later version.
%%
%
\def\fileversion{0.03}
\def\filedate{2015/08/12}
\NeedsTeXFormat{LaTeX2e}
\ProvidesPackage{dantelogo}[\filedate\space v\fileversion] 
\message{`dantelogo' v\fileversion, \filedate\space macro for DANTE's logo (hv)}
%
\RequirePackage{iftex}

\@tempswatrue%  suppose latex or pdflatex
%
\ifXeTeX\@tempswafalse\else\ifLuaTeX\@tempswafalse\fi\fi
%
\if@tempswa% we have (pdf)latex
  \message{We run (pdf)latex ... }%
  \PassOptionsToPackage{T1}{fontenc}%
  \RequirePackage{fontenc}%
  \def\dante@font{\fontencoding{\encodingdefault}\fontfamily{DANTE}\selectfont}%
\else
  \message{We run (lua)xelatex ... }%
  \RequirePackage{fontspec}
  \newfontfamily\dante@font{DANTE}%
    [Extension=.otf,
     BoldFont=*-Bold,
     ItalicFont=*-Italic,
     BoldItalicFont=*-Bold-Italic]
\fi
%
\providecommand\dantelogo{}%   to be sure that it is defined
\renewcommand\dantelogo[1][]{{%
  \dante@font
  \ifx\relax#1\relax\else\fontsize{#1}{#1}\selectfont\fi DANTE}}
%
%
\endinput
