here's one way:
1. use CW to compile and link your code and resources (minus the font)
2. then run a batch file to post-link the font into the .PRC file
the batch file would take the .ptf file and rename it so the first four
characters are the type (eg, Tbmp), the next four are the resource id in hex
(eg, 0380), and the extension is .BIN. then call RCPALM.EXE to link the
.BIN file into the existing .PRC file.
RCPALM is available at www.roadcoders.com/rcpalm.exe
run it with no parameters to get the usage info.
-----Original Message-----
From: [EMAIL PROTECTED]
<[EMAIL PROTECTED]>
To: [EMAIL PROTECTED] <[EMAIL PROTECTED]>
Date: Monday, March 01, 1999 4:07 PM
Subject: add ptf to a resource on windows?
>Has anyone actually created a custom font using the font editor and added
it on
>windows??
>
>I've asked Sergey (the font editor owner) but he doesn't work on CW. My
guess
>is that I need
>to create a resource description file (.r) compile it using CW's Rez
compiler,
>but I have no idea
>how to set up that .r file.
>
>I've got a binary .ptf file that I need to include (somehow as a resource)
>I expect my .r file will need to look somthing like this...but I'm not sure
what
>it should be.
>
>Type 'Font' {
> point; //????
>};
>
>Resource 'Font' (1000) {
>Include "myfont.pft";
>}
>
>If someone has created this .r file and used it, maybe you could drop a
copy on
>here so everyone would know how to do this.
>
>Thanks
>
>Mike
>
>
>