|
|
|
|
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Hi all,
When rendering some text using a True Type Font called Metrostyle in Povray
3.5, it renders strange characters (i.e. "Hello" becomes "$66#")
My code snippet is below
Any help greatly appreciated
Reuben
reu### [at] pearsecouk
============================
#include "colors.inc"
background{LightSteelBlue}
camera {
angle 60
location <0,0,-10>
look_at <0,0,0>
}
light_source { <20, 50, -100> color White}
light_source { <0, 0, 0> color White}
// Stick text in middle of image
//-----------------------------
text { ttf "metr75.ttf" "Hello" 0.3, 0
pigment { GreenCopper }
finish { reflection 0.1 specular 1 }
translate -3*x
translate -0.2*y
translate -1.5 *z
scale 0.8*y
scale 0.8*x
no_shadow
}
//-----------------------------
==========================
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
"Reuben Pearse" <reu### [at] pearsecouk> wrote in message
news:3f44f1b1$1@news.povray.org...
> Hi all,
>
> When rendering some text using a True Type Font called Metrostyle in
Povray
> 3.5, it renders strange characters (i.e. "Hello" becomes "$66#")
>
If TTF were HTML, then Pov would be Opera - it's fairly unforgiving of TTF
file-format-errors.
Sorry for not offering anything more helpful, but your post was looking
lonely.
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
Wasn't it Reuben Pearse who wrote:
>Hi all,
>
>When rendering some text using a True Type Font called Metrostyle in Povray
>3.5, it renders strange characters (i.e. "Hello" becomes "$66#")
I don't have metr75.ttf, but I do have Metrostyle Extended Font
metr53.ttf which exhibits the same problem.
I think that "Extended" bit is to do with the fact that it's a unicode
font, and you have to tell POVRay to use a unicode charset instead of
ascii when using such a font. Like this:
global_settings {
charset utf8
}
--
Mike Williams
Gentleman of Leisure
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
| |
|
|
That's done the trick! You are a superstar!
Thanks
"Mike Williams" <mik### [at] econymdemoncouk> wrote in message
news:lURFLCA8ZSR$EwJV@econym.demon.co.uk...
> Wasn't it Reuben Pearse who wrote:
> >Hi all,
> >
> >When rendering some text using a True Type Font called Metrostyle in
Povray
> >3.5, it renders strange characters (i.e. "Hello" becomes "$66#")
>
> I don't have metr75.ttf, but I do have Metrostyle Extended Font
> metr53.ttf which exhibits the same problem.
>
> I think that "Extended" bit is to do with the fact that it's a unicode
> font, and you have to tell POVRay to use a unicode charset instead of
> ascii when using such a font. Like this:
>
> global_settings {
> charset utf8
> }
>
> --
> Mike Williams
> Gentleman of Leisure
Post a reply to this message
|
|
| |
| |
|
|
|
|
| |
|
|