Skip to content

Commit 4104973

Browse files
committed
Prepare for hack v3.0. Fix for issue #11 (hopefully)
1 parent b9b306d commit 4104973

File tree

8 files changed

+69
-81
lines changed

8 files changed

+69
-81
lines changed

LICENSE-Hack.txt

Lines changed: 19 additions & 38 deletions
Original file line numberDiff line numberDiff line change
@@ -1,49 +1,30 @@
1-
## License
1+
The work in the Hack project is Copyright 2017 Source Foundry Authors and licensed under the MIT License
22

3-
Hack Copyright 2015, Christopher Simpkins with Reserved Font Name "Hack".
3+
The work in the DejaVu project was committed to the public domain.
44

55
Bitstream Vera Sans Mono Copyright 2003 Bitstream Inc. and licensed under the Bitstream Vera License with Reserved Font Names "Bitstream" and "Vera"
66

7-
DejaVu modifications of the original Bitstream Vera Sans Mono typeface have been committed to the public domain.
7+
### MIT License
88

9+
Copyright (c) 2017 Source Foundry Authors
910

11+
Permission is hereby granted, free of charge, to any person obtaining a copy
12+
of this software and associated documentation files (the "Software"), to deal
13+
in the Software without restriction, including without limitation the rights
14+
to use, copy, modify, merge, publish, distribute, sublicense, and/or sell
15+
copies of the Software, and to permit persons to whom the Software is
16+
furnished to do so, subject to the following conditions:
1017

11-
This Font Software is licensed under the Hack Open Font License v2.0 and the Bitstream Vera License.
12-
13-
These licenses are copied below.
14-
15-
16-
### Hack Open Font License v2.0
17-
18-
(Version 1.0 - 06 September 2015)
19-
20-
(Version 2.0 - 27 September 2015)
21-
22-
Copyright 2015 by Christopher Simpkins. All Rights Reserved.
23-
24-
DEFINITIONS
25-
26-
"Author" refers to any designer, engineer, programmer, technical writer or other person who contributed to the Font Software.
27-
28-
PERMISSION AND CONDITIONS
29-
30-
Permission is hereby granted, free of charge, to any person obtaining a copy of the fonts accompanying this license ("Fonts") and associated source code, documentation, and binary files (the "Font Software"), to reproduce and distribute the modifications to the Bitstream Vera Font Software, including without limitation the rights to use, study, copy, merge, embed, modify, redistribute, and/or sell modified or unmodified copies of the Font Software, and to permit persons to whom the Font Software is furnished to do so, subject to the following conditions:
31-
32-
(1) The above copyright notice and this permission notice shall be included in all modified and unmodified copies of the Font Software typefaces. These notices can be included either as stand-alone text files, human-readable headers or in the appropriate machine-readable metadata fields within text or binary files as long as those fields can be easily viewed by the user.
33-
34-
(2) The Font Software may be modified, altered, or added to, and in particular the designs of glyphs or characters in the Fonts may be modified and additional glyphs or characters may be added to the Fonts, only if the fonts are renamed to names not containing the word "Hack".
35-
36-
(3) Neither the Font Software nor any of its individual components, in original or modified versions, may be sold by itself.
37-
38-
TERMINATION
39-
40-
This license becomes null and void if any of the above conditions are not met.
41-
42-
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM OTHER DEALINGS IN THE FONT SOFTWARE.
43-
44-
Except as contained in this notice, the names of Christopher Simpkins and the Author(s) of the Font Software shall not be used to promote, endorse or advertise any modified version, except to acknowledge the contribution(s) of Christopher Simpkins and the Author(s) or with their explicit written permission. For further information, contact: chris at sourcefoundry dot org.
45-
18+
The above copyright notice and this permission notice shall be included in all
19+
copies or substantial portions of the Software.
4620

21+
THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND, EXPRESS OR
22+
IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF MERCHANTABILITY,
23+
FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT. IN NO EVENT SHALL THE
24+
AUTHORS OR COPYRIGHT HOLDERS BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER
25+
LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING FROM,
26+
OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE
27+
SOFTWARE.
4728

4829
### BITSTREAM VERA LICENSE
4930

fonts/Hack_v3_000/Hack-Bold.ttf

310 KB
Binary file not shown.
315 KB
Binary file not shown.

fonts/Hack_v3_000/Hack-Italic.ttf

307 KB
Binary file not shown.

fonts/Hack_v3_000/Hack-Regular.ttf

300 KB
Binary file not shown.

src/Data.ini

Lines changed: 3 additions & 3 deletions
Original file line numberDiff line numberDiff line change
@@ -10,12 +10,12 @@ UniqueID=HackWindowsInstaller
1010

