POV-Ray : Newsgroups : povray.general : text Primitive Problem Server Time
3 Nov 2024 03:02:18 EST (-0500)
  text Primitive Problem (Message 1 to 6 of 6)  
From: Knut Torgersen
Subject: text Primitive Problem
Date: 9 Sep 2006 12:29:03
Message: <4502ebcf$1@news.povray.org>
On my WinXP 2GHz DualCore with 1 GB RAM I have the following problem:

#include "colors.inc"

camera {
   location  <  0.0,  0.0,-10.0 >
   direction <  0.0,  0.0,  3.5 >
   up        <  0.0,  1.0,  0.0 >
   right     <  3.2,  0.0,  0.0 >
   look_at   <  0.0,  0.0,  0.0 >
}

light_source { <-30, 21,-20 > color White }

text {

   translate x*-1.6
   pigment { color Yellow}
   finish { ambient 0.4 }
}

Should render a yellow A, followed by a B and terminated by the 
copyright symbol. Only A and B appears. This problem has been around for 
some ten years now and I just wonder when (if) it will be addressed and 
fixed.

\knutt\


Post a reply to this message

From: nomail
Subject: Re: text Primitive Problem
Date: 9 Sep 2006 14:05:01
Message: <web.450301dfc7ebd95a7c39ec240@news.povray.org>
Knut Torgersen <"knut torgersens.net"> wrote:
> On my WinXP 2GHz DualCore with 1 GB RAM I have the following problem:
>
> #include "colors.inc"
>
> camera {
>    location  <  0.0,  0.0,-10.0 >
>    direction <  0.0,  0.0,  3.5 >
>    up        <  0.0,  1.0,  0.0 >
>    right     <  3.2,  0.0,  0.0 >
>    look_at   <  0.0,  0.0,  0.0 >
> }
>
> light_source { <-30, 21,-20 > color White }
>
> text {

>    translate x*-1.6
>    pigment { color Yellow}
>    finish { ambient 0.4 }
> }
>
> Should render a yellow A, followed by a B and terminated by the
> copyright symbol. Only A and B appears. This problem has been around for
> some ten years now and I just wonder when (if) it will be addressed and
> fixed.

RTFM: <http://www.povray.org/documentation/view/3.6.1/263/>


Post a reply to this message

From: Tim Attwood
Subject: Re: text Primitive Problem
Date: 9 Sep 2006 23:46:37
Message: <45038a9d@news.povray.org>
3.2.2.7.2  Text Formatting
I'm not sure why you would think that requiring an escape
sequence for special characters is a bug.

text {ttf "arial.ttf" "AB\u00a9" 1, 0 pigment {Yellow}}


Post a reply to this message

From: Knut Torgersen
Subject: Re: text Primitive Problem
Date: 10 Sep 2006 02:33:57
Message: <4503b1d5$1@news.povray.org>
nomail wrote:
> Knut Torgersen <"knut torgersens.net"> wrote:
>> On my WinXP 2GHz DualCore with 1 GB RAM I have the following problem:
>>
>> #include "colors.inc"
>>
>> camera {
>>    location  <  0.0,  0.0,-10.0 >
>>    direction <  0.0,  0.0,  3.5 >
>>    up        <  0.0,  1.0,  0.0 >
>>    right     <  3.2,  0.0,  0.0 >
>>    look_at   <  0.0,  0.0,  0.0 >
>> }
>>
>> light_source { <-30, 21,-20 > color White }
>>
>> text {

>>    translate x*-1.6
>>    pigment { color Yellow}
>>    finish { ambient 0.4 }
>> }
>>
>> Should render a yellow A, followed by a B and terminated by the
>> copyright symbol. Only A and B appears. This problem has been around for
>> some ten years now and I just wonder when (if) it will be addressed and
>> fixed.
> 
> RTFM: <http://www.povray.org/documentation/view/3.6.1/263/>
> 
> 
> 
Thank you for your polite solution. How nice that it took ten years for 
someone with your level of politeness to tell me that. Last time, there 
was talk of a bug and that it has been changed to a "raw" input of 
symbols was new for me.

