summaryrefslogtreecommitdiff
path: root/info/fontsampler/tengwar.sty
diff options
context:
space:
mode:
authorNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
committerNorbert Preining <norbert@preining.info>2019-09-02 13:46:59 +0900
commite0c6872cf40896c7be36b11dcc744620f10adf1d (patch)
tree60335e10d2f4354b0674ec22d7b53f0f8abee672 /info/fontsampler/tengwar.sty
Initial commit
Diffstat (limited to 'info/fontsampler/tengwar.sty')
-rw-r--r--info/fontsampler/tengwar.sty30
1 files changed, 30 insertions, 0 deletions
diff --git a/info/fontsampler/tengwar.sty b/info/fontsampler/tengwar.sty
new file mode 100644
index 0000000000..a5ca7d5e05
--- /dev/null
+++ b/info/fontsampler/tengwar.sty
@@ -0,0 +1,30 @@
+% This implements the Tengwar font
+\def\fileversion{1.0}
+\def\filedate{1999/04/19}
+\def\docdate{1999/04/19}
+\NeedsTeXFormat{LaTeX2e}[1998/06/01]
+\ProvidesPackage{tengwar}[1999/04/19 Tengwar font]
+\RequirePackage[OT1]{fontenc}
+%\renewcommand{\rmdefault}{ztg}
+\def\rmfontfamilyname{Tengwar}
+%
+%\input{ot1ztg.fd}
+\newcommand{\tengwar}{%
+% \renewcommand{\baselinestretch}{1.2}%
+ \fontencoding{OT1}\fontfamily{ztg}%
+ \fontseries{m}\fontshape{n}\selectfont%
+ \def\a##1{\accent"5E ##1}%
+ \def\sh{C}%
+ \def\z{\ae}%
+ \let\@i\u%
+ \def\i##1{\setbox0=\hbox{##1}\dimen0=\ht0%
+ \advance\dimen0 by\dp0%
+ \advance\dimen0 by1ex%
+ \raise.47ex\hbox{\begin{tabular}{@{}c@{}}%
+ \@i{}\\[-\dimen0 ]##1\end{tabular}}}%
+ \let\u\v%
+ \let\uu\=%
+ \def\m##1{\accent"1E ##1}%
+}%
+\newcommand{\teng}[1]{{\tengwar#1}}
+% eof