|
-
Jan 9th, 2002, 05:34 AM
#1
Thread Starter
New Member
Fonts
I am using a specific font in a program, and am stuck as to how I can easily use it on another computer without the font already installed. Can anyone tell me how to do so, preferably without telling me to make each label into a graphic. 
The two thoughts I have had are as follows:
A) Embed the font I am using into the program
B) Include the font in the zip pack, and include a statement in the Form_Load section that searches if the computer has the font, and if not, copies it from the AppPath to any directories named "font" on the computer.
Any help would be greatly appreciated!!!
Sincerely,
VitaeThief
-
Jan 9th, 2002, 06:50 AM
#2
Hyperactive Member
I would do the following. Include the font as a binary file in your resource file. On the computer (like you did) check if the font exists already in the fonts dir. If not copy the font from resource to font folder.
Use the following functions.
LoadResData
GetWindowsFolder
I believe you can use the font immediatly after copieing, you don't have to register it or something like an ocx.
-
Jan 9th, 2002, 07:09 AM
#3
Thread Starter
New Member
So, how exactly do I encode the font as a binary file? And also, I can't work out the syntax for either of the commands you suggested.
LoadResData
GetWindowsFolder
Please continue to help!
-
Jan 9th, 2002, 09:16 AM
#4
Hyperactive Member
With the reseditor you can simply add the file. you should load the addin. Loadresdata is an implemented vb function, if you can't find it with object browser then it probably comes with the reseditor. Getwindowsfolder is an API function you can load with api-viewer.
Posting Permissions
- You may not post new threads
- You may not post replies
- You may not post attachments
- You may not edit your posts
-
Forum Rules
|
Click Here to Expand Forum to Full Width
|