diff options
author | Karl Berry <karl@freefriends.org> | 2014-07-07 23:28:51 +0000 |
---|---|---|
committer | Karl Berry <karl@freefriends.org> | 2014-07-07 23:28:51 +0000 |
commit | 55703b1ac018841dbc6dc656b650d3be81856df9 (patch) | |
tree | b3116f6acfcc3817020db457417f6a79d58cb544 /Master/texmf-dist/tex/latex/fonts-tlwg | |
parent | e3c158f0493ac33ab7c1b6bf343f0ef020be679e (diff) |
fonts-tlwg (7jul14)
git-svn-id: svn://tug.org/texlive/trunk@34542 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/fonts-tlwg')
-rw-r--r-- | Master/texmf-dist/tex/latex/fonts-tlwg/fonts-tlwg.sty | 53 | ||||
-rw-r--r-- | Master/texmf-dist/tex/latex/fonts-tlwg/lthlaksaman.fd | 44 |
2 files changed, 88 insertions, 9 deletions
diff --git a/Master/texmf-dist/tex/latex/fonts-tlwg/fonts-tlwg.sty b/Master/texmf-dist/tex/latex/fonts-tlwg/fonts-tlwg.sty index 3471df87bc4..fc14f324a95 100644 --- a/Master/texmf-dist/tex/latex/fonts-tlwg/fonts-tlwg.sty +++ b/Master/texmf-dist/tex/latex/fonts-tlwg/fonts-tlwg.sty @@ -18,24 +18,59 @@ % The Current Maintainer of this work is Theppitak Karoonboonyanan. % -\ProvidesPackage{fonts-tlwg}[2011/10/18 v1.0 Thai TLWG Fonts] +\ProvidesPackage{fonts-tlwg}[2014/07/05 v1.1 Thai TLWG Fonts] -\def\thairmdefault{norasi} -\def\thaisfdefault{garuda} -\def\thaittdefault{ttypist} -\def\englishrmdefault{cmr} -\def\englishsfdefault{cmss} -\def\englishttdefault{cmtt} +\newcommand\thairmdefault{norasi} +\newcommand\thaisfdefault{garuda} +\newcommand\thaittdefault{ttypist} +\newcommand\englishrmdefault{cmr} +\newcommand\englishsfdefault{cmss} +\newcommand\englishttdefault{cmtt} + +\newcommand{\thaifamilydefault}{\thairmdefault} +\newcommand{\englishfamilydefault}{\englishrmdefault} + +% Use sans-serif font by default +\DeclareOption{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}} + +% 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}} + +\ProcessOptions\relax \DeclareRobustCommand{\thaitext}{% - \fontencoding{LTH}\fontfamily{\thairmdefault}\selectfont + \fontencoding{LTH}\fontfamily{\thaifamilydefault}\selectfont \def\rmdefault{\thairmdefault}% \def\sfdefault{\thaisfdefault}% \def\ttdefault{\thaittdefault}% \def\encodingdefault{LTH}} \DeclareRobustCommand{\latintext}{% - \fontencoding{\latinencoding}\fontfamily{\englishrmdefault}\selectfont + \fontencoding{\latinencoding}\fontfamily{\englishfamilydefault}\selectfont \def\rmdefault{\englishrmdefault}% \def\sfdefault{\englishsfdefault}% \def\ttdefault{\englishttdefault}% diff --git a/Master/texmf-dist/tex/latex/fonts-tlwg/lthlaksaman.fd b/Master/texmf-dist/tex/latex/fonts-tlwg/lthlaksaman.fd new file mode 100644 index 00000000000..c85f10e80d1 --- /dev/null +++ b/Master/texmf-dist/tex/latex/fonts-tlwg/lthlaksaman.fd @@ -0,0 +1,44 @@ +% lthlaksaman.fd +% +% This file is part of the fonts-tlwg package +% +% 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. +% 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 Theppitak Karoonboonyanan. +% +% 2014/06/26 Theppitak Karoonboonyanan <thep@linux.thai.net> +% - first version + +\ProvidesFile{lthlaksaman.fd}[2014/06/24 v1.0 Thai font definitions] + +% Primary declarations +\DeclareFontFamily{LTH}{laksaman}{} +\DeclareFontShape{LTH}{laksaman}{m}{n}{<->s * laksaman}{} +\DeclareFontShape{LTH}{laksaman}{m}{it}{<->s * laksaman_i}{} +%%%%%%% bold series +\DeclareFontShape{LTH}{laksaman}{b}{n}{<->s * laksaman_b}{} +\DeclareFontShape{LTH}{laksaman}{b}{it}{<->s * laksaman_bi}{} + +% Substitutions +\DeclareFontShape{LTH}{laksaman}{m}{sl}{<->ssub * laksaman/m/it}{} +\DeclareFontShape{LTH}{laksaman}{b}{sl}{<->ssub * laksaman/b/it}{} + +\DeclareFontShape{LTH}{laksaman}{bx}{n}{<->ssub * laksaman/b/n}{} +\DeclareFontShape{LTH}{laksaman}{bx}{it}{<->ssub * laksaman/b/it}{} +\DeclareFontShape{LTH}{laksaman}{bx}{sl}{<->ssub * laksaman/b/it}{} +\endinput + +% +% EOF +% |