summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2019-05-12 20:21:20 +0000
committerKarl Berry <karl@freefriends.org>2019-05-12 20:21:20 +0000
commit692a797099b0acfd35d4bbd6a322acdc87c2c3a8 (patch)
treeb2e9f4e744958b566a09475cc41277e1146fa7ba /Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty
parent92f53dfb065edac3bd936e1ba9daace19f255044 (diff)
linguisticspro (12may19)
git-svn-id: svn://tug.org/texlive/trunk@51106 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty')
-rw-r--r--Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty79
1 files changed, 79 insertions, 0 deletions
diff --git a/Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty b/Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty
new file mode 100644
index 00000000000..21cefaaa764
--- /dev/null
+++ b/Master/texmf-dist/tex/latex/linguisticspro/linguisticspro.sty
@@ -0,0 +1,79 @@
+\NeedsTeXFormat{LaTeX2e}
+\ProvidesPackage{linguisticspro}
+ [2019/05/11 (Bob Tennent and autoinst) Style file for LinguisticsPro fonts.]
+
+\RequirePackage{ifxetex,ifluatex,xkeyval,textcomp}
+
+\newif\iflinguisticspro@otf
+\ifxetex
+ \linguisticspro@otftrue
+\else\ifluatex
+ \linguisticspro@otftrue
+\else % [pdf]LaTeX
+ \linguisticspro@otffalse
+\fi\fi
+
+\newcommand*{\LinguisticsPro@scale}{1}
+\newcommand*{\LinguisticsProInitials@scale}{1}
+\RequirePackage{xkeyval}
+\DeclareOptionX{scaled}{\renewcommand*{\LinguisticsPro@scale}{#1}\renewcommand*{\LinguisticsProInitials@scale}{#1}}
+\DeclareOptionX{scale}{\renewcommand*{\LinguisticsPro@scale}{#1}\renewcommand*{\LinguisticsProInitials@scale}{#1}}
+\DeclareOptionX{type1}{\linguisticspro@otffalse}
+
+\ProcessOptionsX\relax
+
+\iflinguisticspro@otf
+ \def\linguisticspro@figurestyle{OldStyle}
+
+\else % type1
+ \def\linguisticspro@figurestyle{OsF}
+ \def\mdseries@rm{regular}
+ \def\seriesdefault{\mdseries@rm}
+ \def\bfseries@rm{bold}
+
+\fi
+
+\iflinguisticspro@otf
+ \RequirePackage{fontspec}
+\else
+ \RequirePackage{fontenc,fontaxes,mweights}
+\fi
+
+\iflinguisticspro@otf
+ \ifxetex\XeTeXtracingfonts=1\fi
+ \defaultfontfeatures{
+ Ligatures = TeX ,
+ Scale = \LinguisticsPro@scale ,
+ Extension = .otf }
+ \setmainfont
+ [ Numbers = {\linguisticspro@figurestyle},
+ UprightFont = *-Regular ,
+ ItalicFont = *-Italic,
+ BoldFont = *-Bold ,
+ BoldItalicFont = *-BoldItalic ,
+ ]
+ {LinguisticsPro}
+ \newfontfamily\linguisticspro
+ [ Numbers = {\linguisticspro@figurestyle},
+ UprightFont = *-Regular ,
+ ItalicFont = *-Italic,
+ BoldFont = *-Bold ,
+ BoldItalicFont = *-BoldItalic ,
+ ]
+ {LinguisticsPro}
+
+\else % type1
+
+ \def\linguisticspro@family{LinguisticsPro-T\linguisticspro@figurestyle}
+ \renewcommand*\rmdefault{\linguisticspro@family}
+ \newcommand*\linguisticspro{\fontfamily{\linguisticspro@family}\selectfont}
+
+\fi
+
+\def\linguisticsprolgr{\fontencoding{LGR}\fontfamily{LinguisticsPro-TOsF}\selectfont}
+
+\iflinguisticspro@otf
+ \defaultfontfeatures{}
+\fi
+
+\endinput