\relax

Part of the tolkienfonts package
Copyright 2010 Ariel Barton

This work may be distributed and/or modified under the
conditions of the LaTeX Project Public License, either version 1.3
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.3 or later is part of all distributions of LaTeX
version 2005/12/01 or later.

This work has the LPPL maintenance status `maintained'.

The Current Maintainer of this work is Ariel Barton.

This work consists of all the files listed in Appendix F of the file
`tolkienfontsdoc.pdf'.

Date: 2010/08/29

Version: 2


\metrics

\ifisglyph{tinco}\then 
  % Tengwar fonts are different, since they come with
  % several different underdots
  
  \fontspecificglyphs 
  % This defines barundernarrow and (glyph)+silme---not glyph+silmen.
  % In Tengwar Annatar, it also adjusts the heights of various glyphs.
  
  \setglyph{Asilmen}\glyph{silme}{1000}\endsetglyph\setleftrightkerning{Asilmen}{silme}{1000}
  \setglyph{Aessen} \glyph{esse}{1000}\endsetglyph \setleftrightkerning{Aessen}{esse}{1000}
  \setglyph{Ayanta} \glyph{yanta}{1000}\endsetglyph\setleftrightkerning{Ayanta}{yanta}{1000}
  \setglyph{Aure}   \glyph{ure}{1000}\endsetglyph  \setleftrightkerning{Aure}{ure}{1000}
  
  
  \setcommand\addunderdots#1#2{%    Adding a dot for no A
    \ifisglyph{#1}\then
        \setglyph{#1nodot}\glyph{#1}{1000}\endsetglyph
        \setleftrightkerning{#1nodot}{#1}{1000}
        \resetglyph{#1}
            \glyph{#1}{1000}\push\glyph{Itehta#2}{1000}\pop
        \endresetglyph
    \fi
  }
  
  \ifisglyph{alda}\then
    \setglyph{aldanodot}\glyph{alda}{1000}\endsetglyph
    \resetglyph{alda}
        \glyph{alda}{1000}\push\moveup{150}\glyph{ItehtaL}{1000}\pop
    \endresetglyph
  \fi
  
  \ifisglyph{altesse}\then
    \setglyph{essenodot}\glyph{esse}{1000}\endsetglyph
    \resetglyph{esse}
        \glyph{altesse}{1000}\push\glyph{Itehta\essesubtehta}{1000}\pop
    \endresetglyph
  \else
    \setglyph{essenodot}\glyph{esse}{1000}\endsetglyph
    \resetglyph{esse}
        \glyph{esse}{1000}\push\glyph{Itehta\essesubtehta}{1000}\pop
    \endresetglyph
  \fi
  
  \addunderdots{tinco}{\tincosubtehta}
  \addunderdots{parma}{\tincosubtehta}
  \addunderdots{Tinco}{\tincosubtehta}
  \addunderdots{Parma}{\tincosubtehta}
  \addunderdots{calma}{\calmasubtehta}
  \addunderdots{quesse}{\calmasubtehta}
  \addunderdots{Calma}{\calmasubtehta}
  \addunderdots{Quesse}{\calmasubtehta}
  
  \addunderdots{ando}{V}
  \addunderdots{umbar}{V}
  \addunderdots{anga}{V}
  \addunderdots{ungwe}{V}
  \addunderdots{anto}{V}
  \addunderdots{ampa}{V}
  \addunderdots{anca}{V}
  \addunderdots{unque}{V}
  \addunderdots{numen}{V}
  \addunderdots{malta}{V}
  \addunderdots{noldo}{V}
  \addunderdots{nwalme}{V}
  \addunderdots{Ando}{V}
  \addunderdots{Umbar}{V}
  \addunderdots{Anga}{V}
  \addunderdots{Ungwe}{V}
  
  \addunderdots{thule}{VI}
  \addunderdots{formen}{VI}
  \addunderdots{aha}{VI}
  \addunderdots{hwesta}{VI}
  \addunderdots{ore}{VI}
  \addunderdots{vala}{VI}
  %\addunderdots{anna}{VI}
  \addunderdots{wilya}{VI}
  
  \addunderdots{romen}{\romensubtehta}
  \addunderdots{arda}{\romensubtehta}
  \addunderdots{lambe}{L}
  \addunderdots{silme}{\silmesubtehta}
  %\addunderdots{silmen}{\silmensubtehta}
  %\addunderdots{esse}{\essesubtehta}
  %\addunderdots{essen}{\essensubtehta}
  \addunderdots{hyarmen}{VI}
  \addunderdots{hwestas}{VI}
  %\addunderdots{yanta}{VI}
  %\addunderdots{ure}{\uresubtehta}
  \addunderdots{altromen}{VII}
  \addunderdots{osse}{\ossesubtehta}
  \addunderdots{halla}{VIII}
  
  %\addunderdots{altsilme}{VI}
  %\addunderdots{altsilmen}{VI}
  %\addunderdots{altesse}{\essesubtehta}
  %\addunderdots{altessen}{VI}
  %\addunderdots{altosse}{VI}
  %\addunderdots{althwtengwa}{VI}
  %\addunderdots{mhellyn}{VI}
  %\addunderdots{altmhellyn}{VI}
  %\addunderdots{wtengwa}{VI}
  %\addunderdots{wtengwatall}{VI}
  
  
  
\Else
  
  \setcommand\addunderdots#1#2#3{%  Adding a dot for no A
    \ifisglyph{#1}\then
        \setglyph{#1nodot}\glyph{#1}{1000}\endsetglyph
        \setleftrightkerning{#1nodot}{#1}{1000}
        \resetglyph{#1}
            \glyph{#1}{1000}\push\movert{#2}\moveup{#3}\glyph{novoweltehta}{1000}\pop
        \endresetglyph
    \fi
  }
  
  \makeunderdots
  % "Make underdots" is defined inside the font-specific files
  
\Fi

\endmetrics