ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* Re: More CJK fall-back fonts (S Barmeier)
       [not found] <mailman.1.1331377202.6892.ntg-context@ntg.nl>
@ 2012-03-10 12:32 ` dalyoung
  0 siblings, 0 replies; 2+ messages in thread
From: dalyoung @ 2012-03-10 12:32 UTC (permalink / raw)
  To: ntg-context

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
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

* Re: More CJK fall-back fonts (S Barmeier)
       [not found] <mailman.2708.1331386188.4232.ntg-context@ntg.nl>
@ 2012-03-11 11:54 ` dalyoung
  0 siblings, 0 replies; 2+ messages in thread
From: dalyoung @ 2012-03-11 11:54 UTC (permalink / raw)
  To: ntg-context

Dear Severin,

Try the following in the preamble.

\usetypescriptfile[your-typescript file-name]%if you save it as another file.
\usetypescript[MyIPAex]
\setupbodyfont[Myface, rm, 12pt]

I hope that it helps you. 
If it doesn't work for you, then other experts can tell you something.

Simplefont is a good module which makes font-definition easy. But the different style of the name of Korean fonts hindered me to use it.  There may be a way to use simplefont for Korean fonts which I don't know yet.

Best regards,

Dalyoung
___________________________________________________________________________________
If your question is of interest to others as well, please add an entry to the Wiki!

maillist : ntg-context@ntg.nl / http://www.ntg.nl/mailman/listinfo/ntg-context
webpage  : http://www.pragma-ade.nl / http://tex.aanhet.net
archive  : http://foundry.supelec.fr/projects/contextrev/
wiki     : http://contextgarden.net
___________________________________________________________________________________


^ permalink raw reply	[flat|nested] 2+ messages in thread

end of thread, other threads:[~2012-03-11 11:54 UTC | newest]

Thread overview: 2+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.1.1331377202.6892.ntg-context@ntg.nl>
2012-03-10 12:32 ` More CJK fall-back fonts (S Barmeier) dalyoung
     [not found] <mailman.2708.1331386188.4232.ntg-context@ntg.nl>
2012-03-11 11:54 ` dalyoung

This is a public inbox, see mirroring instructions
for how to clone and mirror all data and code used for this inbox;
as well as URLs for NNTP newsgroup(s).