Still celebrating National IT Professionals Day with 3 months of free Premium Membership. Use Code ITDAY17

x
?
Solved

How do I view fonts from another disk?

Posted on 1998-11-01
3
Medium Priority
?
157 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 600 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

Concerto's Cloud Advisory Services

Want to avoid the missteps to gaining all the benefits of the cloud? Learn more about the different assessment options from our Cloud Advisory team.

Question has a verified solution.

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

The debugging module of the VB 6 IDE can be accessed by way of the Debug menu item. That menu item can normally be found in the IDE's main menu line as shown in this picture.   There is also a companion Debug Toolbar that looks like the followin…
When trying to find the cause of a problem in VBA or VB6 it's often valuable to know what procedures were executed prior to the error. You can use the Call Stack for that but it is often inadequate because it may show procedures you aren't intereste…
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…
If you’ve ever visited a web page and noticed a cool font that you really liked the look of, but couldn’t figure out which font it was so that you could use it for your own work, then this video is for you! In this Micro Tutorial, you'll learn yo…
Suggested Courses

705 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