summaryrefslogtreecommitdiff
path: root/Master/texmf-dist/tex/latex/zxjafont
diff options
context:
space:
mode:
authorKarl Berry <karl@freefriends.org>2013-04-25 22:33:14 +0000
committerKarl Berry <karl@freefriends.org>2013-04-25 22:33:14 +0000
commit8af545f5b3b7322b495619e14c6eb4f301af4a02 (patch)
tree2f2b78b2eca31e9605f14791311a40603c6636d0 /Master/texmf-dist/tex/latex/zxjafont
parent92907645c9411e22438b1985c91326a88337ba03 (diff)
zxjafont (25apr13)
git-svn-id: svn://tug.org/texlive/trunk@30105 c570f23f-e606-0410-a88d-b1316a301751
Diffstat (limited to 'Master/texmf-dist/tex/latex/zxjafont')
-rw-r--r--Master/texmf-dist/tex/latex/zxjafont/zxjafont.sty40
1 files changed, 35 insertions, 5 deletions
diff --git a/Master/texmf-dist/tex/latex/zxjafont/zxjafont.sty b/Master/texmf-dist/tex/latex/zxjafont/zxjafont.sty
index 09eb347f9e9..6037fa2c3f2 100644
--- a/Master/texmf-dist/tex/latex/zxjafont/zxjafont.sty
+++ b/Master/texmf-dist/tex/latex/zxjafont/zxjafont.sty
@@ -3,7 +3,7 @@
%
%%%% package declaration
\NeedsTeXFormat{LaTeX2e}
-\ProvidesPackage{zxjafont}[2009/12/22 v0.2]
+\ProvidesPackage{zxjafont}[2013/01/28 v0.2a]
\RequirePackage{ifxetex}
\RequireXeTeX
@@ -68,14 +68,44 @@
\zxjf@propfalse
\fi\fi
+%% provides \zxJaScale if absent
+\ifzxjf@zxjatype
+ \unless\ifdefined\zxJaScale
+ \ifdefined\zxjt@scale
+ \let\zxJaScale\zxjt@scale
+ \else\ifcsname __zxjt_scale_tl\endcsname
+ \expandafter\let\expandafter\zxJaScale
+ \csname __zxjt_scale_tl\endcsname
+ \else
+ \fi\fi
+ \fi
+\fi
+
%%%% decide scale factor
\ifx\zxjf@scale\relax
- \ifzxjf@zxjatype \let\zxjf@scale\zxjt@scale
- \else\ifx\jsDocClass\@undefined \def\zxjf@scale{1}%
- \else \let\zxjf@scale\jsScale \fi\fi
+ % If zxjatype is used, try \zxJaScale, \zxjt@scale,
+ % and \__zxjt_scale_tl.
+ \ifzxjf@zxjatype
+ \ifdefined\zxJaScale \let\zxjf@scale\zxJaScale
+ \else\ifdefined\zxjt@scale \let\zxjf@scale\zxjt@scale
+ \else\ifcsname __zxjt_scale_tl\endcsname
+ \expandafter\let\expandafter\zxjf@scale
+ \csname __zxjt_scale_tl\endcsname
+ \fi\fi\fi
+ \fi
+ \ifx\zxjf@scale\relax % still unknown
+ % Try \Cjascale and \jsScale.
+ \ifdefined\Cjascale \let\zxjf@scale\Cjascale
+ \else\ifdefined\jsScale \let\zxjf@scale\jsScale
+ \fi\fi
+ \fi
+ \ifx\zxjf@scale\relax % still unknown
+ \def\zxjf@scale{1}%
+ \fi
\fi
\edef\zxjf@xfeat{Scale=\zxjf@scale,\zxjf@feat}
-\zxjf@debug{feat={\zxjf@feat}/preset=\zxjf@main@preset/\zxjf@sub@preset}
+\zxjf@debug{scale=\zxjf@scale/feat={\zxjf@feat}/%
+ preset=\zxjf@main@preset/\zxjf@sub@preset}
%%-------- preset japanese font mappings