HarvestR
02-13-2004, 12:11 PM
As pointed out by Optikal, this snippet of code warrented posting in the Code Library.
Here is my (cleaned and commented) code for adding a Font to Windows so i can be used immediately by all applications.
In the ZIP :
- Add_Fonts.vbp and Add_Fonts.vbw (project files)
- modAddFont.bas (the AddFont function fully documented)
- Form1.frm (it just shows how to call the function)
- bladrmf_.ttf (a sample font to let you try the AddFont() function)
Sorry for possible mistakes in the comments, English isn't my natural language.
Friendly,
HarvestR
Here is my (cleaned and commented) code for adding a Font to Windows so i can be used immediately by all applications.
In the ZIP :
- Add_Fonts.vbp and Add_Fonts.vbw (project files)
- modAddFont.bas (the AddFont function fully documented)
- Form1.frm (it just shows how to call the function)
- bladrmf_.ttf (a sample font to let you try the AddFont() function)
Sorry for possible mistakes in the comments, English isn't my natural language.
Friendly,
HarvestR