1111
[Version]
1212
;Version of the Setup (*NOT* for the Font release).
13-
Version=1.3.0
13+
Version=1.4.0
1414
;This value can be overwritten by an CI tool during build like this (param EXTERNAL_VERSION):
1515
;iscc.exe /DEXTERNAL_VERSION=%APPVEYOR_BUILD_VERSION% src/YourScriptFile.iss
1616

1717
;Version of FONT release
18-
FontVersion=2.020
18+
FontVersion=3.000
1919
;This value can be overwritten by an CI tool during build like this (param EXTERNAL_FONT_VERSION):
2020
;iscc.exe /DEXTERNAL_FONT_VERSION=%MY_FONT_BUILD_VERSION% src/YourScriptFile.iss
2121

@@ -69,7 +69,7 @@ LicenseFile=license*.*
6969
;This section defines which fonts should be installed.
7070
[InstallFonts]
7171
;In which sub folder are the font files located (as seen from the base path).
72-
SourceFolder=fonts\Hack_v2_020
72+
SourceFolder=fonts\Hack_v3_000
7373

7474
;How many fonts are in this section we should install.
7575
;This must be number of the last File.X and Name.X entry

src/HackWindowsInstaller.iss

Lines changed: 16 additions & 6 deletions
Original file line numberDiff line numberDiff line change
@@ -256,7 +256,7 @@
256256

257257
//--------------------------------------------------------
258258
//Version of this installer script. Please do not change.
259-
#define public ScriptVersion '2.01'
259+
#define public ScriptVersion '2.02'
260260
//--------------------------------------------------------
261261

262262

@@ -990,11 +990,21 @@ begin
990990
FontCacheService_Stopped:=false;
991991
end;
992992
993-
customProgressPage.SetText('Starting service {#FontCache30Service}...','');
994-
if FontCache30Service_Stopped=true then begin
995-
StartNTService2('{#FontCache30Service}');
996-
FontCache30Service_Stopped:=false;
997-
end;
993+
//We got several error reports that this steps hangs the installer if certain programs are running:
994+
//
995+
// "Installer stuck at starting fontcache on windows 10 Version 10.0.15063 Build 15063"
996+
// https://github.com/source-foundry/Hack-windows-installer/issues/11
997+
//
998+
//At least for the one machine I was able to reproduce this, starting the .NET Fontache caused the installer to hang.
999+
//Not starting the service after the font install had NO negative impact on the program that seemed to cause this (MS Word).
1000+
//Therefore, we will NOT restart this service to avoid issue #11.
1001+
1002+
//customProgressPage.SetText('Starting service {#FontCache30Service}...','');
1003+
//if FontCache30Service_Stopped=true then begin
1004+
// StartNTService2('{#FontCache30Service}');
1005+
// FontCache30Service_Stopped:=false;
1006+
//end;
1007+
9981008
9991009
//Inform windows that fonts have changed (just to be sure we do this always)
10001010
//See https://msdn.microsoft.com/en-us/library/windows/desktop/dd183326%28v=vs.85%29.aspx

src/zz_Preprocessor_Result.iss

Lines changed: 31 additions & 34 deletions
Original file line numberDiff line numberDiff line change
@@ -47,26 +47,26 @@
4747
; INI position #1
4848
; Hack Bold
4949
; Hack-Bold.ttf
50-
; C:\dev\git\Hack-windows-installer\fonts\Hack_v2_020\Hack-Bold.ttf
51-
; a7bb6faacd609145b55ed15ca238755544c03af5
50+
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Bold.ttf
51+
; 12022be7e047f0ec26517084d5fc6d444a2511ac
5252

5353
; INI position #2
5454
; Hack
5555
; Hack-Regular.ttf
56-
; C:\dev\git\Hack-windows-installer\fonts\Hack_v2_020\Hack-Regular.ttf
57-
; 664cfe2a64de1486c0ace8073ceeb6d9281e8b78
56+
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Regular.ttf
57+
; 8f7271c506e5fc5b6ad69ec00845f10d0a4ee146
5858

5959
; INI position #3
6060
; Hack Bold Italic
6161
; Hack-BoldItalic.ttf
62-
; C:\dev\git\Hack-windows-installer\fonts\Hack_v2_020\Hack-BoldItalic.ttf
63-
; c428004a2fe3570450c6d03442052b1a9989c58b
62+
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-BoldItalic.ttf
63+
; e41d5b385511295d1f771f2c647e9151dbf72012
6464

6565
; INI position #4
6666
; Hack Italic
6767
; Hack-Italic.ttf
68-
; C:\dev\git\Hack-windows-installer\fonts\Hack_v2_020\Hack-Italic.ttf
69-
; efdae4b94858b98eab6dcf2cb8e3cc3d28263cc2
68+
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Italic.ttf
69+
; 593a16309b9fe89ce600ef688cb53d5747054ab3
7070

