POV-Ray : Newsgroups : povray.general : Center of Text-object : Re: Center of Text-object Server Time
1 Aug 2024 10:18:52 EDT (-0400)
  Re: Center of Text-object  
From: John VanSickle
Date: 1 Dec 2005 22:10:40
Message: <438fbb30$1@news.povray.org>
iceqb wrote:

> Warp <war### [at] tagpovrayorg> wrote:
> 
> 
>>  min_extent() and max_extent()
> 
> 
> Didn't think about that, but then I would have to declare the letter before
> using it in the difference, i don't suppose there's a way to do it in the
> text {..} block?

Try this:

#local txtL=text { ttf FontName, "A",1,0 }

object { txtL
   translate -(min_extent(txtL)+max_extent(txtL))/2
}

Regards,
John


Post a reply to this message

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