|
#11
|
||||
|
||||
|
[Files]
Source: Font.ttf; DestDir: {tmp}; Flags: dontcopy; [Code] #ifdef UNICODE #define A "W" #else #define A "A" #endif const FR_PRIVATE = $10; function AddFontResource(lpszFilename:string;fl:dword;pdv:i nteger): Integer; external 'AddFontResourceEx{#A}@gdi32.dll stdcall'; function RemoveFontResource(lpszFilename:string;fl:dword;pd v:integer): BOOL; external 'RemoveFontResourceEx{#A}@gdi32.dll stdcall'; procedure InitializeWizard; begin ExtractTemporaryFile('Font.ttf'); AddFontResource(ExpandConstant('{tmp}\Font.ttf'), FR_PRIVATE, 0); end; procedure DeinitializeSetup; begin RemoveFontResource(ExpandConstant('{tmp}\Font.ttf' ), FR_PRIVATE, 0); end; __________________________________________________ ______________ Glad could help with font. Work on ANSI and UNICODE Sorry for bad english. Last edited by Razor12911; 19-01-2013 at 13:56. |
| Thread Tools | Search this Thread |
| Display Modes | |
|
|
Similar Threads
|
||||
| Thread | Thread Starter | Forum | Replies | Last Post |
| INNO TROUBLESHOOT - Tutorials and Answers about INNO Setup | REV0 | Conversion Tutorials | 129 | 21-05-2021 05:51 |
| INNO TUTORIAL - Using Unicode and ANSI Versions of INNO Setup | REV0 | Conversion Tutorials | 51 | 26-03-2015 06:57 |
| Frequently Asked Questions | Joe Forster/STA | PC Games - Frequently Asked Questions | 0 | 29-11-2005 09:48 |