POV-Ray : Newsgroups : povray.newusers : Width of character Server Time
5 Sep 2024 16:19:05 EDT (-0400)
  Width of character (Message 11 to 16 of 16)  
<<< Previous 10 Messages Goto Initial 10 Messages
From: Mike Williams
Subject: Re: Width of character
Date: 23 Nov 2000 13:27:03
Message: <nvKukHA+aUH6Ewup@econym.demon.co.uk>
Wasn't it Dawn McKnight who wrote:
>
>
>Chris Huff wrote:
> 
>> A more flexible(and far simpler) solution would be to use a separate
>> text object for every character and use the min_extent() and
>> max_extent() functions to get the bounding box for each individual
>> character, and use these values to position the characters correctly.
>
>I'm trying to get a text string centered, and I remembered this thread. 
>Chris, can I use min_extent() and max_extent() on a string, or is it
>only applicable to single characters?  Where can I find documentation on
>these functions; it doesn't seem to be with the other text primitive
>documentation in the official docs.
>
>For that matter, if the function is not part of POV natively, where can
>I find the function?

Text centring is directly available in MegaPOV. Just add the
"align_center" modifier to the text object. 

You only need to use MegaPOV's "min_extent()" and "max_extent()" if
you're doing more complicated positioning tasks.


The *_extent functions are described in section 9.1 (Bounds Patch) of
the MegaPOV 0.6 docs, and align_* are in section 6.6 (Text Object
Enhancements).

-- 
Mike Williams
Gentleman of Leisure


Post a reply to this message

From: Dawn McKnight
Subject: Re: Width of character
Date: 23 Nov 2000 16:42:00
Message: <3A1D8F29.D5F83F46@mac.com>
Mike Williams wrote:
> 
> Wasn't it Dawn McKnight who wrote:

Why yes, it was... thank you for noticing! P)

> Text centring is directly available in MegaPOV. Just add the
> "align_center" modifier to the text object.

Sadly, that requires me to download MegaPOV, install it, figure out
where it's different from standard POV, so that I don't get
unpredictable results in my scene files, read the docs on text, etc., etc.

Of course, I probably will do this, eventually, but it's really rather
more involved than I wanted to get for what is basically a throw-away
test on a concept.

Thank you for letting me know this, and for your citation on where the
documentation is... I'll be very grateful when I get around to doing all
that stuff. 8)

-- 
Dawn McKnight      | "Who cares what the hipbone's connected to? I'm in Neurology!"
McK### [at] maccom   |					-- Justine Devlin, M.D.


Post a reply to this message

From: Ken
Subject: Re: Width of character
Date: 23 Nov 2000 16:46:52
Message: <3A1D90E0.439B4C87@pacbell.net>
Dawn McKnight wrote:

> Sadly, that requires me to download MegaPOV, install it, figure out
> where it's different from standard POV, so that I don't get
> unpredictable results in my scene files, read the docs on text, etc., etc.
> 
> Of course, I probably will do this, eventually, but it's really rather
> more involved than I wanted to get for what is basically a throw-away
> test on a concept.

For all intents and purposes you should be able to use Megapov
with little or no extra knowlege other than learning it's extra
feature sets. It is basically the same as the official version
with enhancements.

-- 
Ken Tyler


Post a reply to this message

From: Ron Parker
Subject: Re: Width of character
Date: 24 Nov 2000 00:28:06
Message: <slrn91rv3a.fuv.ron.parker@fwi.com>
On Thu, 23 Nov 2000 16:33:02 +0000, Mike Williams wrote:
>Text centring is directly available in MegaPOV. Just add the
>"align_center" modifier to the text object. 

Note that this won't be directly supported in POV 3.5.  

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

From: Dawn McKnight
Subject: Re: Width of character
Date: 24 Nov 2000 10:11:18
Message: <3A1E8516.C988E611@mac.com>
Ron Parker wrote:
> Note that this won't be directly supported in POV 3.5.

Will there be any text handling improvements in 3.5?

-- 
Dawn McKnight      | "Who cares what the hipbone's connected to? I'm in Neurology!"
McK### [at] maccom   |					-- Justine Devlin, M.D.


Post a reply to this message

From: Ron Parker
Subject: Re: Width of character
Date: 24 Nov 2000 12:50:37
Message: <slrn91taji.gfc.ron.parker@fwi.com>
On Fri, 24 Nov 2000 08:11:19 -0700, Dawn McKnight wrote:
>
>
>Ron Parker wrote:
>> Note that this won't be directly supported in POV 3.5.
>
>Will there be any text handling improvements in 3.5?

The min_extent and max_extent functions will make it in, and we'll likely
provide macros to give the same functionality as the MegaPOV text alignment
keywords provide.

-- 
Ron Parker   http://www2.fwi.com/~parkerr/traces.html
My opinions.  Mine.  Not anyone else's.


Post a reply to this message

<<< Previous 10 Messages Goto Initial 10 Messages

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