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 ___________________________________________________________________________________