7171

7272

@@ -111,10 +111,10 @@
111111
;Because the sub expects a string for each item, an error from ISPP about "Actual datatype not declared type"
112112
;when compiling the setup indicates that total_fonts is set to a wrong value
113113

114-
; C:\dev\git\Hack-windows-installer\fonts\Hack_v2_020\Hack-Bold.ttf\Hack-Bold.ttf - "Hack Bold" - a7bb6faacd609145b55ed15ca238755544c03af5
115-
; C:\dev\git\Hack-windows-installer\fonts\Hack_v2_020\Hack-Regular.ttf\Hack-Regular.ttf - "Hack" - 664cfe2a64de1486c0ace8073ceeb6d9281e8b78
116-
; C:\dev\git\Hack-windows-installer\fonts\Hack_v2_020\Hack-BoldItalic.ttf\Hack-BoldItalic.ttf - "Hack Bold Italic" - c428004a2fe3570450c6d03442052b1a9989c58b
117-
; C:\dev\git\Hack-windows-installer\fonts\Hack_v2_020\Hack-Italic.ttf\Hack-Italic.ttf - "Hack Italic" - efdae4b94858b98eab6dcf2cb8e3cc3d28263cc2
114+
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Bold.ttf\Hack-Bold.ttf - "Hack Bold" - 12022be7e047f0ec26517084d5fc6d444a2511ac
115+
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Regular.ttf\Hack-Regular.ttf - "Hack" - 8f7271c506e5fc5b6ad69ec00845f10d0a4ee146
116+
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-BoldItalic.ttf\Hack-BoldItalic.ttf - "Hack Bold Italic" - e41d5b385511295d1f771f2c647e9151dbf72012
117+
; C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Italic.ttf\Hack-Italic.ttf - "Hack Italic" - 593a16309b9fe89ce600ef688cb53d5747054ab3
118118

119119
;---END---
120120

@@ -136,8 +136,8 @@ SetupMutex=HackWindowsInstaller_Mutex
136136

137137
AppName=Hack Windows Installer
138138

139-
AppVersion=1.3.0
140-
VersionInfoVersion=1.3.0
139+
AppVersion=1.4.0
140+
VersionInfoVersion=1.4.0
141141

142142
AppPublisher=Michael Hex / Source Foundry
143143
AppCopyright=Copyright © 2016 Michael Hex / Source Foundry
@@ -149,7 +149,7 @@ AppSupportURL=http://sourcefoundry.org/hack/
149149
;Should also be displayed there, but I was unable to verify this
150150
AppContact=Michael Hex / Source Foundry
151151
;Displayed as "Comments"
152-
AppComments=Hack fonts v2.020
152+
AppComments=Hack fonts v3.000
153153
;Displayed as "Update information:" -NOT USED RIGHT NOW-
154154
;AppUpdatesURL=http://appupdates.com
155155
;---------------------------------------------------
@@ -208,7 +208,7 @@ AllowCancelDuringInstall=False
208208
SetupAppTitle=Hack Windows Installer
209209

210210
;SetupWindowsTitle is displayed in the setup window itself so we better include the version
211-
SetupWindowTitle=Hack Windows Installer 1.3.0
211+
SetupWindowTitle=Hack Windows Installer 1.4.0
212212

213213
;Messages for the "Read to install" wizard page
214214
;NOT USED - "Ready To Install" - below title bar
@@ -218,7 +218,7 @@ SetupWindowTitle=Hack Windows Installer 1.3.0
218218
ReadyLabel1=
219219

220220
;ReadyLabel2b: "Click Install to continue with the installation"
221-
ReadyLabel2b=Setup is now ready to install the Hack fonts v2.020 on your system.
221+
ReadyLabel2b=Setup is now ready to install the Hack fonts v3.000 on your system.
222222

223223

224224
[Icons]
@@ -238,10 +238,10 @@ Name: "{app}\Website"; Filename: "http://sourcefoundry.org/hack/";
238238

