POV-Ray : Newsgroups : povray.newusers : Spacing text using min_extent and max_extent Server Time
30 Dec 2024 14:23:36 EST (-0500)
  Spacing text using min_extent and max_extent (Message 1 to 3 of 3)  
From: Reuben Pearse
Subject: Spacing text using min_extent and max_extent
Date: 7 Aug 2001 12:14:15
Message: <3b7013d7@news.povray.org>
Hi all,

Trying to do scene in which I apply a texture to individual letters in a
word (as opposed to applying the texture to the whole word). However this
involves looping through the code for each letter - this then makes
positioning the text a problem - each letter in the word is spaced equally -
like when using a fixed width font.
I have tried using the new megapov features min_extent and max_extent to
work out the position for a letter based on the size/position of the last
letter, but cannot get it working.
Has anyone got any code that does this?

Thanks

Reuben


Post a reply to this message

From: David Fontaine
Subject: Re: Spacing text using min_extent and max_extent
Date: 7 Aug 2001 16:14:34
Message: <3B7049E3.4075B833@faricy.net>
Reuben Pearse wrote:
> 
> Hi all,
> 
> Trying to do scene in which I apply a texture to individual letters in a
> word (as opposed to applying the texture to the whole word). However this
> involves looping through the code for each letter - this then makes
> positioning the text a problem - each letter in the word is spaced equally -
> like when using a fixed width font.
> I have tried using the new megapov features min_extent and max_extent to
> work out the position for a letter based on the size/position of the last
> letter, but cannot get it working.
> Has anyone got any code that does this?

Well, that sounds like the right procedure, so it must be some little
coding error.  Can you post your code?

-- 
David Fontaine  <dav### [at] faricynet>  ICQ 55354965
My raytracing gallery:  http://davidf.faricy.net/


Post a reply to this message

From: Chris Huff
Subject: Re: Spacing text using min_extent and max_extent
Date: 10 Aug 2001 10:28:41
Message: <chrishuff-D40F8B.09260410082001@netplex.aussie.org>
In article <3b7013d7@news.povray.org>,
 "Reuben Pearse" <reu### [at] presence-systemscom> wrote:

> I have tried using the new megapov features min_extent and max_extent to
> work out the position for a letter based on the size/position of the last
> letter, but cannot get it working.
> Has anyone got any code that does this?

You might want to look at the CircleText() macros by Ron Parker...they 
include a macro to determine the width of a character, and "manually" 
position each character of a string to form a circular text object. It 
shouldn't be hard to modify these macros to do what you want. These 
macros were posted in povray.text.scene-files:
From: ron### [at] povrayorg (Ron Parker)
Subject: circletext.pov : Make text go in circles
Date: 13 Dec 2000 12:19:44 -0500
Message-ID: <slr### [at] fwicom>

-- 
Christopher James Huff - chr### [at] maccom, http://homepage.mac.com/chrishuff/
TAG: chr### [at] tagpovrayorg, http://tag.povray.org/

<><


Post a reply to this message

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