POV-Ray : Newsgroups : povray.beta-test : 3.7 RC6. Text object. Documented internal variant does not work. : 3.7 RC6. Text object. Documented internal variant does not work. Server Time
2 May 2024 10:23:40 EDT (-0400)
  3.7 RC6. Text object. Documented internal variant does not work.  
From: William F Pokorny
Date: 27 Dec 2012 08:56:33
Message: <50dc5391$1@news.povray.org>
Hello, I believe I've stumbled upon an inconsistency between the wiki 
documentation and the 3.7 RC6 implementation of the text object.

Thanks,
Bill P.

//
// The wiki at http://wiki.povray.org/content/Reference:Text says :
//
//In version 3.7 several fonts were built-in, consequently,
//the following alternate syntax is available:
//
//TEXT_OBECT:
//  text {
//    internal Font_Number "String_of_Text"
// ...

// However, the internal option does not appear to work and I do not see
// support for it in parse.cpp. Unsure if missing function or the
// internal option was pulled and documentation needs to be updated?

// File 'the.pov' line 39: Parse Error: Expected 'ttf', internal
// found instead

//------------------------------------
global_settings {
     assumed_gamma 1.0
     ambient_light srgb <1.0,1.0,1.0>
}
#declare Grey85 = rgb <0.8500,0.8500,0.8500>;
#declare Cabbage_Pont = srgb <0.2471,0.2980,0.2275>;
#declare White = srgb <1.0,1.0,1.0>;
#declare Buddha_Gold = srgb <0.7569,0.6275,0.0157>;
background { color Grey85 }
plane { <0.0,1.0,0.0>, -1.0 pigment { Cabbage_Pont }
}
#declare Camera35 = camera {
     perspective
     location <0.0,2.0,-20.0>
     sky <0.0,1.0,0.0>
     angle 35.0
     right x*(image_width/image_height)
     up y
     look_at <0.0,0.0,0.0>
}
#declare Light5050n50 = light_source { <50.0,50.0,-50.0>, White }
#declare Text22 = text {
     internal 1       "Fails"
//  ttf "timrom.ttf" "Works"
     0.2000, 0.1*x
     pigment { color Buddha_Gold }
}

light_source { Light5050n50 }
camera { Camera35 }
object { Text22 }
//------------------------------------


Post a reply to this message

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