Solved

How do I view fonts from another disk?

Posted on 1998-11-01
3
152 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

NAS Cloud Backup Strategies

This article explains backup scenarios when using network storage. We review the so-called “3-2-1 strategy” and summarize the methods you can use to send NAS data to the cloud

Question has a verified solution.

If you are experiencing a similar issue, please ask a related question

Suggested Solutions

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…
Background What I'm presenting in this article is the result of 2 conditions in my work area: We have a SQL Server production environment but no development or test environment; andWe have an MS Access front end using tables in SQL Server but we a…
Get people started with the process of using Access VBA to control Excel using automation, Microsoft Access can control other applications. An example is the ability to programmatically talk to Excel. Using automation, an Access application can laun…
Get people started with the utilization of class modules. Class modules can be a powerful tool in Microsoft Access. They allow you to create self-contained objects that encapsulate functionality. They can easily hide the complexity of a process from…

770 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