POV-Ray : Newsgroups : povray.general : How arrange a few text objects : How arrange a few text objects Server Time
5 May 2024 05:41:47 EDT (-0400)
  How arrange a few text objects  
From: Kima
Date: 6 Sep 2019 15:35:00
Message: <web.5d72b3cc91779769ecc0fada0@news.povray.org>
When we have a few separate text objects as

#local t1=text{ ttf "font.ttf", "First", 1, 0 texture{ pigment{ rgb <1,1,1> }}
#local t2=text{ ttf "font.ttf", "Second", 1, 0 texture{ pigment{ rgb <1,1,1> }}
#local t3=text{ ttf "font.ttf", "Third", 1, 0 texture{ pigment{ rgb <1,1,1> }}

union {t1 t2 t3}

how can we place the object after each other on the x-axis to read the text as
"First Second Third"?

I mean how to find the end of each element to place the next one.

I tried to use max_extent, but was confused where to use it to get the last
location of the previous element.


Post a reply to this message

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