Go Back   FileForums > Game Backup > PC Games > PC Games - CD/DVD Conversions > Conversion Tutorials
Register FAQ Community Calendar Today's Posts Search

 
 
Thread Tools Search this Thread Display Modes
Prev Previous Post   Next Post Next
  #12  
Old 04-09-2014, 17:00
gatosky1620's Avatar
gatosky1620 gatosky1620 is offline
Registered User
 
Join Date: Oct 2011
Location: Perú
Posts: 287
Thanks: 13
Thanked 966 Times in 131 Posts
gatosky1620 is on a distinguished road
in the witcher+isdone how agregate a font.ttf file, because i use
this code but is not reconized
[Files]
Source: "MyFont.ttf"; Flags: dontcopy

[Code]
#ifdef UNICODE
#define AW "W"
#else
#define AW "A"
#endif
const
FR_PRIVATE = $10;
FR_NOT_ENUM = $20;

function AddFontResourceEx(lpszFilename: string;
fl: DWORD; pdv: Cardinal): Integer;
external 'AddFontResourceEx{#AW}@gdi32.dll stdcall';
function RemoveFontResourceEx(lpFileName: string;
fl: DWORD; pdv: Cardinal): BOOL;
external 'RemoveFontResourceEx{#AW}@gdi32.dll stdcall';

var
FontFlags: DWORD;

[Code]
procedure InitializeWizard;
var
FontName: string;
begin
// extract the font file to the temporary folder
ExtractTemporaryFile('MyFont.ttf');
// this combination specifies the reservation of this font for use
// in the setup process and that this font cannot be enumerated
FontFlags := FR_PRIVATE or FR_NOT_ENUM;
// add the font resource
if AddFontResourceEx(ExpandConstant('{tmp}\MyFont.ttf '),
FontFlags, 0) <> 0 then
begin
// note, that this is the name of the font, which doesn't have
// to match to the font file name
FontName := 'My Font Name';
// the global setting of the WizardForm.Font property causes many
// of its child controls to inherit this font; except those listed
// below; their default font has changed and they lost the ability
// to inherit the font from their parent so we must do it manually
WizardForm.Font.Name := FontName;
WizardForm.WelcomeLabel1.Font.Name := FontName;
WizardForm.PageNameLabel.Font.Name := FontName;
WizardForm.FinishedHeadingLabel.Font.Name := FontName;
end;
end;

procedure DeinitializeSetup;
begin
// remove the font resource
RemoveFontResourceEx(ExpandConstant('{tmp}\MyFont. ttf'),
FontFlags, 0);
end;

Whit witcher + isdone why the difference





How i do this with thewitcher+ISDone

a. Times and file description above progress bar
b. Porcent label the center of the progress bar


Last edited by pakrat2k2; 04-09-2014 at 22:22.
Reply With Quote
 


Posting Rules
You may not post new threads
You may not post replies
You may not post attachments
You may not edit your posts

BB code is On
Smilies are On
[IMG] code is On
HTML code is Off

Forum Jump

Similar Threads
Thread Thread Starter Forum Replies Last Post
The Only Sacred Plus English No-cd Fixed Exe Thread! Do Not Open New Ones... n1ghtmare PC Games 155 14-11-2006 09:04
Official Sacred Crack Thread. Do not make other threads about this ! Ryynis PC Games 49 03-07-2006 06:35
The Godfather, Game -- Unusual Error dvdmations PC Games 4 05-05-2006 04:04
ClonyXXL v2.0.0.6 unaficial english version..quick question inside coffin filler PC Games 5 19-01-2003 17:01



All times are GMT -7. The time now is 01:34.


Powered by vBulletin® Version 3.8.11
Copyright ©2000 - 2026, vBulletin Solutions Inc.
FileForums @ https://fileforums.com