POV-Ray : Newsgroups : povray.advanced-users : Text objects on Pov? Server Time
30 Jul 2024 08:22:55 EDT (-0400)
  Text objects on Pov? (Message 1 to 7 of 7)  
From: AC
Subject: Text objects on Pov?
Date: 10 Dec 1999 12:23:38
Message: <3851371a@news.povray.org>
I came across a problem with the text object....


character.

The problem was that I did dot find a way to put the whole word in the same
text object

,chr(128), "GERTIDNING".

Is there a way to put all the characters in one string so that I only have
to use the Text command once to draw the word?

Ambis


Post a reply to this message

From: Nieminen Juha
Subject: Re: Text objects on Pov?
Date: 10 Dec 1999 12:32:37
Message: <38513935@news.povray.org>
AC <amb### [at] teliacom> wrote:
: Is there a way to put all the characters in one string so that I only have
: to use the Text command once to draw the word?

  Yes, using the concat() function.

-- 
main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/


Post a reply to this message

From: AC
Subject: Re: Text objects on Pov?
Date: 10 Dec 1999 17:32:21
Message: <38517f75@news.povray.org>
Nieminen Juha <war### [at] punarastascstutfi> wrote in message
news:38513935@news.povray.org...
> AC <amb### [at] teliacom> wrote:
> : Is there a way to put all the characters in one string so that I only
have
> : to use the Text command once to draw the word?
>
>   Yes, using the concat() function.
>
> --
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*- Warp -*/



Not exactly what I mean........
line from a povfile:


scale .1 }  rotate <0,0,0>}


Is it possible to do somthing like this in Povray.....

 text { ttf "c:\windows\fonts\Times.ttf"                "N" + chr(128) +
"PP"          .1, 0 pigment {rgb <0,0,0> scale .1 }  rotate <0,0,0>}

I think you get the idea


Post a reply to this message

From: Chris Huff
Subject: Re: Text objects on Pov?
Date: 10 Dec 1999 17:53:07
Message: <chrishuff_99-5E6B76.17532910121999@news.povray.org>
In article <38517f75@news.povray.org>, "AC" <amb### [at] teliacom> wrote:

> Not exactly what I mean........
> line from a povfile:
> 

>  <0,0,0>
> scale .1 }  rotate <0,0,0>}
> 

> Is it possible to do somthing like this in Povray.....
> 
>  text { ttf "c:\windows\fonts\Times.ttf"                "N" + chr(128) +
> "PP"          .1, 0 pigment {rgb <0,0,0> scale .1 }  rotate <0,0,0>}
> 
> I think you get the idea

Maybe that character can only be accessed with the Unicode patch by Jon 
Cruz. It is included in the Superpatch, although it apparently has some 
problems with the Mac.

-- 
Chris Huff
e-mail: chr### [at] yahoocom
Web page: http://chrishuff.dhs.org/


Post a reply to this message

From: Remco de Korte
Subject: Re: Text objects on Pov?
Date: 10 Dec 1999 21:01:47
Message: <3851B023.47BF9C17@xs4all.nl>
AC wrote:
> 
> Nieminen Juha <war### [at] punarastascstutfi> wrote in message
> news:38513935@news.povray.org...
> > AC <amb### [at] teliacom> wrote:
> > : Is there a way to put all the characters in one string so that I
> only
> have
> > : to use the Text command once to draw the word?
> >
> >   Yes, using the concat() function.
> >
> > --
> >
> main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> > ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*-
> Warp -*/
> 
> Not exactly what I mean........
> line from a povfile:
> 

> <0,0,0>
> scale .1 }  rotate <0,0,0>}
> 

> chr(128),
> Is it possible to do somthing like this in Povray.....
> 
>  text { ttf "c:\windows\fonts\Times.ttf"                "N" + chr(128)
> +
> "PP"          .1, 0 pigment {rgb <0,0,0> scale .1 }  rotate <0,0,0>}
> 
> I think you get the idea

Yes, as Warp said:

