POV-Ray : Newsgroups : povray.animations : UTF-8 Server Time
23 Nov 2024 17:26:19 EST (-0500)
  UTF-8 (Message 1 to 6 of 6)  
From: Alfredo
Subject: UTF-8
Date: 17 Nov 2005 14:35:00
Message: <web.437cdaf9e813c50f4e3eba50@news.povray.org>
Hello there.
I have some questions.
I got Devinnei font and i wanna put a letter that in windows is ALT-164. So
if i add to my .pov file:
 global_settings { charset utf8 }

then i can get that letter?

Does it depend of the font type or can i get that letter independently of
font file used?

Is that independent of system used?. I mean I'm using povray in LINUX.
Thanks in advance.
Alfredo


Post a reply to this message

From: Warp
Subject: Re: UTF-8
Date: 17 Nov 2005 15:15:12
Message: <437ce4cf@news.povray.org>
Alfredo <ful### [at] yahoocom> wrote:
> I got Devinnei font and i wanna put a letter that in windows is ALT-164. So
> if i add to my .pov file:
>  global_settings { charset utf8 }

> then i can get that letter?

  AFAIK for utf8 to work with a ttf file the file has to have unicode
mapping info in them. Most modern fonts do, but some very old ones probably
don't.

  And then, if you want a non-ascii character you have to give it to
povray utf8-encoded. For this you need an editor which supports editing
a utf8-encoded text file (no, I don't know if the winpov editor supports
this; my guess is that it doesn't). I don't know right now of a unix editor
which supports utf8 encoding.

  Utf8 is an encoding for unicode characters which is different from
the most common ISO-8859-1 encoding (which only supports character
codes between 32 and 255) with all characters which code is >127.

-- 
                                                          - Warp


Post a reply to this message

From: Alfredo
Subject: Re: UTF-8
Date: 17 Nov 2005 17:15:01
Message: <web.437d0070e1bae7e6f4e3eba50@news.povray.org>
Thanks warp for ur reply.
Let me tell u about that letter I want to put in an animated text.
This is a Latin letter. It looks like a "N" but with a tilde .
Like Spain is spelled in Spanish. (Espana)
Like Boy in espanish . Nino.

Thanks
Alfredo


Warp <war### [at] tagpovrayorg> wrote:
> Alfredo <ful### [at] yahoocom> wrote:
> > I got Devinnei font and i wanna put a letter that in windows is ALT-164. So
> > if i add to my .pov file:
> >  global_settings { charset utf8 }
>
> > then i can get that letter?
>
>   AFAIK for utf8 to work with a ttf file the file has to have unicode
> mapping info in them. Most modern fonts do, but some very old ones probably
> don't.
>
>   And then, if you want a non-ascii character you have to give it to
> povray utf8-encoded. For this you need an editor which supports editing
> a utf8-encoded text file (no, I don't know if the winpov editor supports
> this; my guess is that it doesn't). I don't know right now of a unix editor
> which supports utf8 encoding.
>
>   Utf8 is an encoding for unicode characters which is different from
> the most common ISO-8859-1 encoding (which only supports character
> codes between 32 and 255) with all characters which code is >127.
>
> --
>                                                           - Warp


Post a reply to this message

From: Alfredo
Subject: Re: UTF-8
Date: 17 Nov 2005 17:20:00
Message: <web.437d0184e1bae7e6f4e3eba50@news.povray.org>
Thanks Warp.
I want to get a Latin letter. It seems like an "n" but with a tilde.
Like Spain in Spanish....Espana.
Like Boy in Spanish...Nino.
Thanks
Alfredo


Warp <war### [at] tagpovrayorg> wrote:
> Alfredo <ful### [at] yahoocom> wrote:
> > I got Devinnei font and i wanna put a letter that in windows is ALT-164. So
> > if i add to my .pov file:
> >  global_settings { charset utf8 }
>
> > then i can get that letter?
>
>   AFAIK for utf8 to work with a ttf file the file has to have unicode
> mapping info in them. Most modern fonts do, but some very old ones probably
> don't.
>
>   And then, if you want a non-ascii character you have to give it to
> povray utf8-encoded. For this you need an editor which supports editing
> a utf8-encoded text file (no, I don't know if the winpov editor supports
> this; my guess is that it doesn't). I don't know right now of a unix editor
> which supports utf8 encoding.
>
>   Utf8 is an encoding for unicode characters which is different from
> the most common ISO-8859-1 encoding (which only supports character
> codes between 32 and 255) with all characters which code is >127.
>
> --
>                                                           - Warp


Post a reply to this message

From: em-sigma
Subject: Re: UTF-8
Date: 18 Nov 2005 08:05:01
Message: <web.437dd04fe1bae7e6b97a06d80@news.povray.org>
Hi Alfredo,
to put in some foreign characters in your text you can do it this way:

look up the character in the character table
       (N tilde = Alt 209, n tilde = Alt 241)

then declare it in your .pov file
       #declare Nt=chr(209);
       #declare nt=chr(241);

and use it in your text like this
       concat("Ni",nt,"o");

This sounds a little complicated, but it works.

Hope it helps,

greetings, em-sigma


Post a reply to this message

From: Alfredo
Subject: Re: UTF-8
Date: 18 Nov 2005 14:15:01
Message: <web.437e27aae1bae7e6f4e3eba50@news.povray.org>
That was a great solution.
Thanks Em-sigma.

"em-sigma" <em-### [at] webde> wrote:
> Hi Alfredo,
> to put in some foreign characters in your text you can do it this way:
>
> look up the character in the character table
>        (N tilde = Alt 209, n tilde = Alt 241)
>
> then declare it in your .pov file
>        #declare Nt=chr(209);
>        #declare nt=chr(241);
>
> and use it in your text like this
>        concat("Ni",nt,"o");
>
> This sounds a little complicated, but it works.
>
> Hope it helps,
>
> greetings, em-sigma


Post a reply to this message

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