|
|
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |
| |
|
|
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
|
|
| |
| |
|
|
|
|
| |