But, thank you for your help.

\knutt\


Post a reply to this message

From: Knut Torgersen
Subject: Re: text Primitive Problem
Date: 10 Sep 2006 02:43:50
Message: <4503b426@news.povray.org>
Tim Attwood wrote:
> 3.2.2.7.2  Text Formatting
> I'm not sure why you would think that requiring an escape
> sequence for special characters is a bug.
> 
> text {ttf "arial.ttf" "AB\u00a9" 1, 0 pigment {Yellow}}
> 
> 
> 
> 
Hello, I had a problem finding this in the docs, as I have all the time 
been referencing 3.4.1.13, so no wonder.... But, anyway, the solution 
works like a charm! Thank you!

\knutt\


Post a reply to this message

From: Knut Torgersen
Subject: Re: text Primitive Problem
Date: 10 Sep 2006 03:14:50
Message: <4503bb6a$1@news.povray.org>
Knut Torgersen wrote:
> On my WinXP 2GHz DualCore with 1 GB RAM I have the following problem:
> 
> #include "colors.inc"
> 
> camera {
>   location  <  0.0,  0.0,-10.0 >
>   direction <  0.0,  0.0,  3.5 >
>   up        <  0.0,  1.0,  0.0 >
>   right     <  3.2,  0.0,  0.0 >
>   look_at   <  0.0,  0.0,  0.0 >
> }
> 
> light_source { <-30, 21,-20 > color White }
> 
> text {

>   translate x*-1.6
>   pigment { color Yellow}
>   finish { ambient 0.4 }
> }
> 
> Should render a yellow A, followed by a B and terminated by the 
> copyright symbol. Only A and B appears. This problem has been around for 
> some ten years now and I just wonder when (if) it will be addressed and 
> fixed.
> 
> \knutt\
Now that we determined that

   text {ttf "arial.ttf" "AB\u00a9" 1, 0 pigment {Yellow}}

should render any printable Unicode character, I went on and tried this:

   text {ttf "arial.ttf" "AB\u00F8" 1, 0 pigment {Yellow}}


rendered correctly in this forum). I did get the German double "s" or 
Greek "Beta" (Unicode 0x00DF, so something isn't quite keeping up here. 
Me? Perhaps, that's why I ask for help :-) Well, since this seems odd, I 
went on and did a "dir" on my fonts folder for Arial files.

C:\WINDOWS\Fonts>dir ar*
  Volumet i stasjon C er Peregrin
  Volumserienummeret er AC21-8533

  Innhold i C:\WINDOWS\Fonts

2004-08-04  14:00           367 112 arial.ttf
2004-08-04  14:00           352 224 arialbd.ttf
2004-08-04  14:00           226 748 arialbi.ttf
2004-08-04  14:00           207 808 ariali.ttf
1998-11-12  16:39           134 200 ARIALN.TTF
1998-11-12  16:39           139 128 ARIALNB.TTF
1998-11-12  16:39           138 568 ARIALNBI.TTF
1998-11-12  16:39           141 408 ARIALNI.TTF
2002-11-18  17:44        23 275 812 ARIALUNI.TTF
2004-08-04  14:00           117 028 ariblk.ttf
1999-08-18  20:13            45 260 ARLRDBD.TTF
2004-08-04  14:00            84 600 artrbdo.ttf
2004-08-04  14:00            83 264 artro.ttf
               13 fil(er)       25 313 160 byte
                0 mappe(r)  12 030 013 440 byte ledig

C:\WINDOWS\Fonts>

Find the odd-looking file ;-) I replaced the line and now it reads:

   text {ttf "arialuni.ttf" "AB\u00F8" 1, 0 pigment {Yellow}}

And my Norwegian character is now what it should be.

Thanky you "nomail" and Tim Attwood for pointing me in the right direction.

\knutt\


Post a reply to this message

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