POV-Ray : Newsgroups : povray.newusers : Bevelled text macro : Re: Bevelled text macro Server Time
25 Jun 2024 19:57:18 EDT (-0400)
  Re: Bevelled text macro  
From: DGClarke
Date: 16 Jun 2013 16:30:01
Message: <web.51be1fb3d117c337c62f57420@news.povray.org>
Thankyou for the help...this works

Bevelled_Text("timrom.ttf", "Wonder",1, 1, 1, 1, 0, false )

Alain <kua### [at] videotronca> wrote:

> > DGClarke wrote:
> >
> >> #macro Bevelled_Text(timrom, Wonder,4, 25, 3, 2, -1 )
> >
> > 1. Keyword #macro is only for defining a macro, not for calling it
> >
> > 2. My version of shapes.inc has 8 parameters, you seem to be missing one
> >
> >     #macro Bevelled_Text(Font, String, Cuts, BevelAng,
> >                          BevelDepth, Depth, Offset, UseMerge)
> >
> >     UseMerge should be true if for transparent material, otherwise false
> >
> > 3. Strings require quotes and it may be the font name requires
> >     extension: "timrom.ttf", "Wonder".
> >
> > 4. Also, best to try a unbevelled text object first
> >
> >     text {ttf Font String Depth, Offset}
> >
> >     Then you can see how big it is and use appropriate values
> >     for bevelling. Text height will be of order 1.0 so your
> >     values may be too large.
>
> Another thing, your offset is -1, whitch get expanded to <-1, -1, -1>.
> The macro then impose a value of zero to the z component.
>
> This effectively shift your characters left and down one unit from the
> preceding one. This will NOT place your characters in a vertical line as
> they probably don't all have the same width. Most fonts are
> proportional. "i" and "." are very narow, while "W" and "M" are prety
> whide...
>
> It best to start with an offset of 0. If you use a non-zero value, you
> should provide a full vector.
>
>
> Alain


Post a reply to this message

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