🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

Article View: borland.public.cppbuilder.nativeapi
Article #12723

Adding and using Fonts as resource to exe

#12723
From: Peter Rees
Date: Wed, 19 Nov 2003 03:51
15 lines
1333 bytes
I want to add a fixed font (with various sizes) to my project as a resource
so that I can load them at run time. I am using pure WINAPI not VCL. I have
looked up Google but have not found a satisfactory answer. Can anyone help
point me in the correct direction - a book, resource tool etc..

What I need to know is;

1. How to create the font - i.e. what is a good tool to use
2. How to add the fonts to my resource file ( .rc )
3. How to access the front at runtime.

Thanks

Peter
Technical Details
Message-ID: <3fbae8af$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,1bbd29b1eafba5e4,start
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-18 20:09:20 PST
From: "Peter Rees" <peter@NOOSPAMMrees.co.nz>
Newsgroups: borland.public.cppbuilder.nativeapi
Subject: Adding and using Fonts as resource to exe 
Date: Wed, 19 Nov 2003 16:51:38 +1300
Lines: 17
X-Priority: 3
X-MSMail-Priority: Normal
X-Newsreader: Microsoft Outlook Express 6.00.2800.1158
X-MimeOLE: Produced By Microsoft MimeOLE V6.00.2800.1165
NNTP-Posting-Host: 219.88.101.36
Message-ID: <3fbae8af$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069213871 219.88.101.36 (18 Nov 2003 19:51:11 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!fu-berlin.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail