|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hello!
How can I use fonts in POV-Ray, that consist special characters, like with
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> Hello!
>
> How can I use fonts in POV-Ray, that consist special characters, like with
>
>
Add:
global_settings{char_set utf8}
Then, for most characters, you will need to use chr(Char_Number)
concat(Start_Of_String, chr(Char_Nubber), Rest_Of_String)
Alain
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 07.04.10 23:58, Alain wrote:
>> Hello!
>>
>> How can I use fonts in POV-Ray, that consist special characters, like
>> with
>
> Add:
> global_settings{char_set utf8}
Correct.
> Then, for most characters, you will need to use chr(Char_Number)
Actually, that is not correct. One can either use an editor capable of
editing UTF-8 files (see
<http://www.povray.org/documentation/view/3.6.1/263/>) and things will "just
work", or use the backslask-u encoding, which for some reason ended up being
described in <http://www.povray.org/documentation/view/3.6.1/242/>, but
nonetheless is handled correctly for all strings.
For the umlaut-o the code would be "\u00F6". What needs to be remebered
though is that POV-Ray only supports the "Basic Multilingual Plane" of
Unicode (see details about Unicode i.e. at
<http://en.wikipedia.org/wiki/Universal_Character_Set> or of course in the
Unicode standard). This limitation is mainly due to the TrueType font
handling code not being able to handle more than UCS-2 correctly.
Thorsten, POV-Team
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Sorry for the incovinience. So, can I do that in the built-in editor of the
POV-Ray? And, if yes, how. I added the neccessary statement to the
global_settings, but it didn't help.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Silverlight2009 schrieb:
> Sorry for the incovinience. So, can I do that in the built-in editor of the
> POV-Ray? And, if yes, how. I added the neccessary statement to the
> global_settings, but it didn't help.
>
>
This may help:
http://www.f-lohmueller.de/pov_tut/all_shapes/shapes604e.htm
Friedrich
//-----------------------------------------
email: Fri### [at] t-onlinede
homepage: http://www.f-lohmueller.de/
//-----------------------------------------
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
> Sorry for the incovinience. So, can I do that in the built-in editor of the
> POV-Ray? And, if yes, how. I added the neccessary statement to the
> global_settings, but it didn't help.
>
>
The builtin editor presently don't handle extended ASCII nor unicode
properly.
You need to use string functions, starting with concat(...) and
str(Char_code)
Alain
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 08.05.10 22:29, Alain wrote:
>> Sorry for the incovinience. So, can I do that in the built-in editor
>> of the
>> POV-Ray? And, if yes, how. I added the neccessary statement to the
>> global_settings, but it didn't help.
>
> The builtin editor presently don't handle extended ASCII nor unicode
> properly.
The POV-Ray for Windows editor does handle extended ASCII just fine, it is
just that POV-Ray will ignore them.
> You need to use string functions, starting with concat(...) and
> str(Char_code)
Hmm, did you actually *read* my post? - He can use the backslash-u construct
to encode Unicode characters with any editor, including the internal editor.
Thorsten, POV-Team
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
On 08.05.10 21:31, Silverlight2009 wrote:
> Sorry for the inconvenience. So, can I do that in the built-in editor of the
> POV-Ray? And, if yes, how. I added the necessary statement to the
> global_settings, but it didn't help.
The internal POV-Ray for Windows editor (currently) does not support UTF-8
encoding as far as I know. You can use the backslash-u encoding with it
though. It requires looking up the correct encoding in one of the many
Unicode tables you can find with Google.
If you want full Unicode support naively, I think newer versions of WordPad
or even Notepad as standard Windows editors support optional UTF-8 output.
Still, remember that we do not support surrogates (supplementary characters)
for the POV-Ray "text" object.
Thorsten, POV-Team
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |