Re: [NTG-context] More CJK fall-back fonts (S Barmeier)
Dear Severin, I use a Korean unfont as main fonts and an English fonts as fallback font using the following type script file which is made by the help of Hans and D.H. Kim. You may set fonts similarly. Korean fonts contained Chinese glyph(not all of them) and Japanese glyph, we don't have any problem to use them. I hope that it may help you to find a solution of your problem. Best regards, Dalyoung P.S. Any comments on the following script file are appreciated. ******************** \definefontfeature[krdefault][mode=node,script=hang,lang=kor] \definefontfeature[krslanted][mode=node,script=hang,lang=kor,slant=.2] \def\mydefaultfeatures{kern=yes;liga=yes;tlig=yes;trep=yes} \def\mysmallcapsfeatures{\mydefaultfeatures;smcp=yes} \def\myslantfeatures{\mydefaultfeatures;slant=.2} %%% fallbacks for english \definefontfallback[serifwhatever] [texgyrepagella-regular:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[serifboldwhatever] [texgyrepagella-bold:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[serifitalicwhatever] [texgyrepagella-italic:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[serifbolditalicwhatever] [texgyrepagella-bolditalic:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[serifslantedwhatever] [texgyrepagella-regular:\myslantfeatures] [0x0000-0x0400][force=yes] \definefontfallback[serifboldslantedwhatever] [texgyrepagella-bold:\myslantfeatures] [0x0000-0x0400][force=yes] \definefontfallback[serifcapswhatever] [texgyrepagella-regular:\mysmallcapsfeatures] [0x0000-0x0400][force=yes] \definefontfallback[sanswhatever] [texgyreheros-regular:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[sansboldwhatever] [texgyreheros-bold:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[sansitalicwhatever] [texgyreheros-italic:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[sansbolditalicwhatever] [texgyreheros-bolditalic:\mydefaultfeatures] [0x0000-0x0400][force=yes] \definefontfallback[sansslantedwhatever] [texgyreheros-regular:\myslantfeatures] [0x0000-0x0400][force=yes] \definefontfallback[sansboldslantedwhatever] [texgyreheros-bold:\myslantfeatures] [0x0000-0x0400][force=yes] \definefontfallback[sanscapswhatever] [texgyreheros-regular:\mysmallcapsfeatures] [0x0000-0x0400][force=yes] \definefontfallback[monowhatever] [texgyrecursor-regular] [0x0000-0x0400][force=yes] \definefontfallback[monoboldwhatever] [texgyrecursor-bold] [0x0000-0x0400][force=yes] \definefontfallback[monoitalicwhatever] [texgyrecursor-italic] [0x0000-0x0400][force=yes] \definefontfallback[monobolditalicwhatever] [texgyrecursor-bolditalic] [0x0000-0x0400][force=yes] \definefontfallback[monoslantedwhatever] [texgyrecursor-regular:slant=.2] [0x0000-0x0400][force=yes] \definefontfallback[monoboldslantedwhatever] [texgyrecursor-bold:slant=.2] [0x0000-0x0400][force=yes] \definefontfallback[monocapswhatever] [texgyrecursor-regular:smcp=yes] [0x0000-0x0400][force=yes] \starttypescript [math] [stix] [name] \definefontsynonym[MathRoman][file:stixmath-regular.otf] [features=math] \stoptypescript \starttypescript [math] [xits] [name] \definefontsynonym[MathRoman][file:xits-math.otf] [features=math] \stoptypescript %%%%%% UnFonts \starttypescript [serif] [unBatang] \definefontsynonym [unbatang] [UnBatang.ttf] [features=krdefault,fallbacks=serifwhatever] \definefontsynonym [unbatangbold] [UnBatangBold.ttf] [features=krdefault,fallbacks=serifboldwhatever] \definefontsynonym [unbatangitalic] [UnBatang.ttf] [features=krslanted,fallbacks=serifitalicwhatever] \definefontsynonym [unbatangbolditalic] [UnBatangBold.ttf] [features=krslanted,fallbacks=serifbolditalicwhatever] \definefontsynonym [unbatangslanted] [UnBatang.ttf] [features=krslanted,fallbacks=serifslantedwhatever] \definefontsynonym [unbatangboldslanted] [UnBatangBold.ttf] [features=krslanted,fallbacks=serifboldslantedwhatever] \definefontsynonym [unbatangcaps] [UnBatang.ttf] [features=krdefault,fallbacks=serifcapswhatever] \stoptypescript \starttypescript [serif][unBatang][name] \definefontsynonym[Serif] [unbatang] \definefontsynonym[SerifBold] [unbatangbold] \definefontsynonym[SerifItalic] [unbatangitalic] \definefontsynonym[SerifBoldItalic] [unbatangbolditalic] \definefontsynonym[SerifSlanted] [unbatangslanted] \definefontsynonym[SerifBoldSlanted] [unbatangboldslanted] \definefontsynonym[SerifCaps] [unbatangcaps] \stoptypescript \starttypescript[sans][unDotum] \definefontsynonym[undotum] [UnDotum.ttf] [features=krdefault,fallbacks=sanswhatever] \definefontsynonym[undotumbold] [UnDotumBold.ttf] [features=krdefault,fallbacks=sansboldwhatever] \definefontsynonym[undotumitalic] [UnDotum.ttf] [features=krslanted,fallbacks=sansitalicwhatever] \definefontsynonym[undotumbolditalic] [UnDotumBold.ttf] [features=krslanted,fallbacks=sansbolditalicwhatever] \definefontsynonym[undotumslanted] [UnDotum.ttf] [features=krslanted,fallbacks=sansslantedwhatever] \definefontsynonym[undotumboldslanted] [UnDotumBold.ttf] [features=krslanted,fallbacks=sansboldslantedwhatever] \definefontsynonym[undotumcaps] [UnDotum.ttf] [features=krdefault,fallbacks=sanscapswhatever] \stoptypescript \starttypescript[sans][unDotum][name] \definefontsynonym[Sans] [undotum] \definefontsynonym[SansBold] [undotumbold] \definefontsynonym[SansItalic] [undotumitalic] \definefontsynonym[SansBoldItalic] [undotumbolditalic] \definefontsynonym[SansSlanted] [undotumslanted] \definefontsynonym[SansBoldSlanted] [undotumboldslanted] \definefontsynonym[SansCaps] [undotumcaps] \stoptypescript \starttypescript[mono][unType] \definefontsynonym[untype] [UnTaza.ttf] [features=krdefault,fallbacks=monowhatever] \definefontsynonym[untypebold] [UnTaza.ttf] [features=krdefault,fallbacks=monoboldwhatever] \definefontsynonym[untypeitalic] [UnTaza.ttf] [features=krslanted,fallbacks=monoitalicwhatever] \definefontsynonym[untypebolditalic] [UnTaza.ttf] [features=krslanted,fallbacks=monobolditalicwhatever] \definefontsynonym[untypeslanted] [UnTaza.ttf] [features=krslanted,fallbacks=monoslantedwhatever] \definefontsynonym[untypeboldslanted] [UnTaza.ttf] [features=krslanted,fallbacks=monoboldslantedwhatever] \definefontsynonym[untypecaps] [UnTaza.ttf] [features=krdefault,fallbacks=monocapswhatever] \stoptypescript \starttypescript[mono][unType][name] \definefontsynonym[Mono] [untype] \definefontsynonym[MonoBold] [untypebold] \definefontsynonym[MonoItalic] [untypeitalic] \definefontsynonym[MonoBoldItalic] [untypebolditalic] \definefontsynonym[MonoSlanted] [untypeslanted] \definefontsynonym[MonoBoldSlanted] [untypeboldslanted] \definefontsynonym[MonoCaps] [untypecaps] \stoptypescript \starttypescript[unFonts] \definetypeface[Myface][rm][serif][unBatang] \definetypeface[Myface][ss][sans] [unDotum] \definetypeface[Myface][tt][mono] [unType] % \definetypeface [Myface][mm][math] [modern] [modern] \definetypeface [Myface][mm][math] [xits] \stoptypescript
participants (1)
-
dalyoung