Dear all, Recently, I used outlined font described in MetaFun for titles. But the baselines of the number and the title of chapter are different. What is wrong in the following code? Thank you for reading. Best regards, Dalyoung %%%%%%%% \definefont[BigFontOne][NotoSansCJKkr-Bold sa 4] \definecolor[BigColorOne][r=.86,g=.850,b=.54] \startuseMPgraphic{outlineT} draw outlinetext.b (\MPvar{tt}) (withcolor .75white) (withcolor .725blue withpen pencircle scaled .75pt);%\MPvar{thick}); \stopuseMPgraphic \define[1]\titleOutline{\useMPgraphic{outlineT}{tt="#1"}} \setuphead[chapter,title] [deeptextcommand=\titleOutline, color=BigColorOne, style=\BigFontOne, numbercommand=\titleOutline, number=yes] \setupbodyfont[rm, 11pt] \starttext \chapter{First} \samplefile{knuth} \startchapter[title={Chapter Title}] \samplefile{knuth} \stopchapter \stoptext
Jeong Dal schrieb am 16.02.19 um 12:07:
Dear all,
Recently, I used outlined font described in MetaFun for titles. But the baselines of the number and the title of chapter are different. What is wrong in the following code?
Thank you for reading.
Best regards,
Dalyoung
%%%%%%%% \definefont[BigFontOne][NotoSansCJKkr-Bold sa 4] \definecolor[BigColorOne][r=.86,g=.850,b=.54]
\startuseMPgraphic{outlineT} draw outlinetext.b (\MPvar{tt}) (withcolor .75white) (withcolor .725blue withpen pencircle scaled .75pt);%\MPvar{thick}); \stopuseMPgraphic
\define[1]\titleOutline{\useMPgraphic{outlineT}{tt="#1"}}
\setuphead[chapter,title] [deeptextcommand=\titleOutline, color=BigColorOne, style=\BigFontOne, numbercommand=\titleOutline,
Use textcommand (not deeptextcommand) to apply to outline to the title. Wolfgang
Dear Wolfgang, Thank you for the solution. BTW, what is the difference between “deeptextcommand” and “textcommand”? Best regards, Dalyoung
participants (2)
-
Jeong Dal
-
Wolfgang Schuster