POV-Ray : Newsgroups : povray.general : [help] UTF-8 Server Time
4 Nov 2024 23:19:28 EST (-0500)
  [help] UTF-8 (Message 1 to 7 of 7)  
From: Rafal 'Raf256' Maj
Subject: [help] UTF-8
Date: 30 Aug 2003 22:35:14
Message: <Xns93E82EA35C166raf256com@204.213.191.226>
Ups, I have only few hours to start final render and I realised thet I 
still dont' know how to use utf-8 encoding with is neede in some parts of 
my scene.

I.e. I want to pust a character that has UNICODE number i.e. 2345 (it's a 
vertical line crosed by left-horizontal arrow symbol).

What should I write ?


 global_settings { charset utf8 } 

 text { ttf "verdana.ttf" "2345" 1,0 }

doesn't work

-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Slime
Subject: Re: [help] UTF-8
Date: 30 Aug 2003 22:40:09
Message: <3f516009$1@news.povray.org>
"\u2345"

As explained in "6.2.7.2  Text Formatting" of the documentation.

However, that character looked like a "y" to me...

 - Slime
 [ http://www.slimeland.com/ ]


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: [help] UTF-8
Date: 30 Aug 2003 22:42:17
Message: <Xns93E82FD5B94DCraf256com@204.213.191.226>
spa### [at] raf256com news:Xns### [at] 204213191226

>  text { ttf "verdana.ttf" "2345" 1,0 }

text { ttf "timrom.ttf" chr(2345) 1,0 }

doesn't work neither


-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: [help] UTF-8
Date: 30 Aug 2003 22:54:26
Message: <Xns93E831E4DA19Braf256com@204.213.191.226>
fak### [at] emailaddress news:3f516009$1@news.povray.org

> "\u2345"

Hmm stil doesn't work... with font has defined all unicode characters 
(including chinesse etc) ?

-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Tim Cook
Subject: Re: [help] UTF-8
Date: 30 Aug 2003 23:06:24
Message: <3f516630$1@news.povray.org>
Rafal 'Raf256' Maj wrote:
> Hmm stil doesn't work... with font has defined all unicode characters 
> (including chinesse etc) ?

try one of the following:
batang.ttc
gulim.ttc
simsun.ttc
simhei.ttf
msmincho.ttc
mingliu.ttc
msgothic.ttc


Post a reply to this message

From: Rafal 'Raf256' Maj
Subject: Re: [help] UTF-8
Date: 31 Aug 2003 00:45:18
Message: <Xns93E844B033996raf256com@204.213.191.226>
z99### [at] bellsouthnet news:3f516630$1@news.povray.org

> try one of the following:
> batang.ttc
> gulim.ttc
> simsun.ttc
> simhei.ttf
> msmincho.ttc
> mingliu.ttc
> msgothic.ttc

Thanks :)

Now i'm using cyberbit.ttf - it has most glyphs from all categories, I can 
email it if someone is interested, and it's easy to find in googles afair.


-- 
#macro g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local l=mod(c,100
);g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end light_source{
y 2}sphere{z*20 9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

From: Dennis Miller
Subject: Re: [help] UTF-8
Date: 31 Aug 2003 12:15:15
Message: <3f521f13@news.povray.org>
I had to find some Cyrillic fonts to get this to work. Then I had to use a
display option under Windows to map my keyboard to the correct character. It
was several steps, actually.
d.

"Rafal 'Raf256' Maj" <spa### [at] raf256com> wrote in message
news:Xns### [at] 204213191226...
> fak### [at] emailaddress news:3f516009$1@news.povray.org
>
> > "\u2345"
>
> Hmm stil doesn't work... with font has defined all unicode characters
> (including chinesse etc) ?
>
> -- 
> #macro
g(U,V)(.4*abs(sin(9*sqrt(pow(x-U,2)+pow(y-V,2))))*pow(1-min(1,(sqrt(
> pow(x-U,2)+pow(y-V,2))*.3)),2)+.9)#end#macro p(c)#if(c>1)#local
l=mod(c,100
> );g(2*div(l,10)-8,2*mod(l,10)-8)*p(div(c,100))#else 1#end#end
light_source{
> y 2}sphere{z*20
9pigment{function{p(26252423)*p(36455644)*p(66656463)}}}//M


Post a reply to this message

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