On 03/29/2018 10:28 PM, Gerhard Kugler wrote:
Hi,
in documentations I can find various examples of circled text. But copying them I had no success till now.
I want to place text in half circles of various radiuses. Is there anywhere a simple example?
The Metafun experts would probably tear this apart... \startuniqueMPgraphic{half circle} path p, q ; p := fullcircle scaled OverlayWidth; q := (p cutafter (point .5 along p)) shifted (0,-.5BodyFontSize) ; fill q -- cycle withcolor lightgray ; draw q withpen pencircle scaled 2pt withcolor darkred ; setbounds currentpicture to boundingbox p ; \stopuniqueMPgraphic \defineoverlay[half circle][\uniqueMPgraphic{half circle}] \starttext \framed[background=half circle,frame=off]{Text width half circle.} \stoptext
My greatest problems seem to be in the embedding code.
Gerhard