ntg-context - mailing list for ConTeXt users
 help / color / mirror / Atom feed
From: Jeong Dal <haksan@me.com>
To: "list ntg-context@ntg.nl ntg-context@ntg.nl ntg-context@ntg.nl
	ntg-context@ntg.nl" <ntg-context@ntg.nl>
Subject: Re: Metafun: Finding intersection between characters
Date: Wed, 26 Sep 2018 08:48:06 +0900	[thread overview]
Message-ID: <99F76F00-3E38-466F-B4D3-13010261EAE4@me.com> (raw)
In-Reply-To: <mailman.3457.1537623691.2042.ntg-context@ntg.nl>

Dear Hans,

First, it is great to know a new method of drawing an outlined font!

 I have applied it to Korean fonts. As you know, every Korean character is composed with “consonant+vowel(+consonant)” type. If consonant and vowel are connected (for example, “호”), then it draws correctly, otherwise (for example, “하”)  it draws only consonant.
Is there a way to count all the paths in a character(even if it is not connected)?

Thank you.
Best regards,

Dalyoung


> 
> \starttext
> 
> \startMPdefinitions
> 
>     % will be added to metafun:
> 
>     def filloutlinetext(expr o) =
>         draw image (
>             save n, m ; numeric n, m ; n := m := 0 ;
>             for i within o :
>                 n := n + 1 ;
>             endfor ;
>             for i within o :
>                 m := m + 1 ;
>                 if n = m :
>                     eofill
>                 else :
>                     nofill
>                 fi pathpart i ;
>             endfor ;
>         )
>     enddef ;
> 

___________________________________________________________________________________
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
___________________________________________________________________________________

       reply	other threads:[~2018-09-25 23:48 UTC|newest]

Thread overview: 17+ messages / expand[flat|nested]  mbox.gz  Atom feed  top
     [not found] <mailman.3457.1537623691.2042.ntg-context@ntg.nl>
2018-09-25 23:48 ` Jeong Dal [this message]
2018-09-26  7:59   ` Hans Hagen
2018-09-26 11:44     ` Jeong Dal
2018-09-26 10:10   ` Hans Hagen
2018-09-26 12:14     ` Jeong Dal
2018-09-26 12:24       ` Hans Hagen
2018-09-26 21:38         ` Jeong Dal
2018-09-27  8:49           ` Hans Hagen
2018-09-27 15:06             ` Jeong Dal
2018-09-27 15:43               ` Hans Hagen
2018-09-28 10:09                 ` Jeong Dal
2018-09-22  8:35 Henri Menke
2018-09-22  9:27 ` Hans Hagen
2018-09-22 10:08   ` Floris van Manen
2018-09-22 11:45     ` Hans Hagen
2018-09-22 13:41       ` Alan Braslau
2018-09-22 17:06         ` Hans Hagen

Reply instructions:

You may reply publicly to this message via plain-text email
using any one of the following methods:

* Save the following mbox file, import it into your mail client,
  and reply-to-all from there: mbox

  Avoid top-posting and favor interleaved quoting:
  https://en.wikipedia.org/wiki/Posting_style#Interleaved_style

* Reply using the --to, --cc, and --in-reply-to
  switches of git-send-email(1):

  git send-email \
    --in-reply-to=99F76F00-3E38-466F-B4D3-13010261EAE4@me.com \
    --to=haksan@me.com \
    --cc=ntg-context@ntg.nl \
    /path/to/YOUR_REPLY

  https://kernel.org/pub/software/scm/git/docs/git-send-email.html

* If your mail client supports setting the In-Reply-To header
  via mailto: links, try the mailto: link
Be sure your reply has a Subject: header at the top and a blank line before the message body.
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).