239239
;------------------------
240240
;Install font files and register them
241-
Source: "C:\dev\git\Hack-windows-installer\fonts\Hack_v2_020\Hack-Bold.ttf"; FontInstall: "Hack Bold"; DestDir: "{fonts}"; Check: FontFileInstallationRequired; Flags: ignoreversion restartreplace;
242-
Source: "C:\dev\git\Hack-windows-installer\fonts\Hack_v2_020\Hack-Regular.ttf"; FontInstall: "Hack"; DestDir: "{fonts}"; Check: FontFileInstallationRequired; Flags: ignoreversion restartreplace;
243-
Source: "C:\dev\git\Hack-windows-installer\fonts\Hack_v2_020\Hack-BoldItalic.ttf"; FontInstall: "Hack Bold Italic"; DestDir: "{fonts}"; Check: FontFileInstallationRequired; Flags: ignoreversion restartreplace;
244-
Source: "C:\dev\git\Hack-windows-installer\fonts\Hack_v2_020\Hack-Italic.ttf"; FontInstall: "Hack Italic"; DestDir: "{fonts}"; Check: FontFileInstallationRequired; Flags: ignoreversion restartreplace;
241+
Source: "C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Bold.ttf"; FontInstall: "Hack Bold"; DestDir: "{fonts}"; Check: FontFileInstallationRequired; Flags: ignoreversion restartreplace;
242+
Source: "C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Regular.ttf"; FontInstall: "Hack"; DestDir: "{fonts}"; Check: FontFileInstallationRequired; Flags: ignoreversion restartreplace;
243+
Source: "C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-BoldItalic.ttf"; FontInstall: "Hack Bold Italic"; DestDir: "{fonts}"; Check: FontFileInstallationRequired; Flags: ignoreversion restartreplace;
244+
Source: "C:\dev\git\Hack-windows-installer\fonts\Hack_v3_000\Hack-Italic.ttf"; FontInstall: "Hack Italic"; DestDir: "{fonts}"; Check: FontFileInstallationRequired; Flags: ignoreversion restartreplace;
245245
;------------------------
246246

247247

@@ -287,7 +287,7 @@ Name: "{app}\Website"; Filename: "http://sourcefoundry.org/hack/";
287287

288288
[INI]
289289
;Create an ini to make detection for enterprise deployment tools easy
290-
Filename: "{app}\InstallInfo.ini"; Section: "Main"; Key: "Version"; String: "1.3.0"
290+
Filename: "{app}\InstallInfo.ini"; Section: "Main"; Key: "Version"; String: "1.4.0"
291291
Filename: "{app}\InstallInfo.ini"; Section: "Main"; Key: "Name"; String: "Hack Windows Installer"
292292

293293

@@ -519,10 +519,10 @@ procedure FillFontDataArray();
519519
begin
520520
521521
522-
AddFontData('Hack-Bold.ttf', 'Hack Bold', 'a7bb6faacd609145b55ed15ca238755544c03af5');
523-
AddFontData('Hack-Regular.ttf', 'Hack', '664cfe2a64de1486c0ace8073ceeb6d9281e8b78');
524-
AddFontData('Hack-BoldItalic.ttf', 'Hack Bold Italic', 'c428004a2fe3570450c6d03442052b1a9989c58b');
525-
AddFontData('Hack-Italic.ttf', 'Hack Italic', 'efdae4b94858b98eab6dcf2cb8e3cc3d28263cc2');
522+
AddFontData('Hack-Bold.ttf', 'Hack Bold', '12022be7e047f0ec26517084d5fc6d444a2511ac');
523+
AddFontData('Hack-Regular.ttf', 'Hack', '8f7271c506e5fc5b6ad69ec00845f10d0a4ee146');
524+
AddFontData('Hack-BoldItalic.ttf', 'Hack Bold Italic', 'e41d5b385511295d1f771f2c647e9151dbf72012');
525+
AddFontData('Hack-Italic.ttf', 'Hack Italic', '593a16309b9fe89ce600ef688cb53d5747054ab3');
526526
527527
end;
528528
@@ -670,9 +670,9 @@ begin
670670
671671
LogAsImportant('--------------------------------');
672672
LogAsImportant('Font name.....: Hack fonts');
673-
LogAsImportant('Script version: 2.01');
674-
LogAsImportant('Setup version.: 1.3.0');
675-
LogAsImportant('Font version..: 2.020');
673+
LogAsImportant('Script version: 2.02');
674+
LogAsImportant('Setup version.: 1.4.0');
675+
LogAsImportant('Font version..: 3.000');
676676
LogAsImportant('Local time....: ' + GetDateTimeString('yyyy-dd-mm hh:nn', '-', ':'));
677677
LogAsImportant('Fonts folder..: ' + ExpandConstant('{fonts}'));
678678
LogAsImportant('Dest folder...: ' + ExpandConstant('{app}'));
@@ -753,11 +753,8 @@ begin
753753
FontCacheService_Stopped:=false;
754754
end;
755755
756-
customProgressPage.SetText('Starting service FontCache3.0.0.0...','');
757-
if FontCache30Service_Stopped=true then begin
758-
StartNTService2('FontCache3.0.0.0');
759-
FontCache30Service_Stopped:=false;
760-
end;
756+
757+
761758
762759
SendBroadcastMessage(29, 0, 0);
763760

0 commit comments

Comments
 (0)