
\definefont[BigFontTwo][NotoSansKr-Bold sa 2]
\definefont[BigFontThree][NotoSansKr-Bold sa 3]

\definefontfamily[notoFont][rm][Noto Serif KR]
  [   it={style:regular,features:{*,slanted}},
      sl={style:regular,features:{*,slanted}},
      bi={style:bold,features:{*,slanted}},force=yes]

\definefontfamily[notoFont][ss][Noto Sans KR]
  [   it={style:regular,features:{*,slanted}},
      sl={style:regular,features:{*,slanted}},
      bi={style:bold,features:{*,slanted}},force=yes]

\setuplanguage[kr][patterns=us]
\mainlanguage[kr]
\setscript[hangul]

\setupbodyfont[notoFont,rm, 12pt]

%%%%%
\startuseMPgraphic{outlineStyle}
draw outlinetext.b ("\framed[frame=off,align=normal]{"  & \MPvar{tt}  & "}")	(withcolor .75white) (withcolor .725blue withpen pencircle scaled .75pt);
\stopuseMPgraphic

\startuseMPgraphic{outlineT}
   draw lmt_outline [
       text      = \MPvar{tt},
       kind      = "both",
       width     = OverlayWidth,
       align     = "middle",
       fillcolor = "gray",
       rulethickness = 1pt,
       drawcolor = "dBlue"
   ] ;
\stopuseMPgraphic

%\define[1]\outlineTitle{\useMPgraphic{outlineT}{tt="#1"}}
\define[1]\outlineTitle{\useMPgraphic{outlineStyle}{tt="#1"}}

\setuphead[chapter,title]
[textcommand=\outlineTitle,
 textstyle=\BigFontThree,
 numberstyle=\BigFontThree,
 numbercommand=\outlineTitle,
 align=middle,%flushright,
 number=yes]
%%%%%%

\starttext
\title{알고리즘(Algorithm)}

This is a test file for the outlined font.
\stoptext
