POV-Ray : Newsgroups : povray.beta-test : Circle_Text macro problem : Circle_Text macro problem Server Time
30 Jul 2024 14:16:51 EDT (-0400)
  Circle_Text macro problem  
From: Rune
Date: 22 Oct 2001 17:13:26
Message: <3bd48bf6@news.povray.org>
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! ;)

// Upper text has spacing by Cirle_Text macro.
// Lower text is a regular text object with correct spacing.

#include "shapes.inc"
camera {location -1.4*z orthographic}
background {color rgb 1}

#declare String = "AV-VELVA-V"

object {
   Circle_Text("maiandb.ttf",String,0.45,0.01,50,0,3,+90)
   translate -49.8*y pigment {color rgb 0}
}
#declare Text = text {ttf "maiandb.ttf",String, 0.01, 0}
object {
   Text
   translate -(min_extent(Text)+max_extent(Text))/2
   scale 0.45 pigment {color rgb 0}
}

Rune


Post a reply to this message

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