POV-Ray : Newsgroups : povray.binaries.utilities : Centred text utility : Re: Centred text utility Server Time
17 May 2024 19:11:07 EDT (-0400)
  Re: Centred text utility  
From: PoD
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.