summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/source/fonts/fonts-tlwg/latex
diff options
context:
space:
mode:
Diffstat (limited to 'Master/texmf-dist/source/fonts/fonts-tlwg/latex')
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/Makefile.in4
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/README.latex17
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/Makefile.am7
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/Makefile.in12
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/testsans.tex37
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/testscaled-120.tex734
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/testscaled-65.tex734
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/fonts-tlwg.sty59
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthgaruda.fd27
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthkinnari.fd31
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthlaksaman.fd27
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthloma.fd27
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthnorasi.fd31
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthpurisa.fd27
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthsawasdee.fd27
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthttype.fd27
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthttypist.fd27
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthumpush.fd31
-rw-r--r--Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthwaree.fd27
19 files changed, 1775 insertions, 138 deletions
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/Makefile.in b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/Makefile.in
index 6721a9bcf3a..c717d56b73a 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/Makefile.in
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/Makefile.in
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
+# Makefile.in generated by automake 1.15.1 from Makefile.am.
# @configure_input@
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+# Copyright (C) 1994-2017 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/README.latex b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/README.latex
index d22a99f9802..67283e0ac79 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/README.latex
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/README.latex
@@ -52,6 +52,18 @@ in the document when switching to Thai in Babel:
These options define the default Thai font when switching to Thai language
in Babel. They do not define fonts for the three families.
+
+There is also another option for this package which would scale all Thai fonts
+up or down by a given factor value. This is useful when there are discrepancies
+between the size of the font for Latin script and the size of Thai fonts in
+this package.
+
+* Specifying the font scaling factor for every font in this package:
+
+ - scale=<value> : Set the scaling factor to the specified value.
+ The default value is 1.
+
+
Example:
* To use "laksaman" font all over the document (e.g. in Thai official letters):
@@ -74,6 +86,10 @@ Example:
\usepackage[laksaman,rmkinnari]{fonts-tlwg}
+* To use "laksaman" font with the size 20% larger than normal:
+
+ \usepackage[laksaman,scaled=1.2]{fonts-tlwg}
+
\USEFONT COMMAND
----------------
@@ -93,4 +109,3 @@ text portions, for example:
slant shape:
\usefont{LTH}{umpush}{l}{sl}
-
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/Makefile.am b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/Makefile.am
index f17d390d7b5..446111269a9 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/Makefile.am
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/Makefile.am
@@ -1,4 +1,9 @@
-EXAMPLES = teststd.tex
+EXAMPLES = \
+ teststd.tex \
+ testsans.tex \
+ testscaled-120.tex \
+ testscaled-65.tex \
+ $(NULL)
EXTRA_DIST = $(EXAMPLES)
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/Makefile.in b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/Makefile.in
index d3aec88137e..02709feefa7 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/Makefile.in
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/Makefile.in
@@ -1,7 +1,7 @@
-# Makefile.in generated by automake 1.15 from Makefile.am.
+# Makefile.in generated by automake 1.15.1 from Makefile.am.
# @configure_input@
-# Copyright (C) 1994-2014 Free Software Foundation, Inc.
+# Copyright (C) 1994-2017 Free Software Foundation, Inc.
# This Makefile.in is free software; the Free Software Foundation
# gives unlimited permission to copy and/or distribute it,
@@ -240,7 +240,13 @@ top_srcdir = @top_srcdir@
ttfdir = @ttfdir@
type1dir = @type1dir@
woffdir = @woffdir@
-EXAMPLES = teststd.tex
+EXAMPLES = \
+ teststd.tex \
+ testsans.tex \
+ testscaled-120.tex \
+ testscaled-65.tex \
+ $(NULL)
+
EXTRA_DIST = $(EXAMPLES)
@INCLUDE_LATEX_TRUE@examplesdir = $(docdir)/examples
@INCLUDE_LATEX_TRUE@examples_DATA = $(EXAMPLES)
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/testsans.tex b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/testsans.tex
new file mode 100644
index 00000000000..600894e6e0f
--- /dev/null
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/testsans.tex
@@ -0,0 +1,37 @@
+%%
+%% Test sans option with \normalfont
+%% 2017/05/10 Abhabongse Janthong <abhabongse@gmail.edu>
+%% - write a new test reproducing errors
+%%
+\documentclass[a4paper]{article}
+\usepackage[thai]{babel}
+\usepackage[utf8x]{inputenc}
+\usepackage[sans,sflaksaman,rmnorasi]{fonts-tlwg}
+
+\begin{document}
+
+ \begin{tabbing}
+ {\usefont{LTH}{norasi}{b}{n}XXXXXXXXXXXXXXXXXXXXXXXXX}\=
+ {\usefont{LTH}{norasi}{b}{n}XXXXXXXXXXXXXXXXXXXXXXXXX}\kill
+ \hspace{1em}
+ ๏ เป็นมนุษย์สุดประเสริฐเลิศคุณค่า \> กว่าบรรดาฝูงสัตว์เดรัจฉาน \\
+ จงฝ่าฟันพัฒนาวิชาการ \> อย่าล้างผลาญฤๅเข่นฆ่าบีฑาใคร\\
+ ไม่ถือโทษโกรธแช่งซัดฮึดฮัดด่า \> หัดอภัยเหมือนกีฬาอัชฌาสัย \\
+ ปฏิบัติประพฤติกฎกำหนดใจ \> พูดจาให้จ๊ะๆ จ๋าๆ น่าฟังเอย ฯ\\
+ \end{tabbing}
+
+ % Should switch to defaultfont, which should have been \thaisffamily
+ ประโยคภาษาไทย \normalfont ประโยคภาษาไทย
+
+ \bigskip
+ \begin{tabbing}
+ {\usefont{LTH}{norasi}{b}{n}XXXXXXXXXXXXXXXXXXXXXXXXX}\=
+ {\usefont{LTH}{norasi}{b}{n}XXXXXXXXXXXXXXXXXXXXXXXXX}\kill
+ \hspace{1em}
+ ๏ เป็นมนุษย์สุดประเสริฐเลิศคุณค่า \> กว่าบรรดาฝูงสัตว์เดรัจฉาน \\
+ จงฝ่าฟันพัฒนาวิชาการ \> อย่าล้างผลาญฤๅเข่นฆ่าบีฑาใคร\\
+ ไม่ถือโทษโกรธแช่งซัดฮึดฮัดด่า \> หัดอภัยเหมือนกีฬาอัชฌาสัย \\
+ ปฏิบัติประพฤติกฎกำหนดใจ \> พูดจาให้จ๊ะๆ จ๋าๆ น่าฟังเอย ฯ\\
+ \end{tabbing}
+
+\end{document}
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/testscaled-120.tex b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/testscaled-120.tex
new file mode 100644
index 00000000000..d233dff92ca
--- /dev/null
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/testscaled-120.tex
@@ -0,0 +1,734 @@
+%%
+%% Test for font scaling at 120%
+%% 2017/09/11 Abhabongse Janthong <abhabongse@gmail.edu>
+%% - write a new test introducing the usage of package option
+%%
+\documentclass[a4paper]{article}
+\usepackage[english,thai]{babel}
+\usepackage[utf8x]{inputenc}
+\usepackage[scale=1.2]{fonts-tlwg}
+
+\newcommand{\testthaipoem}[3]{%
+ \usefont{LTH}{#1}{#2}{#3}
+ \noindent
+ \begin{tabbing}
+ {\usefont{LTH}{norasi}{b}{n}
+ XXXXXXXXXXXXXXXXXXXXXXXXX} \=
+ {\usefont{LTH}{norasi}{b}{n}
+ XXXXXXXXXXXXXXXXXXXXXXXXX}\kill
+ \hspace{1em}๏ เป็นมนุษย์สุดประเสริฐเลิศคุณค่า \> กว่าบรรดาฝูงสัตว์เดรัจฉาน \\
+ จงฝ่าฟันพัฒนาวิชาการ \> อย่าล้างผลาญฤๅเข่นฆ่าบีฑาใคร\\
+ ไม่ถือโทษโกรธแช่งซัดฮึดฮัดด่า \> หัดอภัยเหมือนกีฬาอัชฌาสัย \\
+ ปฏิบัติประพฤติกฎกำหนดใจ \> พูดจาให้จ๊ะๆ จ๋าๆ น่าฟังเอย ฯ\\
+ \end{tabbing}}
+
+\newcommand{\testenglish}[3]{%
+ \usefont{LTH}{#1}{#2}{#3}
+ \noindent
+ A quick brown fox jumps over the lazy dog.}
+
+\newcommand{\testEnglish}[3]{%
+ \usefont{LTH}{#1}{#2}{#3}
+ \noindent
+ \MakeUppercase{A quick brown fox jumps over the lazy dog.}}
+
+\newcommand{\testligkern}[3]{%
+ \usefont{LTH}{#1}{#2}{#3}
+ \noindent
+ ที่ ท่า ทิ้ง ท้า กิ๊ง ก๊ง ตี๋ ต๋า บ่น ป่น, บ้น ป้น, บ๊น ป๊น, บ๋น ป๋น บิน ปิน บีน ปีน บิ่น ปิ่น บัน ปั่น บั่น
+ ก็ ป็ ปู่ ญ ญุ ญู ญฺ ฐ ฐุ ฐู ฐฺ กุ ฎุ ฎู ฎฺ ฏุ ฏู ฏฺ บำ บ่ำ ปำ ป่ำ -\textyamakkan{}
+ \textfongmun{} \textangkhankhu{} \textkhomut{}
+ ปะเฺติ็ลฺ โฺญฺ็จฺ ปั็วฮฺ ทฺ็อง เปฺิ็ว มูํย
+ แต็่ง เจฺํอ เปรฺิ่ห์ โจ๊่ เปฺี่ย โฺทร ม็่อง เติ็ง อาื ยาึ ปิํปี็ป็่ป๊่ปฺ่
+ จือรฺุ การฺู
+ - -- --- `` '' \dag{} \ddag{} \S{} \P{} \${} \ae{} \AE{} \oe{} \OE{} \aa{}
+ \AA{} \ss{} \copyright{} \textregistered{} \texttrademark{} \textbackslash{}
+ \textasciicircum{} \textasciitilde{} \textbar{} \textbraceleft{}
+ \textbraceright{} ?` !` ff fi fl ffi ffl tt ti AV\\}
+
+\newcommand{\testpali}[3]{%
+ \usefont{LTH}{#1}{#2}{#3}
+ \noindent
+ \textpali{หตฺเถสุ ภิกฺขเว สติ, อาทานนิกฺเขปนํ ปญฺญายติ}\\
+ \textpali{เอวเมว โข ภิกฺขเว}\\
+ \textpali{จกฺขุสมิํปิ สติ}\\
+ \textpali{จกฺขุสมฺผสฺสปจฺจยา อุปฺปชฺชติ อชฺฌตฺตํ สุขทุกฺขํ}\\
+ \textpali{ทิฏฺฐา มยา ภิกฺขเว ฉ ผสฺสายตนิกา นาม นิรยา}\\}
+
+\begin{document}
+\pagestyle{empty}
+\vfil
+\begin{figure*}
+\Huge
+\hspace*{.2\textwidth}\usefont{LTH}{kinnari}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{garuda}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{norasi}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{laksaman}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{ttype}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{ttypist}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{purisa}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{loma}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{waree}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{umpush}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{sawasdee}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\end{figure*}
+\vfil
+\clearpage
+
+\pagestyle{plain}
+\section{\usefont{LTH}{kinnari}{b}{n}Kinnari -- กินรี\protect\footnote{จากโครงการฟอนต์แห่งชาติ (National Font Project)}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย\protect\footnote{โดยสมาคมคอมพิวเตอร์แห่งประเทศไทยในพระบรมราชูปถัมภ์}}
+
+\testthaipoem{kinnari}{m}{n}
+
+\testthaipoem{kinnari}{b}{n}
+
+\testthaipoem{kinnari}{m}{it}
+
+\testthaipoem{kinnari}{b}{it}
+
+\testthaipoem{kinnari}{m}{sl}
+
+\testthaipoem{kinnari}{b}{sl}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{kinnari}{m}{n}
+
+\testenglish{kinnari}{b}{n}
+
+\testenglish{kinnari}{m}{it}
+
+\testenglish{kinnari}{b}{it}
+
+\testenglish{kinnari}{m}{sl}
+
+\testenglish{kinnari}{b}{sl}
+
+\testEnglish{kinnari}{m}{n}
+
+\testEnglish{kinnari}{b}{n}
+
+\testEnglish{kinnari}{m}{it}
+
+\testEnglish{kinnari}{b}{it}
+
+\testEnglish{kinnari}{m}{sl}
+
+\testEnglish{kinnari}{b}{sl}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+\noindent
+\testligkern{kinnari}{m}{n}
+
+\testligkern{kinnari}{b}{n}
+
+\testligkern{kinnari}{m}{it}
+
+\testligkern{kinnari}{b}{it}
+
+\testligkern{kinnari}{m}{sl}
+
+\testligkern{kinnari}{b}{sl}
+
+\subsection{ภาษาบาลี-สันสกฤต}
+\testpali{kinnari}{m}{n}
+
+\testpali{kinnari}{b}{n}
+
+\testpali{kinnari}{m}{it}
+
+\testpali{kinnari}{b}{it}
+
+\testpali{kinnari}{m}{sl}
+
+\testpali{kinnari}{b}{sl}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{garuda}{b}{n}Garuda -- ครุฑ\protect\footnote{จากโครงการฟอนต์แห่งชาติ (National Font Project)}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{garuda}{m}{n}
+
+\testthaipoem{garuda}{b}{n}
+
+\testthaipoem{garuda}{m}{it}
+
+\testthaipoem{garuda}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{garuda}{m}{n}
+
+\testenglish{garuda}{b}{n}
+
+\testenglish{garuda}{m}{it}
+
+\testenglish{garuda}{b}{it}
+
+\testEnglish{garuda}{m}{n}
+
+\testEnglish{garuda}{b}{n}
+
+\testEnglish{garuda}{m}{it}
+
+\testEnglish{garuda}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{garuda}{m}{n}
+
+\testligkern{garuda}{b}{n}
+
+\testligkern{garuda}{m}{it}
+
+\testligkern{garuda}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{garuda}{m}{n}
+
+\testpali{garuda}{b}{n}
+
+\testpali{garuda}{m}{it}
+
+\testpali{garuda}{b}{it}
+
+\vfil\pagebreak
+
+\section{\usefont{LTH}{norasi}{b}{n}Norasi -- นรสีห์\protect\footnote{จากโครงการฟอนต์แห่งชาติ (National Font Project)}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{norasi}{m}{n}
+
+\testthaipoem{norasi}{b}{n}
+
+\testthaipoem{norasi}{m}{it}
+
+\testthaipoem{norasi}{b}{it}
+
+\testthaipoem{norasi}{m}{sl}
+
+\testthaipoem{norasi}{b}{sl}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+\testenglish{norasi}{m}{n}
+
+\testenglish{norasi}{b}{n}
+
+\testenglish{norasi}{m}{it}
+
+\testenglish{norasi}{b}{it}
+
+\testenglish{norasi}{m}{sl}
+
+\testenglish{norasi}{b}{sl}
+
+\testEnglish{norasi}{m}{n}
+
+\testEnglish{norasi}{b}{n}
+
+\testEnglish{norasi}{m}{it}
+
+\testEnglish{norasi}{b}{it}
+
+\testEnglish{norasi}{m}{sl}
+
+\testEnglish{norasi}{b}{sl}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{norasi}{m}{n}
+
+\testligkern{norasi}{b}{n}
+
+\testligkern{norasi}{m}{it}
+
+\testligkern{norasi}{b}{it}
+
+\testligkern{norasi}{m}{sl}
+
+\testligkern{norasi}{b}{sl}
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{norasi}{m}{n}
+
+\testpali{norasi}{b}{n}
+
+\testpali{norasi}{m}{it}
+
+\testpali{norasi}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{laksaman}{b}{n}Laksaman -- ลักษมัณ\protect\footnote{ดัดแปลงจาก TH Sarabun New ของคุณศุภกิจ เฉลิมลาภ}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{laksaman}{m}{n}
+
+\testthaipoem{laksaman}{b}{n}
+
+\testthaipoem{laksaman}{m}{it}
+
+\testthaipoem{laksaman}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{laksaman}{m}{n}
+
+\testenglish{laksaman}{b}{n}
+
+\testenglish{laksaman}{m}{it}
+
+\testenglish{laksaman}{b}{it}
+
+\testEnglish{laksaman}{m}{n}
+
+\testEnglish{laksaman}{b}{n}
+
+\testEnglish{laksaman}{m}{it}
+
+\testEnglish{laksaman}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{laksaman}{m}{n}
+
+\testligkern{laksaman}{b}{n}
+
+\testligkern{laksaman}{m}{it}
+
+\testligkern{laksaman}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{laksaman}{m}{n}
+
+\testpali{laksaman}{b}{n}
+
+\testpali{laksaman}{m}{it}
+
+\testpali{laksaman}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{ttype}{b}{n}Tlwg Typewriter\protect\footnote{โดย Thai Linux Working Group (TLWG)}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{ttype}{m}{n}
+
+\testthaipoem{ttype}{b}{n}
+
+\testthaipoem{ttype}{m}{it}
+
+\testthaipoem{ttype}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{ttype}{m}{n}
+
+\testenglish{ttype}{b}{n}
+
+\testenglish{ttype}{m}{it}
+
+\testenglish{ttype}{b}{it}
+
+\testEnglish{ttype}{m}{n}
+
+\testEnglish{ttype}{b}{n}
+
+\testEnglish{ttype}{m}{it}
+
+\testEnglish{ttype}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{ttype}{m}{n}
+
+\testligkern{ttype}{b}{n}
+
+\testligkern{ttype}{m}{it}
+
+\testligkern{ttype}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{ttype}{m}{n}
+
+\testpali{ttype}{b}{n}
+
+\testpali{ttype}{m}{it}
+
+\testpali{ttype}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{ttypist}{b}{n}Tlwg Typist\protect\footnote{โดย Thai Linux Working Group (TLWG)}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{ttypist}{m}{n}
+
+\testthaipoem{ttypist}{b}{n}
+
+\testthaipoem{ttypist}{m}{it}
+
+\testthaipoem{ttypist}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{ttypist}{m}{n}
+
+\testenglish{ttypist}{b}{n}
+
+\testenglish{ttypist}{m}{it}
+
+\testenglish{ttypist}{b}{it}
+
+\testEnglish{ttypist}{m}{n}
+
+\testEnglish{ttypist}{b}{n}
+
+\testEnglish{ttypist}{m}{it}
+
+\testEnglish{ttypist}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{ttypist}{m}{n}
+
+\testligkern{ttypist}{b}{n}
+
+\testligkern{ttypist}{m}{it}
+
+\testligkern{ttypist}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{ttypist}{m}{n}
+
+\testpali{ttypist}{b}{n}
+
+\testpali{ttypist}{m}{it}
+
+\testpali{ttypist}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{purisa}{m}{n}Purisa -- ภูริสา\protect\footnote{โดย Thai Linux Working Group (TLWG)}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{purisa}{m}{n}
+
+\testthaipoem{purisa}{b}{n}
+
+\testthaipoem{purisa}{m}{it}
+
+\testthaipoem{purisa}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{purisa}{m}{n}
+
+\testenglish{purisa}{b}{n}
+
+\testenglish{purisa}{m}{it}
+
+\testenglish{purisa}{b}{it}
+
+\testEnglish{purisa}{m}{n}
+
+\testEnglish{purisa}{b}{n}
+
+\testEnglish{purisa}{m}{it}
+
+\testEnglish{purisa}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{purisa}{m}{n}
+
+\testligkern{purisa}{b}{n}
+
+\testligkern{purisa}{m}{it}
+
+\testligkern{purisa}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{purisa}{m}{n}
+
+\testpali{purisa}{b}{n}
+
+\testpali{purisa}{m}{it}
+
+\testpali{purisa}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{loma}{b}{n}Loma -- โลมา\protect\footnote{จากศูนย์เทคโนโลยีอิเล็กทรอนิกส์และคอมพิวเตอร์แห่งชาติ (NECTEC)}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{loma}{m}{n}
+
+\testthaipoem{loma}{b}{n}
+
+\testthaipoem{loma}{m}{it}
+
+\testthaipoem{loma}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{loma}{m}{n}
+
+\testenglish{loma}{b}{n}
+
+\testenglish{loma}{m}{it}
+
+\testenglish{loma}{b}{it}
+
+\testEnglish{loma}{m}{n}
+
+\testEnglish{loma}{b}{n}
+
+\testEnglish{loma}{m}{it}
+
+\testEnglish{loma}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{loma}{m}{n}
+
+\testligkern{loma}{b}{n}
+
+\testligkern{loma}{m}{it}
+
+\testligkern{loma}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{loma}{m}{n}
+
+\testpali{loma}{b}{n}
+
+\testpali{loma}{m}{it}
+
+\testpali{loma}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{waree}{b}{n}Waree -- วารี\protect\footnote{โดย คุณวิทยา ไตรสารวัฒนะ}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{waree}{m}{n}
+
+\testthaipoem{waree}{b}{n}
+
+\testthaipoem{waree}{m}{it}
+
+\testthaipoem{waree}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{waree}{m}{n}
+
+\testenglish{waree}{b}{n}
+
+\testenglish{waree}{m}{it}
+
+\testenglish{waree}{b}{it}
+
+\testEnglish{waree}{m}{n}
+
+\testEnglish{waree}{b}{n}
+
+\testEnglish{waree}{m}{it}
+
+\testEnglish{waree}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{waree}{m}{n}
+
+\testligkern{waree}{b}{n}
+
+\testligkern{waree}{m}{it}
+
+\testligkern{waree}{b}{it}
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{waree}{m}{n}
+
+\testpali{waree}{b}{n}
+
+\testpali{waree}{m}{it}
+
+\testpali{waree}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{umpush}{b}{n}Umpush -- อัมพุช\protect\footnote{โดย คุณวิทยา ไตรสารวัฒนะ}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{umpush}{l}{n}
+
+\testthaipoem{umpush}{m}{n}
+
+\testthaipoem{umpush}{b}{n}
+
+\testthaipoem{umpush}{l}{it}
+
+\testthaipoem{umpush}{m}{it}
+
+\testthaipoem{umpush}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{umpush}{l}{n}
+
+\testenglish{umpush}{m}{n}
+
+\testenglish{umpush}{b}{n}
+
+\testenglish{umpush}{l}{it}
+
+\testenglish{umpush}{m}{it}
+
+\testenglish{umpush}{b}{it}
+
+\testEnglish{umpush}{l}{n}
+
+\testEnglish{umpush}{m}{n}
+
+\testEnglish{umpush}{b}{n}
+
+\testEnglish{umpush}{l}{it}
+
+\testEnglish{umpush}{m}{it}
+
+\testEnglish{umpush}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{umpush}{l}{n}
+
+\testligkern{umpush}{m}{n}
+
+\testligkern{umpush}{b}{n}
+
+\testligkern{umpush}{l}{it}
+
+\testligkern{umpush}{m}{it}
+
+\testligkern{umpush}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{umpush}{l}{n}
+
+\testpali{umpush}{m}{n}
+
+\testpali{umpush}{b}{n}
+
+\testpali{umpush}{l}{it}
+
+\testpali{umpush}{m}{it}
+
+\testpali{umpush}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{sawasdee}{b}{n}Sawasdee -- สวัสดี\protect\footnote{โดย คุณพล อุดมวิทยานุกูล}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{sawasdee}{m}{n}
+
+\testthaipoem{sawasdee}{b}{n}
+
+\testthaipoem{sawasdee}{m}{it}
+
+\testthaipoem{sawasdee}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{sawasdee}{m}{n}
+
+\testenglish{sawasdee}{b}{n}
+
+\testenglish{sawasdee}{m}{it}
+
+\testenglish{sawasdee}{b}{it}
+
+\testEnglish{sawasdee}{m}{n}
+
+\testEnglish{sawasdee}{b}{n}
+
+\testEnglish{sawasdee}{m}{it}
+
+\testEnglish{sawasdee}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{sawasdee}{m}{n}
+
+\testligkern{sawasdee}{b}{n}
+
+\testligkern{sawasdee}{m}{it}
+
+\testligkern{sawasdee}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{sawasdee}{m}{n}
+
+\testpali{sawasdee}{b}{n}
+
+\testpali{sawasdee}{m}{it}
+
+\testpali{sawasdee}{b}{it}
+
+\vfil\pagebreak
+
+
+\end{document}
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/testscaled-65.tex b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/testscaled-65.tex
new file mode 100644
index 00000000000..9471e4a6a45
--- /dev/null
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/examples/testscaled-65.tex
@@ -0,0 +1,734 @@
+%%
+%% Test for font scaling at 65%
+%% 2017/09/11 Abhabongse Janthong <abhabongse@gmail.edu>
+%% - write a new test introducing the usage of package option
+%%
+\documentclass[a4paper]{article}
+\usepackage[english,thai]{babel}
+\usepackage[utf8x]{inputenc}
+\usepackage[scale=0.65]{fonts-tlwg}
+
+\newcommand{\testthaipoem}[3]{%
+ \usefont{LTH}{#1}{#2}{#3}
+ \noindent
+ \begin{tabbing}
+ {\usefont{LTH}{norasi}{b}{n}
+ XXXXXXXXXXXXXXXXXXXXXXXXX} \=
+ {\usefont{LTH}{norasi}{b}{n}
+ XXXXXXXXXXXXXXXXXXXXXXXXX}\kill
+ \hspace{1em}๏ เป็นมนุษย์สุดประเสริฐเลิศคุณค่า \> กว่าบรรดาฝูงสัตว์เดรัจฉาน \\
+ จงฝ่าฟันพัฒนาวิชาการ \> อย่าล้างผลาญฤๅเข่นฆ่าบีฑาใคร\\
+ ไม่ถือโทษโกรธแช่งซัดฮึดฮัดด่า \> หัดอภัยเหมือนกีฬาอัชฌาสัย \\
+ ปฏิบัติประพฤติกฎกำหนดใจ \> พูดจาให้จ๊ะๆ จ๋าๆ น่าฟังเอย ฯ\\
+ \end{tabbing}}
+
+\newcommand{\testenglish}[3]{%
+ \usefont{LTH}{#1}{#2}{#3}
+ \noindent
+ A quick brown fox jumps over the lazy dog.}
+
+\newcommand{\testEnglish}[3]{%
+ \usefont{LTH}{#1}{#2}{#3}
+ \noindent
+ \MakeUppercase{A quick brown fox jumps over the lazy dog.}}
+
+\newcommand{\testligkern}[3]{%
+ \usefont{LTH}{#1}{#2}{#3}
+ \noindent
+ ที่ ท่า ทิ้ง ท้า กิ๊ง ก๊ง ตี๋ ต๋า บ่น ป่น, บ้น ป้น, บ๊น ป๊น, บ๋น ป๋น บิน ปิน บีน ปีน บิ่น ปิ่น บัน ปั่น บั่น
+ ก็ ป็ ปู่ ญ ญุ ญู ญฺ ฐ ฐุ ฐู ฐฺ กุ ฎุ ฎู ฎฺ ฏุ ฏู ฏฺ บำ บ่ำ ปำ ป่ำ -\textyamakkan{}
+ \textfongmun{} \textangkhankhu{} \textkhomut{}
+ ปะเฺติ็ลฺ โฺญฺ็จฺ ปั็วฮฺ ทฺ็อง เปฺิ็ว มูํย
+ แต็่ง เจฺํอ เปรฺิ่ห์ โจ๊่ เปฺี่ย โฺทร ม็่อง เติ็ง อาื ยาึ ปิํปี็ป็่ป๊่ปฺ่
+ จือรฺุ การฺู
+ - -- --- `` '' \dag{} \ddag{} \S{} \P{} \${} \ae{} \AE{} \oe{} \OE{} \aa{}
+ \AA{} \ss{} \copyright{} \textregistered{} \texttrademark{} \textbackslash{}
+ \textasciicircum{} \textasciitilde{} \textbar{} \textbraceleft{}
+ \textbraceright{} ?` !` ff fi fl ffi ffl tt ti AV\\}
+
+\newcommand{\testpali}[3]{%
+ \usefont{LTH}{#1}{#2}{#3}
+ \noindent
+ \textpali{หตฺเถสุ ภิกฺขเว สติ, อาทานนิกฺเขปนํ ปญฺญายติ}\\
+ \textpali{เอวเมว โข ภิกฺขเว}\\
+ \textpali{จกฺขุสมิํปิ สติ}\\
+ \textpali{จกฺขุสมฺผสฺสปจฺจยา อุปฺปชฺชติ อชฺฌตฺตํ สุขทุกฺขํ}\\
+ \textpali{ทิฏฺฐา มยา ภิกฺขเว ฉ ผสฺสายตนิกา นาม นิรยา}\\}
+
+\begin{document}
+\pagestyle{empty}
+\vfil
+\begin{figure*}
+\Huge
+\hspace*{.2\textwidth}\usefont{LTH}{kinnari}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{garuda}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{norasi}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{laksaman}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{ttype}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{ttypist}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{purisa}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{loma}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{waree}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{umpush}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\hspace*{.2\textwidth}\usefont{LTH}{sawasdee}{m}{n}แบบอักษรไทยใน \LaTeX\\
+\end{figure*}
+\vfil
+\clearpage
+
+\pagestyle{plain}
+\section{\usefont{LTH}{kinnari}{b}{n}Kinnari -- กินรี\protect\footnote{จากโครงการฟอนต์แห่งชาติ (National Font Project)}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย\protect\footnote{โดยสมาคมคอมพิวเตอร์แห่งประเทศไทยในพระบรมราชูปถัมภ์}}
+
+\testthaipoem{kinnari}{m}{n}
+
+\testthaipoem{kinnari}{b}{n}
+
+\testthaipoem{kinnari}{m}{it}
+
+\testthaipoem{kinnari}{b}{it}
+
+\testthaipoem{kinnari}{m}{sl}
+
+\testthaipoem{kinnari}{b}{sl}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{kinnari}{m}{n}
+
+\testenglish{kinnari}{b}{n}
+
+\testenglish{kinnari}{m}{it}
+
+\testenglish{kinnari}{b}{it}
+
+\testenglish{kinnari}{m}{sl}
+
+\testenglish{kinnari}{b}{sl}
+
+\testEnglish{kinnari}{m}{n}
+
+\testEnglish{kinnari}{b}{n}
+
+\testEnglish{kinnari}{m}{it}
+
+\testEnglish{kinnari}{b}{it}
+
+\testEnglish{kinnari}{m}{sl}
+
+\testEnglish{kinnari}{b}{sl}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+\noindent
+\testligkern{kinnari}{m}{n}
+
+\testligkern{kinnari}{b}{n}
+
+\testligkern{kinnari}{m}{it}
+
+\testligkern{kinnari}{b}{it}
+
+\testligkern{kinnari}{m}{sl}
+
+\testligkern{kinnari}{b}{sl}
+
+\subsection{ภาษาบาลี-สันสกฤต}
+\testpali{kinnari}{m}{n}
+
+\testpali{kinnari}{b}{n}
+
+\testpali{kinnari}{m}{it}
+
+\testpali{kinnari}{b}{it}
+
+\testpali{kinnari}{m}{sl}
+
+\testpali{kinnari}{b}{sl}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{garuda}{b}{n}Garuda -- ครุฑ\protect\footnote{จากโครงการฟอนต์แห่งชาติ (National Font Project)}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{garuda}{m}{n}
+
+\testthaipoem{garuda}{b}{n}
+
+\testthaipoem{garuda}{m}{it}
+
+\testthaipoem{garuda}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{garuda}{m}{n}
+
+\testenglish{garuda}{b}{n}
+
+\testenglish{garuda}{m}{it}
+
+\testenglish{garuda}{b}{it}
+
+\testEnglish{garuda}{m}{n}
+
+\testEnglish{garuda}{b}{n}
+
+\testEnglish{garuda}{m}{it}
+
+\testEnglish{garuda}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{garuda}{m}{n}
+
+\testligkern{garuda}{b}{n}
+
+\testligkern{garuda}{m}{it}
+
+\testligkern{garuda}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{garuda}{m}{n}
+
+\testpali{garuda}{b}{n}
+
+\testpali{garuda}{m}{it}
+
+\testpali{garuda}{b}{it}
+
+\vfil\pagebreak
+
+\section{\usefont{LTH}{norasi}{b}{n}Norasi -- นรสีห์\protect\footnote{จากโครงการฟอนต์แห่งชาติ (National Font Project)}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{norasi}{m}{n}
+
+\testthaipoem{norasi}{b}{n}
+
+\testthaipoem{norasi}{m}{it}
+
+\testthaipoem{norasi}{b}{it}
+
+\testthaipoem{norasi}{m}{sl}
+
+\testthaipoem{norasi}{b}{sl}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+\testenglish{norasi}{m}{n}
+
+\testenglish{norasi}{b}{n}
+
+\testenglish{norasi}{m}{it}
+
+\testenglish{norasi}{b}{it}
+
+\testenglish{norasi}{m}{sl}
+
+\testenglish{norasi}{b}{sl}
+
+\testEnglish{norasi}{m}{n}
+
+\testEnglish{norasi}{b}{n}
+
+\testEnglish{norasi}{m}{it}
+
+\testEnglish{norasi}{b}{it}
+
+\testEnglish{norasi}{m}{sl}
+
+\testEnglish{norasi}{b}{sl}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{norasi}{m}{n}
+
+\testligkern{norasi}{b}{n}
+
+\testligkern{norasi}{m}{it}
+
+\testligkern{norasi}{b}{it}
+
+\testligkern{norasi}{m}{sl}
+
+\testligkern{norasi}{b}{sl}
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{norasi}{m}{n}
+
+\testpali{norasi}{b}{n}
+
+\testpali{norasi}{m}{it}
+
+\testpali{norasi}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{laksaman}{b}{n}Laksaman -- ลักษมัณ\protect\footnote{ดัดแปลงจาก TH Sarabun New ของคุณศุภกิจ เฉลิมลาภ}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{laksaman}{m}{n}
+
+\testthaipoem{laksaman}{b}{n}
+
+\testthaipoem{laksaman}{m}{it}
+
+\testthaipoem{laksaman}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{laksaman}{m}{n}
+
+\testenglish{laksaman}{b}{n}
+
+\testenglish{laksaman}{m}{it}
+
+\testenglish{laksaman}{b}{it}
+
+\testEnglish{laksaman}{m}{n}
+
+\testEnglish{laksaman}{b}{n}
+
+\testEnglish{laksaman}{m}{it}
+
+\testEnglish{laksaman}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{laksaman}{m}{n}
+
+\testligkern{laksaman}{b}{n}
+
+\testligkern{laksaman}{m}{it}
+
+\testligkern{laksaman}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{laksaman}{m}{n}
+
+\testpali{laksaman}{b}{n}
+
+\testpali{laksaman}{m}{it}
+
+\testpali{laksaman}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{ttype}{b}{n}Tlwg Typewriter\protect\footnote{โดย Thai Linux Working Group (TLWG)}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{ttype}{m}{n}
+
+\testthaipoem{ttype}{b}{n}
+
+\testthaipoem{ttype}{m}{it}
+
+\testthaipoem{ttype}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{ttype}{m}{n}
+
+\testenglish{ttype}{b}{n}
+
+\testenglish{ttype}{m}{it}
+
+\testenglish{ttype}{b}{it}
+
+\testEnglish{ttype}{m}{n}
+
+\testEnglish{ttype}{b}{n}
+
+\testEnglish{ttype}{m}{it}
+
+\testEnglish{ttype}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{ttype}{m}{n}
+
+\testligkern{ttype}{b}{n}
+
+\testligkern{ttype}{m}{it}
+
+\testligkern{ttype}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{ttype}{m}{n}
+
+\testpali{ttype}{b}{n}
+
+\testpali{ttype}{m}{it}
+
+\testpali{ttype}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{ttypist}{b}{n}Tlwg Typist\protect\footnote{โดย Thai Linux Working Group (TLWG)}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{ttypist}{m}{n}
+
+\testthaipoem{ttypist}{b}{n}
+
+\testthaipoem{ttypist}{m}{it}
+
+\testthaipoem{ttypist}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{ttypist}{m}{n}
+
+\testenglish{ttypist}{b}{n}
+
+\testenglish{ttypist}{m}{it}
+
+\testenglish{ttypist}{b}{it}
+
+\testEnglish{ttypist}{m}{n}
+
+\testEnglish{ttypist}{b}{n}
+
+\testEnglish{ttypist}{m}{it}
+
+\testEnglish{ttypist}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{ttypist}{m}{n}
+
+\testligkern{ttypist}{b}{n}
+
+\testligkern{ttypist}{m}{it}
+
+\testligkern{ttypist}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{ttypist}{m}{n}
+
+\testpali{ttypist}{b}{n}
+
+\testpali{ttypist}{m}{it}
+
+\testpali{ttypist}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{purisa}{m}{n}Purisa -- ภูริสา\protect\footnote{โดย Thai Linux Working Group (TLWG)}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{purisa}{m}{n}
+
+\testthaipoem{purisa}{b}{n}
+
+\testthaipoem{purisa}{m}{it}
+
+\testthaipoem{purisa}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{purisa}{m}{n}
+
+\testenglish{purisa}{b}{n}
+
+\testenglish{purisa}{m}{it}
+
+\testenglish{purisa}{b}{it}
+
+\testEnglish{purisa}{m}{n}
+
+\testEnglish{purisa}{b}{n}
+
+\testEnglish{purisa}{m}{it}
+
+\testEnglish{purisa}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{purisa}{m}{n}
+
+\testligkern{purisa}{b}{n}
+
+\testligkern{purisa}{m}{it}
+
+\testligkern{purisa}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{purisa}{m}{n}
+
+\testpali{purisa}{b}{n}
+
+\testpali{purisa}{m}{it}
+
+\testpali{purisa}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{loma}{b}{n}Loma -- โลมา\protect\footnote{จากศูนย์เทคโนโลยีอิเล็กทรอนิกส์และคอมพิวเตอร์แห่งชาติ (NECTEC)}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{loma}{m}{n}
+
+\testthaipoem{loma}{b}{n}
+
+\testthaipoem{loma}{m}{it}
+
+\testthaipoem{loma}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{loma}{m}{n}
+
+\testenglish{loma}{b}{n}
+
+\testenglish{loma}{m}{it}
+
+\testenglish{loma}{b}{it}
+
+\testEnglish{loma}{m}{n}
+
+\testEnglish{loma}{b}{n}
+
+\testEnglish{loma}{m}{it}
+
+\testEnglish{loma}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{loma}{m}{n}
+
+\testligkern{loma}{b}{n}
+
+\testligkern{loma}{m}{it}
+
+\testligkern{loma}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{loma}{m}{n}
+
+\testpali{loma}{b}{n}
+
+\testpali{loma}{m}{it}
+
+\testpali{loma}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{waree}{b}{n}Waree -- วารี\protect\footnote{โดย คุณวิทยา ไตรสารวัฒนะ}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{waree}{m}{n}
+
+\testthaipoem{waree}{b}{n}
+
+\testthaipoem{waree}{m}{it}
+
+\testthaipoem{waree}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{waree}{m}{n}
+
+\testenglish{waree}{b}{n}
+
+\testenglish{waree}{m}{it}
+
+\testenglish{waree}{b}{it}
+
+\testEnglish{waree}{m}{n}
+
+\testEnglish{waree}{b}{n}
+
+\testEnglish{waree}{m}{it}
+
+\testEnglish{waree}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{waree}{m}{n}
+
+\testligkern{waree}{b}{n}
+
+\testligkern{waree}{m}{it}
+
+\testligkern{waree}{b}{it}
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{waree}{m}{n}
+
+\testpali{waree}{b}{n}
+
+\testpali{waree}{m}{it}
+
+\testpali{waree}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{umpush}{b}{n}Umpush -- อัมพุช\protect\footnote{โดย คุณวิทยา ไตรสารวัฒนะ}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{umpush}{l}{n}
+
+\testthaipoem{umpush}{m}{n}
+
+\testthaipoem{umpush}{b}{n}
+
+\testthaipoem{umpush}{l}{it}
+
+\testthaipoem{umpush}{m}{it}
+
+\testthaipoem{umpush}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{umpush}{l}{n}
+
+\testenglish{umpush}{m}{n}
+
+\testenglish{umpush}{b}{n}
+
+\testenglish{umpush}{l}{it}
+
+\testenglish{umpush}{m}{it}
+
+\testenglish{umpush}{b}{it}
+
+\testEnglish{umpush}{l}{n}
+
+\testEnglish{umpush}{m}{n}
+
+\testEnglish{umpush}{b}{n}
+
+\testEnglish{umpush}{l}{it}
+
+\testEnglish{umpush}{m}{it}
+
+\testEnglish{umpush}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{umpush}{l}{n}
+
+\testligkern{umpush}{m}{n}
+
+\testligkern{umpush}{b}{n}
+
+\testligkern{umpush}{l}{it}
+
+\testligkern{umpush}{m}{it}
+
+\testligkern{umpush}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{umpush}{l}{n}
+
+\testpali{umpush}{m}{n}
+
+\testpali{umpush}{b}{n}
+
+\testpali{umpush}{l}{it}
+
+\testpali{umpush}{m}{it}
+
+\testpali{umpush}{b}{it}
+
+\vfil\pagebreak
+
+
+\section{\usefont{LTH}{sawasdee}{b}{n}Sawasdee -- สวัสดี\protect\footnote{โดย คุณพล อุดมวิทยานุกูล}}
+
+\subsection{ตัวอย่างประโยคภาษาไทย}
+
+\testthaipoem{sawasdee}{m}{n}
+
+\testthaipoem{sawasdee}{b}{n}
+
+\testthaipoem{sawasdee}{m}{it}
+
+\testthaipoem{sawasdee}{b}{it}
+
+\subsection{ตัวอย่างภาษาอังกฤษ}
+
+\testenglish{sawasdee}{m}{n}
+
+\testenglish{sawasdee}{b}{n}
+
+\testenglish{sawasdee}{m}{it}
+
+\testenglish{sawasdee}{b}{it}
+
+\testEnglish{sawasdee}{m}{n}
+
+\testEnglish{sawasdee}{b}{n}
+
+\testEnglish{sawasdee}{m}{it}
+
+\testEnglish{sawasdee}{b}{it}
+
+
+\subsection{การจัดระดับตัวอักษรและตัวอักษรพิเศษ}
+
+\testligkern{sawasdee}{m}{n}
+
+\testligkern{sawasdee}{b}{n}
+
+\testligkern{sawasdee}{m}{it}
+
+\testligkern{sawasdee}{b}{it}
+
+
+\subsection{ภาษาบาลี-สันสกฤต}
+
+\testpali{sawasdee}{m}{n}
+
+\testpali{sawasdee}{b}{n}
+
+\testpali{sawasdee}{m}{it}
+
+\testpali{sawasdee}{b}{it}
+
+\vfil\pagebreak
+
+
+\end{document}
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/fonts-tlwg.sty b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/fonts-tlwg.sty
index fc14f324a95..242009ff21b 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/fonts-tlwg.sty
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/fonts-tlwg.sty
@@ -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,13 +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.
-%
+%
\ProvidesPackage{fonts-tlwg}[2014/07/05 v1.1 Thai TLWG Fonts]
+\RequirePackage{xkeyval}
\newcommand\thairmdefault{norasi}
\newcommand\thaisfdefault{garuda}
@@ -30,40 +31,45 @@
\newcommand{\thaifamilydefault}{\thairmdefault}
\newcommand{\englishfamilydefault}{\englishrmdefault}
+% Introduce scaled option
+\newcommand*{\fontstlwg@scale}{1}
+\DeclareOptionX{scale}{\renewcommand*{\fontstlwg@scale}{#1}}
+
% Use sans-serif font by default
-\DeclareOption{sans}{
+\DeclareOptionX{sans}{
\renewcommand{\thaifamilydefault}{\thaisfdefault}
\renewcommand{\englishfamilydefault}{\englishsfdefault}
}
% Set default roman, sans-serif, and teletype fonts
-\DeclareOption{rmkinnari}{\renewcommand{\thairmdefault}{kinnari}}
-\DeclareOption{rmnorasi}{\renewcommand{\thairmdefault}{norasi}}
-\DeclareOption{sfgaruda}{\renewcommand{\thaisfdefault}{garuda}}
-\DeclareOption{sflaksaman}{\renewcommand{\thaisfdefault}{laksaman}}
-\DeclareOption{sfumpush}{\renewcommand{\thaisfdefault}{umpush}}
-\DeclareOption{sfloma}{\renewcommand{\thaisfdefault}{loma}}
-\DeclareOption{sfwaree}{\renewcommand{\thaisfdefault}{waree}}
-\DeclareOption{ttttype}{\renewcommand{\thaittdefault}{ttype}}
-\DeclareOption{ttttypist}{\renewcommand{\thaittdefault}{ttypist}}
+\DeclareOptionX{rmkinnari}{\renewcommand{\thairmdefault}{kinnari}}
+\DeclareOptionX{rmnorasi}{\renewcommand{\thairmdefault}{norasi}}
+\DeclareOptionX{sfgaruda}{\renewcommand{\thaisfdefault}{garuda}}
+\DeclareOptionX{sflaksaman}{\renewcommand{\thaisfdefault}{laksaman}}
+\DeclareOptionX{sfumpush}{\renewcommand{\thaisfdefault}{umpush}}
+\DeclareOptionX{sfloma}{\renewcommand{\thaisfdefault}{loma}}
+\DeclareOptionX{sfwaree}{\renewcommand{\thaisfdefault}{waree}}
+\DeclareOptionX{ttttype}{\renewcommand{\thaittdefault}{ttype}}
+\DeclareOptionX{ttttypist}{\renewcommand{\thaittdefault}{ttypist}}
% Set default font
-\DeclareOption{kinnari}{\renewcommand{\thaifamilydefault}{kinnari}}
-\DeclareOption{garuda}{\renewcommand{\thaifamilydefault}{garuda}}
-\DeclareOption{norasi}{\renewcommand{\thaifamilydefault}{norasi}}
-\DeclareOption{laksaman}{\renewcommand{\thaifamilydefault}{laksaman}}
-\DeclareOption{loma}{\renewcommand{\thaifamilydefault}{loma}}
-\DeclareOption{purisa}{\renewcommand{\thaifamilydefault}{purisa}}
-\DeclareOption{sawasdee}{\renewcommand{\thaifamilydefault}{sawasdee}}
-\DeclareOption{ttype}{\renewcommand{\thaifamilydefault}{ttype}}
-\DeclareOption{ttypist}{\renewcommand{\thaifamilydefault}{ttypist}}
-\DeclareOption{umpush}{\renewcommand{\thaifamilydefault}{umpush}}
-\DeclareOption{waree}{\renewcommand{\thaifamilydefault}{waree}}
+\DeclareOptionX{kinnari}{\renewcommand{\thaifamilydefault}{kinnari}}
+\DeclareOptionX{garuda}{\renewcommand{\thaifamilydefault}{garuda}}
+\DeclareOptionX{norasi}{\renewcommand{\thaifamilydefault}{norasi}}
+\DeclareOptionX{laksaman}{\renewcommand{\thaifamilydefault}{laksaman}}
+\DeclareOptionX{loma}{\renewcommand{\thaifamilydefault}{loma}}
+\DeclareOptionX{purisa}{\renewcommand{\thaifamilydefault}{purisa}}
+\DeclareOptionX{sawasdee}{\renewcommand{\thaifamilydefault}{sawasdee}}
+\DeclareOptionX{ttype}{\renewcommand{\thaifamilydefault}{ttype}}
+\DeclareOptionX{ttypist}{\renewcommand{\thaifamilydefault}{ttypist}}
+\DeclareOptionX{umpush}{\renewcommand{\thaifamilydefault}{umpush}}
+\DeclareOptionX{waree}{\renewcommand{\thaifamilydefault}{waree}}
-\ProcessOptions\relax
+\ProcessOptionsX\relax
\DeclareRobustCommand{\thaitext}{%
\fontencoding{LTH}\fontfamily{\thaifamilydefault}\selectfont
+ \def\familydefault{\thaifamilydefault}%
\def\rmdefault{\thairmdefault}%
\def\sfdefault{\thaisfdefault}%
\def\ttdefault{\thaittdefault}%
@@ -71,6 +77,7 @@
\DeclareRobustCommand{\latintext}{%
\fontencoding{\latinencoding}\fontfamily{\englishfamilydefault}\selectfont
+ \def\familydefault{\englishfamilydefault}%
\def\rmdefault{\englishrmdefault}%
\def\sfdefault{\englishsfdefault}%
\def\ttdefault{\englishttdefault}%
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthgaruda.fd b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthgaruda.fd
index 7e89f21f31e..1287fb31fe1 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthgaruda.fd
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/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
%
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthkinnari.fd b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthkinnari.fd
index efce4a9d2ba..2da58b53932 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthkinnari.fd
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthkinnari.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,11 +12,13 @@
% 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.
-%
+%
+% 2017/09/11 Abhabongse Janthong <abhabongse@gmail.com>
+% - add font scaling
% 2005/01/24 Theppitak Karoonboonyanan <thep@linux.thai.net>
% - italic shape added for medium and bold face series
% 2004/02/05 Poonlap Veerathanabutr <poonlap@linux.thai.net>
@@ -24,15 +26,22 @@
\ProvidesFile{lthkinnari.fd}[2004/02/05 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}{kinnari}{}
-\DeclareFontShape{LTH}{kinnari}{m}{n}{<->s * kinnari}{}
-\DeclareFontShape{LTH}{kinnari}{m}{it}{<->s * kinnari_i}{}
-\DeclareFontShape{LTH}{kinnari}{m}{sl}{<->s * kinnari_o}{}
+\DeclareFontShape{LTH}{kinnari}{m}{n}{<-> \fontstlwg@@scale kinnari}{}
+\DeclareFontShape{LTH}{kinnari}{m}{it}{<-> \fontstlwg@@scale kinnari_i}{}
+\DeclareFontShape{LTH}{kinnari}{m}{sl}{<-> \fontstlwg@@scale kinnari_o}{}
%%%%%%% bold series
-\DeclareFontShape{LTH}{kinnari}{b}{n}{<->s * kinnari_b}{}
-\DeclareFontShape{LTH}{kinnari}{b}{it}{<->s * kinnari_bi}{}
-\DeclareFontShape{LTH}{kinnari}{b}{sl}{<->s * kinnari_bo}{}
+\DeclareFontShape{LTH}{kinnari}{b}{n}{<-> \fontstlwg@@scale kinnari_b}{}
+\DeclareFontShape{LTH}{kinnari}{b}{it}{<-> \fontstlwg@@scale kinnari_bi}{}
+\DeclareFontShape{LTH}{kinnari}{b}{sl}{<-> \fontstlwg@@scale kinnari_bo}{}
% Substitutions
\DeclareFontShape{LTH}{kinnari}{bx}{n}{<->ssub * kinnari/b/n}{}
@@ -40,6 +49,6 @@
\DeclareFontShape{LTH}{kinnari}{bx}{it}{<->ssub * kinnari/b/it}{}
\endinput
-%
+%
% EOF
%
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthlaksaman.fd b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthlaksaman.fd
index c85f10e80d1..39379890a74 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthlaksaman.fd
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthlaksaman.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,23 +12,32 @@
% 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.
-%
+%
+% 2017/09/11 Abhabongse Janthong <abhabongse@gmail.com>
+% - add font scaling
% 2014/06/26 Theppitak Karoonboonyanan <thep@linux.thai.net>
% - first version
\ProvidesFile{lthlaksaman.fd}[2014/06/24 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}{laksaman}{}
-\DeclareFontShape{LTH}{laksaman}{m}{n}{<->s * laksaman}{}
-\DeclareFontShape{LTH}{laksaman}{m}{it}{<->s * laksaman_i}{}
+\DeclareFontShape{LTH}{laksaman}{m}{n}{<-> \fontstlwg@@scale laksaman}{}
+\DeclareFontShape{LTH}{laksaman}{m}{it}{<-> \fontstlwg@@scale laksaman_i}{}
%%%%%%% bold series
-\DeclareFontShape{LTH}{laksaman}{b}{n}{<->s * laksaman_b}{}
-\DeclareFontShape{LTH}{laksaman}{b}{it}{<->s * laksaman_bi}{}
+\DeclareFontShape{LTH}{laksaman}{b}{n}{<-> \fontstlwg@@scale laksaman_b}{}
+\DeclareFontShape{LTH}{laksaman}{b}{it}{<-> \fontstlwg@@scale laksaman_bi}{}
% Substitutions
\DeclareFontShape{LTH}{laksaman}{m}{sl}{<->ssub * laksaman/m/it}{}
@@ -39,6 +48,6 @@
\DeclareFontShape{LTH}{laksaman}{bx}{sl}{<->ssub * laksaman/b/it}{}
\endinput
-%
+%
% EOF
%
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthloma.fd b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthloma.fd
index f10defc16ab..c03ad77940b 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthloma.fd
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthloma.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,23 +12,32 @@
% 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.
-%
+%
+% 2017/09/11 Abhabongse Janthong <abhabongse@gmail.com>
+% - add font scaling
% 2006/03/26 Theppitak Karoonboonyanan <thep@linux.thai.net>
% - first version based on lthloma.fd
\ProvidesFile{lthloma.fd}[2006/03/26 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}{loma}{}
-\DeclareFontShape{LTH}{loma}{m}{n}{<->s * loma}{}
-\DeclareFontShape{LTH}{loma}{m}{sl}{<->s * loma_o}{}
+\DeclareFontShape{LTH}{loma}{m}{n}{<-> \fontstlwg@@scale loma}{}
+\DeclareFontShape{LTH}{loma}{m}{sl}{<-> \fontstlwg@@scale loma_o}{}
%%%%%%% bold series
-\DeclareFontShape{LTH}{loma}{b}{n}{<->s * loma_b}{}
-\DeclareFontShape{LTH}{loma}{b}{sl}{<->s * loma_bo}{}
+\DeclareFontShape{LTH}{loma}{b}{n}{<-> \fontstlwg@@scale loma_b}{}
+\DeclareFontShape{LTH}{loma}{b}{sl}{<-> \fontstlwg@@scale loma_bo}{}
% Substitutions
\DeclareFontShape{LTH}{loma}{m}{it}{<->ssub * loma/m/sl}{}
@@ -39,6 +48,6 @@
\DeclareFontShape{LTH}{loma}{bx}{it}{<->ssub * loma/b/sl}{}
\endinput
-%
+%
% EOF
%
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthnorasi.fd b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthnorasi.fd
index 9d9becea47c..d50664d27d9 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthnorasi.fd
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthnorasi.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
% 2000/05/09 Theppitak Karoonboonyanan <thep@links.nectec.or.th>
@@ -26,15 +28,22 @@
\ProvidesFile{lthnorasi.fd}[2000/05/09 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}{norasi}{}
-\DeclareFontShape{LTH}{norasi}{m}{n}{<->s * norasi}{}
-\DeclareFontShape{LTH}{norasi}{m}{it}{<->s * norasi_i}{}
-\DeclareFontShape{LTH}{norasi}{m}{sl}{<->s * norasi_o}{}
+\DeclareFontShape{LTH}{norasi}{m}{n}{<-> \fontstlwg@@scale norasi}{}
+\DeclareFontShape{LTH}{norasi}{m}{it}{<-> \fontstlwg@@scale norasi_i}{}
+\DeclareFontShape{LTH}{norasi}{m}{sl}{<-> \fontstlwg@@scale norasi_o}{}
%%%%%%% bold series
-\DeclareFontShape{LTH}{norasi}{b}{n}{<->s * norasi_b}{}
-\DeclareFontShape{LTH}{norasi}{b}{it}{<->s * norasi_bi}{}
-\DeclareFontShape{LTH}{norasi}{b}{sl}{<->s * norasi_bo}{}
+\DeclareFontShape{LTH}{norasi}{b}{n}{<-> \fontstlwg@@scale norasi_b}{}
+\DeclareFontShape{LTH}{norasi}{b}{it}{<-> \fontstlwg@@scale norasi_bi}{}
+\DeclareFontShape{LTH}{norasi}{b}{sl}{<-> \fontstlwg@@scale norasi_bo}{}
% Substitutions
\DeclareFontShape{LTH}{norasi}{bx}{n}{<->ssub * norasi/b/n}{}
@@ -42,6 +51,6 @@
\DeclareFontShape{LTH}{norasi}{bx}{it}{<->ssub * norasi/b/it}{}
\endinput
-%
+%
% EOF
%
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthpurisa.fd b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthpurisa.fd
index b70d4eca840..0c5e91efb5b 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthpurisa.fd
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthpurisa.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,23 +12,32 @@
% 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.
-%
+%
+% 2017/09/11 Abhabongse Janthong <abhabongse@gmail.com>
+% - add font scaling
% 2004/02/05 Poonlap Veerathanabutr <poonlap@linux.thai.net>
% - first release (based on lthgaruda.fd)
\ProvidesFile{lthpurisa.fd}[2004/02/05 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}{purisa}{}
-\DeclareFontShape{LTH}{purisa}{m}{n}{<->s * purisa}{}
-\DeclareFontShape{LTH}{purisa}{m}{sl}{<->s * purisa_o}{}
+\DeclareFontShape{LTH}{purisa}{m}{n}{<-> \fontstlwg@@scale purisa}{}
+\DeclareFontShape{LTH}{purisa}{m}{sl}{<-> \fontstlwg@@scale purisa_o}{}
%%%%%%% bold series
-\DeclareFontShape{LTH}{purisa}{b}{n}{<->s * purisa_b}{}
-\DeclareFontShape{LTH}{purisa}{b}{sl}{<->s * purisa_bo}{}
+\DeclareFontShape{LTH}{purisa}{b}{n}{<-> \fontstlwg@@scale purisa_b}{}
+\DeclareFontShape{LTH}{purisa}{b}{sl}{<-> \fontstlwg@@scale purisa_bo}{}
% Substitutions
\DeclareFontShape{LTH}{purisa}{m}{it}{<->ssub * purisa/m/sl}{}
@@ -39,6 +48,6 @@
\DeclareFontShape{LTH}{purisa}{bx}{it}{<->ssub * purisa/b/sl}{}
\endinput
-%
+%
% EOF
%
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthsawasdee.fd b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthsawasdee.fd
index da24a2d3406..ff64d311a39 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthsawasdee.fd
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthsawasdee.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,23 +12,32 @@
% 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.
-%
+%
+% 2017/09/11 Abhabongse Janthong <abhabongse@gmail.com>
+% - add font scaling
% 2008/01/21 Theppitak Karoonboonyanan <thep@linux.thai.net>
% - first version
\ProvidesFile{lthsawasdee.fd}[2008/01/21 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}{sawasdee}{}
-\DeclareFontShape{LTH}{sawasdee}{m}{n}{<->s * sawasdee}{}
-\DeclareFontShape{LTH}{sawasdee}{m}{sl}{<->s * sawasdee_o}{}
+\DeclareFontShape{LTH}{sawasdee}{m}{n}{<-> \fontstlwg@@scale sawasdee}{}
+\DeclareFontShape{LTH}{sawasdee}{m}{sl}{<-> \fontstlwg@@scale sawasdee_o}{}
%%%%%%% bold series
-\DeclareFontShape{LTH}{sawasdee}{b}{n}{<->s * sawasdee_b}{}
-\DeclareFontShape{LTH}{sawasdee}{b}{sl}{<->s * sawasdee_bo}{}
+\DeclareFontShape{LTH}{sawasdee}{b}{n}{<-> \fontstlwg@@scale sawasdee_b}{}
+\DeclareFontShape{LTH}{sawasdee}{b}{sl}{<-> \fontstlwg@@scale sawasdee_bo}{}
% Substitutions
\DeclareFontShape{LTH}{sawasdee}{m}{it}{<->ssub * sawasdee/m/sl}{}
@@ -39,6 +48,6 @@
\DeclareFontShape{LTH}{sawasdee}{bx}{it}{<->ssub * sawasdee/b/sl}{}
\endinput
-%
+%
% EOF
%
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthttype.fd b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthttype.fd
index 663f51db3ba..aec0c1b2e38 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthttype.fd
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthttype.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,11 +12,13 @@
% 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.
-%
+%
+% 2017/09/11 Abhabongse Janthong <abhabongse@gmail.com>
+% - add font scaling
% 2004/11/15 Theppitak Karoonboonyanan <thep@linux.thai.net>
% - pmono is now ttype (TlwgTypewriter)
% 2004/02/05 Poonlap Veerathanabutr <poonlap@linux.thai.net>
@@ -25,13 +27,20 @@
\ProvidesFile{lthttype.fd}[2004/02/05 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}{ttype}{}
-\DeclareFontShape{LTH}{ttype}{m}{n}{<->s * ttype}{}
-\DeclareFontShape{LTH}{ttype}{m}{sl}{<->s * ttype_o}{}
+\DeclareFontShape{LTH}{ttype}{m}{n}{<-> \fontstlwg@@scale ttype}{}
+\DeclareFontShape{LTH}{ttype}{m}{sl}{<-> \fontstlwg@@scale ttype_o}{}
%%%%%%% bold series
-\DeclareFontShape{LTH}{ttype}{b}{n}{<->s * ttype_b}{}
-\DeclareFontShape{LTH}{ttype}{b}{sl}{<->s * ttype_bo}{}
+\DeclareFontShape{LTH}{ttype}{b}{n}{<-> \fontstlwg@@scale ttype_b}{}
+\DeclareFontShape{LTH}{ttype}{b}{sl}{<-> \fontstlwg@@scale ttype_bo}{}
% Substitutions
\DeclareFontShape{LTH}{ttype}{m}{it}{<->ssub * ttype/m/sl}{}
@@ -42,6 +51,6 @@
\DeclareFontShape{LTH}{ttype}{bx}{it}{<->ssub * ttype/b/sl}{}
\endinput
-%
+%
% EOF
%
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthttypist.fd b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthttypist.fd
index 4c213718a98..659ff2baa80 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthttypist.fd
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthttypist.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,23 +12,32 @@
% 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.
-%
+%
+% 2017/09/11 Abhabongse Janthong <abhabongse@gmail.com>
+% - add font scaling
% 2006/10/23 Theppitak Karoonboonyanan <thep@linux.thai.net>
% - first release (based on lthttypist.fd)
\ProvidesFile{lthttypist.fd}[2004/02/05 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}{ttypist}{}
-\DeclareFontShape{LTH}{ttypist}{m}{n}{<->s * ttypist}{}
-\DeclareFontShape{LTH}{ttypist}{m}{sl}{<->s * ttypist_o}{}
+\DeclareFontShape{LTH}{ttypist}{m}{n}{<-> \fontstlwg@@scale ttypist}{}
+\DeclareFontShape{LTH}{ttypist}{m}{sl}{<-> \fontstlwg@@scale ttypist_o}{}
%%%%%%% bold series
-\DeclareFontShape{LTH}{ttypist}{b}{n}{<->s * ttypist_b}{}
-\DeclareFontShape{LTH}{ttypist}{b}{sl}{<->s * ttypist_bo}{}
+\DeclareFontShape{LTH}{ttypist}{b}{n}{<-> \fontstlwg@@scale ttypist_b}{}
+\DeclareFontShape{LTH}{ttypist}{b}{sl}{<-> \fontstlwg@@scale ttypist_bo}{}
% Substitutions
\DeclareFontShape{LTH}{ttypist}{m}{it}{<->ssub * ttypist/m/sl}{}
@@ -39,6 +48,6 @@
\DeclareFontShape{LTH}{ttypist}{bx}{it}{<->ssub * ttypist/b/sl}{}
\endinput
-%
+%
% EOF
%
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthumpush.fd b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthumpush.fd
index 0d9da11fc98..f043cb21977 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthumpush.fd
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthumpush.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,26 +12,35 @@
% 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.
-%
+%
+% 2017/09/11 Abhabongse Janthong <abhabongse@gmail.com>
+% - add font scaling
% 2008/01/21 Theppitak Karoonboonyanan <thep@linux.thai.net>
% - first version
\ProvidesFile{lthumpush.fd}[2008/01/21 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}{umpush}{}
-\DeclareFontShape{LTH}{umpush}{m}{n}{<->s * umpush}{}
-\DeclareFontShape{LTH}{umpush}{m}{sl}{<->s * umpush_o}{}
+\DeclareFontShape{LTH}{umpush}{m}{n}{<-> \fontstlwg@@scale umpush}{}
+\DeclareFontShape{LTH}{umpush}{m}{sl}{<-> \fontstlwg@@scale umpush_o}{}
%%%%%%% bold series
-\DeclareFontShape{LTH}{umpush}{b}{n}{<->s * umpush_b}{}
-\DeclareFontShape{LTH}{umpush}{b}{sl}{<->s * umpush_bo}{}
+\DeclareFontShape{LTH}{umpush}{b}{n}{<-> \fontstlwg@@scale umpush_b}{}
+\DeclareFontShape{LTH}{umpush}{b}{sl}{<-> \fontstlwg@@scale umpush_bo}{}
%%%%%%% light series
-\DeclareFontShape{LTH}{umpush}{l}{n}{<->s * umpush_l}{}
-\DeclareFontShape{LTH}{umpush}{l}{sl}{<->s * umpush_lo}{}
+\DeclareFontShape{LTH}{umpush}{l}{n}{<-> \fontstlwg@@scale umpush_l}{}
+\DeclareFontShape{LTH}{umpush}{l}{sl}{<-> \fontstlwg@@scale umpush_lo}{}
% Substitutions
\DeclareFontShape{LTH}{umpush}{m}{it}{<->ssub * umpush/m/sl}{}
@@ -43,6 +52,6 @@
\DeclareFontShape{LTH}{umpush}{bx}{it}{<->ssub * umpush/b/sl}{}
\endinput
-%
+%
% EOF
%
diff --git a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthwaree.fd b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthwaree.fd
index ca22fc8fffc..2996b448dd5 100644
--- a/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthwaree.fd
+++ b/Master/texmf-dist/source/fonts/fonts-tlwg/latex/lthwaree.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,23 +12,32 @@
% 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.
-%
+%
+% 2017/09/11 Abhabongse Janthong <abhabongse@gmail.com>
+% - add font scaling
% 2008/01/21 Theppitak Karoonboonyanan <thep@linux.thai.net>
% - first version
\ProvidesFile{lthwaree.fd}[2008/01/21 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}{waree}{}
-\DeclareFontShape{LTH}{waree}{m}{n}{<->s * waree}{}
-\DeclareFontShape{LTH}{waree}{m}{sl}{<->s * waree_o}{}
+\DeclareFontShape{LTH}{waree}{m}{n}{<-> \fontstlwg@@scale waree}{}
+\DeclareFontShape{LTH}{waree}{m}{sl}{<-> \fontstlwg@@scale waree_o}{}
%%%%%%% bold series
-\DeclareFontShape{LTH}{waree}{b}{n}{<->s * waree_b}{}
-\DeclareFontShape{LTH}{waree}{b}{sl}{<->s * waree_bo}{}
+\DeclareFontShape{LTH}{waree}{b}{n}{<-> \fontstlwg@@scale waree_b}{}
+\DeclareFontShape{LTH}{waree}{b}{sl}{<-> \fontstlwg@@scale waree_bo}{}
% Substitutions
\DeclareFontShape{LTH}{waree}{m}{it}{<->ssub * waree/m/sl}{}
@@ -39,6 +48,6 @@
\DeclareFontShape{LTH}{waree}{bx}{it}{<->ssub * waree/b/sl}{}
\endinput
-%
+%
% EOF
%