POV-Ray : Newsgroups : povray.newusers : Width of character : Re: Width of character Server Time
5 Sep 2024 12:17:26 EDT (-0400)
  Re: Width of character  
From: ingo
Date: 20 Nov 2000 11:14:55
Message: <8FF2A6912seed7@povray.org>
John VanSickle wrote:

>You should see an image that is white on the left side and black on
>the right, with red text.  Adjust W until the right edge of the text
>lies exactly on the border between the black and white areas.  When
>this happens, W is either the exact width of the text, or is a simple
>fraction (1/2, 1/3, 1/4) of that width; starting with a higher value
>and working your way down will give better results.

This makes me think, if your intention is to put the letters on the same 
positions as they are in the "full text", you could as well use a 
pigment_map or texture_map with a gradient to give each letter a different 
texture.

text {
  ttf
  "crystal.ttf",
  "POV",
  0.1,
  0
  pigment {
    gradient x
    scale 2
    pigment_map{
      [0.2, wood]
      [0.2, granite]
      [0.5, granite]
      [0.5, wood]
    }
  }
  translate <-0.75,0,0>
}


Ingo

-- 
Photography: http://members.home.nl/ingoogni/
Pov-Ray    : http://members.home.nl/seed7/


Post a reply to this message

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