POV-Ray : Newsgroups : povray.binaries.utilities : Centred text utility Server Time
2 May 2024 23:22:00 EDT (-0400)
  Centred text utility (Message 1 to 3 of 3)  
From: PoD
Subject: Centred text utility
Date: 1 Jun 1998 15:14:35
Message: <3572FD9B.72E7@merlin.net.au>
I've just done a first draft of a utility to make centred text objects
for POV-Ray using Windows TrueType functions to get the measurements.
The problem is I can't figure out how to make an HFONT object in windows
from a font file or how to find out which file is represented by an
HFONT object, so this program only does Arial which comes with windows.
If someone can tell me how to solve these problems, I'll start on a
version that allows multiple fonts.

See http://www.merlin.net.au/~pod/ for a sample.


Post a reply to this message


Attachments:
Download 'tt-pov.exe.dat' (10 KB) Download 'us-ascii' (2 KB) Download 'us-ascii' (1 KB)

From: Jon Berndt
Subject: Re: Centred text utility
Date: 11 Jun 1998 16:55:28
Message: <01bd957b$4047b840$639728a1@1733773.unitedspacealliance.com>
You can use OWL (Borland/Inprise) to load any font. I have considered such
a programming project before, but I am glad you did it already. If I can
find more specific information when I get home I'll let you know. Or, we
could collaborate? I may take your source code provided in your message and
put it into Borland C++ Builder. That would make it much easier to add
features.

jon

PoD <pod### [at] merlinnetau> wrote in article <357### [at] merlinnetau>...
> I've just done a first draft of a utility to make centred text objects
> for POV-Ray using Windows TrueType functions to get the measurements.
> The problem is I can't figure out how to make an HFONT object in windows
> from a font file or how to find out which file is represented by an
> HFONT object, so this program only does Arial which comes with windows.
> If someone can tell me how to solve these problems, I'll start on a
> version that allows multiple fonts.


Post a reply to this message

From: PoD
Subject: Re: Centred text utility
Date: 17 Jun 1998 13:43:30
Message: <35880042.6C34@merlin.net.au>
Jon Berndt wrote:
> 
> You can use OWL (Borland/Inprise) to load any font. I have considered such
> a programming project before, but I am glad you did it already. If I can
> find more specific information when I get home I'll let you know. Or, we
> could collaborate? I may take your source code provided in your message and
> put it into Borland C++ Builder. That would make it much easier to add
> features.
> 
> jon
> 
> PoD <pod### [at] merlinnetau> wrote in article <357### [at] merlinnetau>...
> > I've just done a first draft of a utility to make centred text objects
> > for POV-Ray using Windows TrueType functions to get the measurements.
> > The problem is I can't figure out how to make an HFONT object in windows
> > from a font file or how to find out which file is represented by an
> > HFONT object, so this program only does Arial which comes with windows.
> > If someone can tell me how to solve these problems, I'll start on a
> > version that allows multiple fonts.

I'm using BC5.0 ( and can't afford to upgrade :( ). How do you load a
font in OWL?
I tried to make the source as portable as I could given that it needs
Windows to run, but I s'pose it doesn't really matter what it's written
in. Let me know how you get on with your C++ version.

Cheers, PoD.


Post a reply to this message

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