text { 
  ttf "c:\windows\fonts\Times.ttf"
  concat("N" + chr(128)+"PP")
  .1, 0 
  pigment {rgb <0,0,0> scale .1 }  
  rotate <0,0,0>
}


Post a reply to this message

From: Jon A  Cruz
Subject: Re: Text objects on Pov?
Date: 11 Dec 1999 01:41:24
Message: <3851F1F4.4ED4DA22@geocities.com>
Chris Huff wrote:

> In article <38517f75@news.povray.org>, "AC" <amb### [at] teliacom> wrote:
>
> > Not exactly what I mean........
> > line from a povfile:
> >

> >  <0,0,0>
> > scale .1 }  rotate <0,0,0>}
> >

> > Is it possible to do somthing like this in Povray.....
> >
> >  text { ttf "c:\windows\fonts\Times.ttf"                "N" + chr(128) +
> > "PP"          .1, 0 pigment {rgb <0,0,0> scale .1 }  rotate <0,0,0>}
> >
> > I think you get the idea
>
> Maybe that character can only be accessed with the Unicode patch by Jon
> Cruz. It is included in the Superpatch, although it apparently has some
> problems with the Mac.
>
> --
> Chris Huff
> e-mail: chr### [at] yahoocom
> Web page: http://chrishuff.dhs.org/

Yes, the Unipatch should do the job. It's in the superpatch.
See here for some simple docs
http://www.geocities.com/SiliconValley/Network/4453/unipatch/

http://www.geocities.com/SiliconValley/Network/4453/unipatch/unipatch.jpg


But it is very strange that chr(128) should work for that. But... that's
because it happens to be the location of the capital letter 'A' with diaeresis
in the Apple roman font encoding, and the official POV-Ray goes for the first
Apple encoding table in all fonts... (try a different font and you might get
it popping up in a different location)

Oh, and the Unipatch doesn't really have a problem with the Mac. Just with
poorly done Mac fonts :-) . But in the version that I'm almost done with, that
is fixed. Along with some bugfixes that will cause even the standard POV-Ray
to choke on most newer Mac fonts.

--
"My new computer's got the clocks, it rocks
But it was obsolete before I opened the box" - W.A.Y.


Post a reply to this message

From: AC
Subject: Re: Text objects on Pov? ...... Thanks
Date: 11 Dec 1999 05:46:08
Message: <38522b70@news.povray.org>
Remco de Korte <rem### [at] xs4allnl> wrote in message
news:3851B023.47BF9C17@xs4all.nl...
> AC wrote:
> >
> > Nieminen Juha <war### [at] punarastascstutfi> wrote in message
> > news:38513935@news.povray.org...
> > > AC <amb### [at] teliacom> wrote:
> > > : Is there a way to put all the characters in one string so that I
> > only
> > have
> > > : to use the Text command once to draw the word?
> > >
> > >   Yes, using the concat() function.
> > >
> > > --
> > >
> > main(i,_){for(_?--i,main(i+2,"FhhQHFIJD|FQTITFN]zRFHhhTBFHhhTBFysdB"[i]
> > > ):5;i&&_>1;printf("%s",_-70?_&1?"[]":" ":(_=0,"\n")),_/=2);} /*-
> > Warp -*/
> >
> > Not exactly what I mean........
> > line from a povfile:
> >

> > <0,0,0>
> > scale .1 }  rotate <0,0,0>}
> >

> > chr(128),
> > Is it possible to do somthing like this in Povray.....
> >
> >  text { ttf "c:\windows\fonts\Times.ttf"                "N" + chr(128)
> > +
> > "PP"          .1, 0 pigment {rgb <0,0,0> scale .1 }  rotate <0,0,0>}
> >
> > I think you get the idea
>
> Yes, as Warp said:
>
> text

>   ttf "c:\windows\fonts\Times.ttf"
>   concat("N" + chr(128)+"PP")
>   .1, 0
>   pigment {rgb <0,0,0> scale .1 }
>   rotate <0,0,0>
> }


Thanks for the help, It solved my problem

Ambis


Post a reply to this message

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