Solved

How do I view fonts from another disk?

Posted on 1998-11-01
3
155 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
[X]
Welcome to Experts Exchange

Add your voice to the tech community where 5M+ people just like you are talking about what matters.

  • Help others & share knowledge
  • Earn cash & points
  • Learn & ask questions
  • 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

Technology Partners: We Want Your Opinion!

We value your feedback.

Take our survey and automatically be enter to win anyone of the following:
Yeti Cooler, Amazon eGift Card, and Movie eGift Card!

Question has a verified solution.

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

Introduction While answering a recent question (http://www.experts-exchange.com/Q_27402310.html) in the VB classic zone, I wrote some VB code in the (Office) VBA environment, rather than fire up my older PC.  I didn't post completely correct code o…
Most everyone who has done any programming in VB6 knows that you can do something in code like Debug.Print MyVar and that when the program runs from the IDE, the value of MyVar will be displayed in the Immediate Window. Less well known is Debug.Asse…
This lesson covers basic error handling code in Microsoft Excel using VBA. This is the first lesson in a 3-part series that uses code to loop through an Excel spreadsheet in VBA and then fix errors, taking advantage of error handling code. This l…
Excel styles will make formatting consistent and let you apply and change formatting faster. In this tutorial, you'll learn how to use Excel's built-in styles, how to modify styles, and how to create your own. You'll also learn how to use your custo…
Suggested Courses
Course of the Month11 days, 16 hours left to enroll

623 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