POV-Ray : Newsgroups : povray.beta-test : Circle_Text macro problem : Re: Circle_Text macro problem Server Time
30 Jul 2024 14:21:51 EDT (-0400)
  Re: Circle_Text macro problem  
From: Ron Parker
Date: 22 Oct 2001 17:21:29
Message: <slrn9t93er.t3k.ron.parker@fwi.com>
On Mon, 22 Oct 2001 23:14:39 +0200, Rune wrote:
> Due to a limitation (not a bug) in the Circle_Text macro in shapes.inc, the
> spacing for text created with the Circle_Text macro is not optimal.
> Rendering the code at the end of this message will demonstrate it.
> 
> Again, it's not a bug, so it's not something that's easy to fix, but perhaps
> someone can come up with a solution anyway? There's a challenge for you! ;)

Aw, c'mon, the challenge is getting Circle_Text back into a human-readable
form, isn't it?

It's certainly possible to take kerning into account when calculating the
letter spacings; I've written macros to do that.  The problem is that once
you start letting the space for a letter overlap the space for another letter,
you can end up with actual glyphs overlapping after you bend them around
the circle.

-- 
#macro R(L P)sphere{L F}cylinder{L P F}#end#macro P(V)merge{R(z+a z)R(-z a-z)R(a
-z-z-z a+z)torus{1F clipped_by{plane{a 0}}}translate V}#end#macro Z(a F T)merge{
P(z+a)P(z-a)R(-z-z-x a)pigment{rgbf 1}hollow interior{media{emission 3-T}}}#end 
Z(-x-x.2x)camera{location z*-10rotate x*90normal{bumps.02scale.05}}


Post a reply to this message

Copyright 2003-2023 Persistence of Vision Raytracer Pty. Ltd.