View Full Version : Font Registration in Autoplay Media Studio
03-11-2004, 06:33 AM
Hi everyone, I'm making a Software DVD menu and i need to register some fonts temporarily while the user is viewing the DVD. I've gone through the help files and read some suggestions here in the forum, but i'm still stuck. It doesn't work. When the DVD plays, the font that i need, doesn't show leaving blank spaces.
03-11-2004, 08:12 AM
In the menu Project\Actions type in the following:
fonts_dir = Shell.GetFolder(SHF_FONTS); -- Gets the path to the user's Font directory.
System.RegisterFont(fonts_dir.."\\SWZ911XC.TTF", "Swiss911 XCm BT", true);
So, this assumes that you have a directory "Fonts" in your Autoplay project with the font "SWZ911XC.TTF".
This will do it, I also had the same problem. The solution was to copy the font prior to execute the "RegisterFont".
03-11-2004, 11:20 AM
Thanks for the help!!!!!!!!!!
Actually my problem was that i didn't know where to include the code that would register the font. I would include it in the on start of the splash screen of the project, not the on start of the project itself.
It seems to work ok now, except that i set the font to change colors when hovered over, and it works except that the last couple of letters don't change... any idea why?
Powered by vBulletin™ Version 4.0.6 Copyright © 2016 vBulletin Solutions, Inc. All rights reserved.