Solved

How do I view fonts from another disk?

Posted on 1998-11-01
3
151 Views
Last Modified: 2013-12-03
This is for a font viewer.

We all know the routine to add the printer fonts to a listbox, but these are the fonts from the *system*.
How do I do the same for fonts from another disk, optical, zip or CDRom?
Is there a simple way, or do I use API?

Thanks very much.
0
Comment
Question by:dvbasic
  • 2
3 Comments
 
LVL 2

Accepted Solution

by:
shchuka earned 150 total points
ID: 1442780
I believe, you'll need to use API:

1. Register fonts using AddFontResource() API
2. Then using the standard ways of listing fonts

Hope, this helps,
-Aleks.
0
 

Author Comment

by:dvbasic
ID: 1442781
It is a good idea, but I would like to avoid registering the fonts.
Or can I de-register them after I exit my program? <---

I was thinking of using the CreateScalableFontResource () and read the fontnames from
"FONTRES:", but this only works with TrueTypes. Not with Postscript fonts, or ordinairy
fon files...
0
 

Author Comment

by:dvbasic
ID: 1442782
Is it possible to show me a sample code on how to register and un-register fonts?
0

Featured Post

Find Ransomware Secrets With All-Source Analysis

Ransomware has become a major concern for organizations; its prevalence has grown due to past successes achieved by threat actors. While each ransomware variant is different, we’ve seen some common tactics and trends used among the authors of the malware.

Join & Write a Comment

Introduction I needed to skip over some file processing within a For...Next loop in some old production code and wished that VB (classic) had a statement that would drop down to the end of the current iteration, bypassing the statements that were c…
I was working on a PowerPoint add-in the other day and a client asked me "can you implement a feature which processes a chart when it's pasted into a slide from another deck?". It got me wondering how to hook into built-in ribbon events in Office.
As developers, we are not limited to the functions provided by the VBA language. In addition, we can call the functions that are part of the Windows operating system. These functions are part of the Windows API (Application Programming Interface). U…
Get people started with the process of using Access VBA to control Outlook using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Microsoft Outlook. Using automation, an Access applic…

707 members asked questions and received personalized solutions in the past 7 days.

Join the community of 500,000 technology professionals and ask your questions.

Join & Ask a Question

Need Help in Real-Time?

Connect with top rated Experts

13 Experts available now in Live!

Get 1:1 Help Now