diff options
author | Marius <mariausol@gmail.com> | 2012-01-10 13:33:35 +0200 |
---|---|---|
committer | Marius <mariausol@gmail.com> | 2012-01-10 13:33:35 +0200 |
commit | d44c3d2b9ac2a797c610b9b472527119c08bf206 (patch) | |
tree | 09dca91a6255797b040b88c2ea348e162c0842e4 /tex/context/base/font-col.mkiv | |
parent | 2ee95c7070f4d16d25209332378cb27e599292f7 (diff) | |
download | context-d44c3d2b9ac2a797c610b9b472527119c08bf206.tar.gz |
beta 2012.01.09 10:08
Diffstat (limited to 'tex/context/base/font-col.mkiv')
-rw-r--r-- | tex/context/base/font-col.mkiv | 142 |
1 files changed, 0 insertions, 142 deletions
diff --git a/tex/context/base/font-col.mkiv b/tex/context/base/font-col.mkiv deleted file mode 100644 index cbe183868..000000000 --- a/tex/context/base/font-col.mkiv +++ /dev/null @@ -1,142 +0,0 @@ -%D \module -%D [ file=font-col, -%D version=2008.06.11, -%D title=\CONTEXT\ Font Macros, -%D subtitle=Fallbacks (collections), -%D author=Hans Hagen, -%D date=\currentdate, -%D copyright={PRAGMA ADE \& \CONTEXT\ Development Team}] -%C -%C This module is part of the \CONTEXT\ macro||package and is -%C therefore copyrighted by \PRAGMA. See mreadme.pdf for -%C details. - -% ! EXPERIMENTAL ! code will be made more nice -% -% actually we can now do more at the lua end - -% todo: missing only, force always, multiple fallbacks with test, scale -% -% \resetfontfallback [whatever] -% -% \definefontfallback [whatever] [Slanted] [0x0060-0x007F] [force=yes] -% \definefontfallback [whatever] [Bold] [0x0080-0x00FF,0x00A0-0x00AF] [rscale=1.2] -% \definefontfallback [whatever] [BoldSlanted] [0x00C0-0x00C7] [check=yes,force=yes] - -\writestatus{loading}{ConTeXt Font Macros / Collections} - -\registerctxluafile{font-col}{1.001} - -\unprotect - -\unexpanded\def\definefontfallback - {\doquadrupleempty\dodefinefontfallback} - -\def\dodefinefontfallback[#1][#2][#3][#4]% - {\ctxcommand{definefontcollection("#1","#2",\!!bs#3\!!es,\!!bs#4\!!es)}} - -\def\resetfontfallback - {\dodoubleempty\doresetfontfallback} - -\def\doresetfontfallback[#1][#2]% - {\ctxcommand{resetfontcollection("#1","#2")}} - -% add fallbacks to last font - -\def\dodefinefontfallbacks#1% - {\ctxcommand{preparefontcollection("#1")}} - -% we might as well move the handling to lua but then we need to pass the -% fallbacks, skewchar etc. - -\setfalse\doingfontfallbacks - -\def\dodefinefontfallbacksindeed#1% - {\begingroup - \settrue\doingfontfallbacks - \lastrawfontcall % sets current font id - \dodefinefontfallbacks#1% - \endgroup} - -\appendtoks - \ifconditional\doingfontfallbacks\else - \ifx\@@fontfallbacks\empty - \ifx\@@fontclassfallbacks\empty - \else - \dodefinefontfallbacksindeed\@@fontclassfallbacks - \fi - \else - \dodefinefontfallbacksindeed\@@fontfallbacks - \fi - \fi -\to\everydefinefont - -\def\dostartcloningfonts - {\bgroup - \let\savedfontspec\somefontspec} - -\def\dostopcloningfonts - {\egroup} - -\def\doclonefonta#1#2% kind of dododefinefont - {\ctxcommand{fontcollectionmessage("defining #1 (relative scale: #2)")}% brrr - \autofontsizefalse - \let\lastfontidentifier\s!dummy - \def\localrelativefontsize{#2}% - \let\localabsolutefontsize\fontbody - \lowleveldefinefont{#1}\rawfontidentifier - \csname\rawfontidentifier\endcsname - \autofontsizefalse - %\setfontcharacteristics - }%\the\everyfontswitch} - -\def\doclonefontb#1% #2 - {\doclonefonta{#1 \savedfontspec}} - -\def\doclonefontstageone#1{\ctxcommand{clonefontcollection_one("#1")}} -\def\doclonefontstagetwo#1{\ctxcommand{clonefontcollection_two("#1")}} - -% check : only replace when present in replacement font (default: no) -% force : force replacent even when basefont has glyph (default: yes) - -% \definefontfallback [whatever] [Slanted] [0x0060-0x007F] [force=yes] -% \definefontfallback [whatever] [Bold] [0x0080:0x00FF,0x00A0:0x00AF] [rscale=2.0] -% \definefontfallback [whatever] [BoldSlanted] ["00C0-"00C7] [check=yes,force=yes] -% \definefontfallback [whatever] [Mono] [latinextendeda] [force=yes] % 0x0100:0x017F -% \definefontfallback [whatever] [Mono] [latin extended a] [force=yes] % 0x0100:0x017F -% -% \definefontsynonym[SerifPlus][Serif][fallbacks=whatever] -% -% \showfont[SerifPlus][all] - -% \definefontfeature[zh][mode=node,script=hang,lang=zhs] -% \definefontfallback[serifwhatever] [lmroman10-regular] [0x0000-0x0400][force=yes] -% \definefontfallback[serifboldwhatever] [lmroman10-bold] [0x0000-0x0400][force=yes] -% \definefontfallback[serifitalicwhatever] [lmroman10-italic] [0x0000-0x0400][force=yes] -% \definefontfallback[serifbolditalicwhatever][lmroman10-bolditalic][0x0000-0x0400][force=yes] -% -% \starttypescript [serif] [zhfont] -% \definefontsynonym [zhserif] [AdobeSongStd-Light] [features=zh,fallbacks=serifwhatever] -% \definefontsynonym [zhserifbold] [AdobeHeitiStd-Regular][features=zh,fallbacks=serifboldwhatever] -% \definefontsynonym [zhserifitalic] [AdobeKaitiStd-Regular][features=zh,fallbacks=serifitalicwhatever] -% \definefontsynonym [zhserifbolditalic][AdobeHeitiStd-Regular][features=zh,fallbacks=serifbolditalicwhatever] -% \stoptypescript -% -% \starttypescript [serif][zhfont][name] -% \definefontsynonym[Serif] [zhserif] % [fallbacks=serifwhatever] -% \definefontsynonym[SerifBold] [zhserifbold] % [fallbacks=serifboldwhatever] -% \definefontsynonym[SerifItalic] [zhserifitalic] % [fallbacks=serifitalicwhatever] -% \definefontsynonym[SerifBoldItalic] [zhserifbolditalic] % [fallbacks=serifbolditalicwhatever] -% \stoptypescript -% -% \starttypescript[myfont] -% \definetypeface[myfont][rm][serif][zhfont] -% \stoptypescript -% -% \usetypescript[myfont] \setupbodyfont[myfont,rm,12pt] -% -% \starttext -% fonts {\bf fonts} {\bi fonts} {\it fonts} -% \stoptext - -\protect \endinput |