🚀 go-pugleaf

RetroBBS NetNews Server

Inspired by RockSolid Light RIP Retro Guy

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

Re: Adding and using Fonts as resource to exe

#12724
From: Remy Lebeau (TeamB)
Date: Wed, 19 Nov 2003 05:12
19 lines
1641 bytes
"Peter Rees" <peter@NOOSPAMMrees.co.nz> wrote in message
news:3fbae8af$1@newsgroups.borland.com...

> 2. How to add the fonts to my resource file ( .rc )

Simply add the file as an RCDATA entry, aka raw data.

> 3. How to access the front at runtime.

Look at FindResource(), LoadResource(), LockResource(), and
SizeOfResource().  Once you have a pointer to the resource data and its
size, you can save the data to a file, and then use AddFontResource() to
install it into the OS's font table so that your application can actually
use it.  When you are done with it, call RemoveFontResource() and delete the
file.


Gambit
Technical Details
Message-ID: <3fbafacf$1@newsgroups.borland.com>
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-han1.dfn.de!news-fra1.dfn.de!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail
References: <3fbae8af$1@newsgroups.borland.com>

Show Full Headers
Complete Article Headers
X-Google-Language: ENGLISH,ASCII-7-bit
X-Google-Thread: 10cc67,1bbd29b1eafba5e4
X-Google-Attributes: gid10cc67,public
X-Google-ArrivalTime: 2003-11-18 21:09:11 PST
From: "Remy Lebeau \(TeamB\)" <gambit47.no.spam@no.spam.yahoo.com>
Newsgroups: borland.public.cppbuilder.nativeapi
References: <3fbae8af$1@newsgroups.borland.com>
Subject: Re: Adding and using Fonts as resource to exe 
Date: Tue, 18 Nov 2003 21:12:14 -0800
Lines: 21
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: 67.22.137.149
Message-ID: <3fbafacf$1@newsgroups.borland.com>
X-Trace: newsgroups.borland.com 1069218511 67.22.137.149 (18 Nov 2003 21:08:31 -0700)
Path: arc1-ca.pugleaf.net!archiver1.google.com!news2.google.com!news.maxwell.syr.edu!news-han1.dfn.de!news-fra1.dfn.de!npeer.de.kpn-eurorings.net!newsfeed00.sul.t-online.de!newsfeed01.sul.t-online.de!t-online.de!newsgroups.borland.com!not-for-mail