ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
* baseline of outlined font
       [not found] <mailman.485.1550252126.1205.ntg-context@ntg.nl>
@ 2019-02-16 11:07 ` Jeong Dal
  2019-02-16 12:43   ` Wolfgang Schuster
  0 siblings, 1 reply; 3+ messages in thread
From: Jeong Dal @ 2019-02-16 11:07 UTC (permalink / raw)
  To: list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl
	ntg-context@ntg.nl

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

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: baseline of outlined font
  2019-02-16 11:07 ` baseline of outlined font Jeong Dal
@ 2019-02-16 12:43   ` Wolfgang Schuster
  2019-02-16 14:08     ` Jeong Dal
  0 siblings, 1 reply; 3+ messages in thread
From: Wolfgang Schuster @ 2019-02-16 12:43 UTC (permalink / raw)
  To: mailing list for ConTeXt users, Jeong Dal

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

___________________________________________________________________________________
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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

* Re: baseline of outlined font
  2019-02-16 12:43   ` Wolfgang Schuster
@ 2019-02-16 14:08     ` Jeong Dal
  0 siblings, 0 replies; 3+ messages in thread
From: Jeong Dal @ 2019-02-16 14:08 UTC (permalink / raw)
  To: Wolfgang Schuster; +Cc: mailing list for ConTeXt users

Dear Wolfgang,

Thank you for the solution.

BTW, what is the difference between “deeptextcommand” and “textcommand”?

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://context.aanhet.net
archive  : https://bitbucket.org/phg/context-mirror/commits/
wiki     : http://contextgarden.net
___________________________________________________________________________________

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

end of thread, other threads:[~2019-02-16 14:08 UTC | newest]

Thread overview: 3+ messages (download: mbox.gz / follow: Atom feed)
-- links below jump to the message on this page --
     [not found] <mailman.485.1550252126.1205.ntg-context@ntg.nl>
2019-02-16 11:07 ` baseline of outlined font Jeong Dal
2019-02-16 12:43   ` Wolfgang Schuster
2019-02-16 14:08     ` Jeong Dal

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).