summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/fonts-tlwg/lthgaruda.fd
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/tex/latex/fonts-tlwg/lthgaruda.fd')
-rw-r--r--Master/texmf-dist/tex/latex/fonts-tlwg/lthgaruda.fd27
1 files changed, 18 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/fonts-tlwg/lthgaruda.fd b/Master/texmf-dist/tex/latex/fonts-tlwg/lthgaruda.fd
index 7e89f21f31e..1287fb31fe1 100644
--- a/Master/texmf-dist/tex/latex/fonts-tlwg/lthgaruda.fd
+++ b/Master/texmf-dist/tex/latex/fonts-tlwg/lthgaruda.fd
@@ -4,7 +4,7 @@
%
% Copyright (C) 1999 National Electronics and Computer Technology Center
% (NECTEC), Thailand. All rights reserved.
-%
+%
% It 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.
@@ -12,12 +12,14 @@
% 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 Theppitak Karoonboonyanan.
-%
+%
% Created by Surapant Meknavin: surapan@nectec.or.th
+% 2017/09/11 Abhabongse Janthong <abhabongse@gmail.com>
+% - add font scaling
% 2003/06/02 Chanop Silpa-Anan <chanop@debian.org>
% - update using basic slant font
% 2002/12/30 Poonlap Veerathanabutr <poonlap@linux.thai.net>
@@ -28,13 +30,20 @@
\ProvidesFile{lthgaruda.fd}[2002/12/30 v1.0 Thai font definitions]
+% Check if the scale factor has been defined
+\ifcsname fontstlwg@scale\endcsname
+ \edef\fontstlwg@@scale{s * [\csname fontstlwg@scale\endcsname] }%
+\else
+ \def\fontstlwg@@scale{s * }%
+\fi
+
% Primary declarations
\DeclareFontFamily{LTH}{garuda}{}
-\DeclareFontShape{LTH}{garuda}{m}{n}{<->s * garuda}{}
-\DeclareFontShape{LTH}{garuda}{m}{sl}{<->s * garuda_o}{}
+\DeclareFontShape{LTH}{garuda}{m}{n}{<-> \fontstlwg@@scale garuda}{}
+\DeclareFontShape{LTH}{garuda}{m}{sl}{<-> \fontstlwg@@scale garuda_o}{}
%%%%%%% bold series
-\DeclareFontShape{LTH}{garuda}{b}{n}{<->s * garuda_b}{}
-\DeclareFontShape{LTH}{garuda}{b}{sl}{<->s * garuda_bo}{}
+\DeclareFontShape{LTH}{garuda}{b}{n}{<-> \fontstlwg@@scale garuda_b}{}
+\DeclareFontShape{LTH}{garuda}{b}{sl}{<-> \fontstlwg@@scale garuda_bo}{}
% Substitutions
\DeclareFontShape{LTH}{garuda}{m}{it}{<->ssub * garuda/m/sl}{}
@@ -45,6 +54,6 @@
\DeclareFontShape{LTH}{garuda}{bx}{it}{<->ssub * garuda/b/sl}{}
\endinput
-%
+%
% EOF
%