Solved

How do I view fonts from another disk?

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

Free Tool: Path Explorer

An intuitive utility to help find the CSS path to UI elements on a webpage. These paths are used frequently in a variety of front-end development and QA automation tasks.

One of a set of tools we're offering as a way of saying thank you for being a part of the community.

Question has a verified solution.

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

Suggested Solutions

Title # Comments Views Activity
String manipulation in Visual Basic 7 73
vb6 connector to mongodb 2 123
Access Object Property from VBA Module in Excel 2010 2 37
VB 6 error 5 in windows 10 but not in XP 7 64
Have you ever wanted to restrict the users input in a textbox to numbers, and while doing that make sure that they can't 'cheat' by pasting in non-numeric text? Of course you can do that with code you write yourself but it's tedious and error-prone …
Enums (shorthand for ‘enumerations’) are not often used by programmers but they can be quite valuable when they are.  What are they? An Enum is just a type of variable like a string or an Integer, but in this case one that you create that contains…
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…
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…

820 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