diff options
Diffstat (limited to 'Master/texmf-dist/tex/xetex/xetexko/xetexko-font.sty')
-rw-r--r-- | Master/texmf-dist/tex/xetex/xetexko/xetexko-font.sty | 30 |
1 files changed, 15 insertions, 15 deletions
diff --git a/Master/texmf-dist/tex/xetex/xetexko/xetexko-font.sty b/Master/texmf-dist/tex/xetex/xetexko/xetexko-font.sty index a2fa766a87b..e61331944e8 100644 --- a/Master/texmf-dist/tex/xetex/xetexko/xetexko-font.sty +++ b/Master/texmf-dist/tex/xetex/xetexko/xetexko-font.sty @@ -1,6 +1,6 @@ % xetexko-font.sty % -% Copyright (c) 2013 Dohyun Kim <nomos at ktug org> +% Copyright (c) 2013-2014 Dohyun Kim <nomos at ktug org> % % This work may be distributed and/or modified under the % conditions of the LaTeX Project Public License, either version 1.3c @@ -10,9 +10,11 @@ % and version 1.3c or later is part of all distributions of LaTeX % version 2006/05/20 or later. -\ProvidesPackage{xetexko-font}[2014/02/02 v2.4 Font commands for XeTeX-ko] +\ProvidesPackage{xetexko-font}[2014/03/28 v2.5 Font commands for XeTeX-ko] +\let\xetexko@f@size\f@size \RequirePackage{fontspec} +\let\f@size\xetexko@f@size \RequirePackage{xkeyval} %%%%%%%%%%%%%%%%%%%%%%%%%%%% @@ -376,19 +378,17 @@ \let\XKstoreprevfont\XKlatinfont }} -\AtBeginDocument{ - \ifx\f@family\rmdefault - \XK@rm@korean@font - \protected\edef\normalfont{\unexpanded\expandafter{\normalfont\XK@rm@korean@font}} - \else \ifx\f@family\sfdefault - \XK@sf@korean@font - \protected\edef\normalfont{\unexpanded\expandafter{\normalfont\XK@sf@korean@font}} - \else - \XK@tt@korean@font - \protected\edef\normalfont{\unexpanded\expandafter{\normalfont\XK@tt@korean@font}} - \fi\fi - \let\reset@font\normalfont -} +\expandafter\ifx\familydefault\rmdefault + \XK@rm@korean@font + \protected\edef\normalfont{\unexpanded\expandafter{\normalfont\XK@rm@korean@font}} +\else \expandafter\ifx\familydefault\sfdefault + \XK@sf@korean@font + \protected\edef\normalfont{\unexpanded\expandafter{\normalfont\XK@sf@korean@font}} +\else + \XK@tt@korean@font + \protected\edef\normalfont{\unexpanded\expandafter{\normalfont\XK@tt@korean@font}} +\fi\fi +\let\reset@font\normalfont %%%%%%%%%%%%%%%%%%%%% % hangul in math mode |