Checks in WIP, Italic bit in VAR fonts seems to be properly set now.

This commit is contained in:
Paul D. Hunt 2020-12-16 13:28:44 +11:00
parent 85ddd08f0c
commit b5a52bd029
20 changed files with 138 additions and 135 deletions

View File

@ -1,2 +1,2 @@
# Romans
FontRevision 1.054;
FontRevision 1.056;

View File

@ -2,25 +2,20 @@
<designspace format="3">
<axes>
<axis default="200.0" maximum="900.0" minimum="200.0" name="weight" tag="wght">
<map input="200" output="0"/>
<!-- ExtraLight -->
<map input="300" output="100"/>
<!-- Light -->
<map input="400" output="368"/>
<!-- Regular -->
<map input="500" output="486"/>
<!-- Medium -->
<map input="600" output="600"/>
<!-- Semibold -->
<map input="700" output="824"/>
<!-- Bold -->
<map input="900" output="1000"/>
<!-- Black -->
<map input="200" output="0"/> <!-- ExtraLight -->
<map input="300" output="100"/> <!-- Light -->
<map input="400" output="368"/> <!-- Regular -->
<map input="500" output="486"/> <!-- Medium -->
<map input="600" output="600"/> <!-- Semibold -->
<map input="700" output="824"/> <!-- Bold -->
<map input="900" output="1000"/> <!-- Black -->
</axis>
</axes>
<sources>
<source filename="master_0/SourceCode_ExtraLight-Italic.ufo" name="master_0">
<lib copy="1"/>
<groups copy="1"/>
<info copy="1"/>
<location>
<dimension name="weight" xvalue="0"/>
</location>
@ -34,7 +29,6 @@
<glyph mute="1" name="esh"/>
<glyph mute="1" name="l"/>
<glyph mute="1" name="t"/>
<info copy="1"/>
<location>
<dimension name="weight" xvalue="368"/>
</location>

View File

@ -1,2 +1,2 @@
# Italic variable
FontRevision 1.014;
FontRevision 1.016;

View File

@ -17,6 +17,8 @@
</array>
<key>italicAngle</key>
<integer>-11</integer>
<key>openTypeOS2VendorID</key>
<string>ADBO</string>
<key>postscriptBlueFuzz</key>
<integer>0</integer>
<key>postscriptBlueScale</key>
@ -86,7 +88,7 @@
<key>versionMajor</key>
<integer>1</integer>
<key>versionMinor</key>
<integer>0</integer>
<integer>16</integer>
<key>xHeight</key>
<integer>478</integer>
</dict>

View File

@ -17,6 +17,8 @@
</array>
<key>italicAngle</key>
<integer>-11</integer>
<key>openTypeOS2VendorID</key>
<string>ADBO</string>
<key>postscriptBlueFuzz</key>
<integer>0</integer>
<key>postscriptBlueScale</key>
@ -86,7 +88,7 @@
<key>versionMajor</key>
<integer>1</integer>
<key>versionMinor</key>
<integer>0</integer>
<integer>16</integer>
<key>xHeight</key>
<integer>486</integer>
</dict>

View File

@ -17,6 +17,8 @@
</array>
<key>italicAngle</key>
<integer>-11</integer>
<key>openTypeOS2VendorID</key>
<string>ADBO</string>
<key>postscriptBlueFuzz</key>
<integer>0</integer>
<key>postscriptBlueScale</key>
@ -86,7 +88,7 @@
<key>versionMajor</key>
<integer>1</integer>
<key>versionMinor</key>
<integer>0</integer>
<integer>16</integer>
<key>xHeight</key>
<integer>500</integer>
</dict>

View File

@ -1,4 +1,4 @@
Copyright 2010-2019 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
Copyright 2010-2020 Adobe (http://www.adobe.com/), with Reserved Font Name 'Source'. All Rights Reserved. Source is a trademark of Adobe in the United States and/or other countries.
This Font Software is licensed under the SIL Open Font License, Version 1.1.

View File

@ -1,2 +1,2 @@
# Romans
FontRevision 2.034;
FontRevision 2.036;

View File

@ -1,89 +1,89 @@
<?xml version="1.0" encoding="utf-8"?>
<designspace format="3">
<axes>
<axis default="0.0" maximum="1000.0" minimum="0.0" name="weight" tag="wght"/>
<axis default="0.0" maximum="1000.0" minimum="0.0" name="weight" tag="wght" />
</axes>
<sources>
<source filename="master_0/SourceCode_ExtraLight.ufo" name="master_0">
<lib copy="1"/>
<groups copy="1"/>
<info copy="1"/>
<lib copy="1" />
<groups copy="1" />
<info copy="1" />
<location>
<dimension name="weight" xvalue="0"/>
<dimension name="weight" xvalue="0" />
</location>
</source>
<source filename="master_1/SourceCode_Regular.ufo" name="master_1">
<glyph mute="1" name="H"/>
<glyph mute="1" name="O"/>
<glyph mute="1" name="T"/>
<glyph mute="1" name="Y"/>
<glyph mute="1" name="Ustraight"/>
<glyph mute="1" name="dotlessi.a"/>
<glyph mute="1" name="dotlessi"/>
<glyph mute="1" name="dotlessj"/>
<glyph mute="1" name="esh"/>
<glyph mute="1" name="l"/>
<glyph mute="1" name="t"/>
<glyph mute="1" name="ustraight"/>
<glyph mute="1" name="H" />
<glyph mute="1" name="O" />
<glyph mute="1" name="T" />
<glyph mute="1" name="Y" />
<glyph mute="1" name="Ustraight" />
<glyph mute="1" name="dotlessi.a" />
<glyph mute="1" name="dotlessi" />
<glyph mute="1" name="dotlessj" />
<glyph mute="1" name="esh" />
<glyph mute="1" name="l" />
<glyph mute="1" name="t" />
<glyph mute="1" name="ustraight" />
<location>
<dimension name="weight" xvalue="368"/>
<dimension name="weight" xvalue="368" />
</location>
</source>
<source filename="master_2/SourceCode_Black.ufo" name="master_2">
<location>
<dimension name="weight" xvalue="1000"/>
<dimension name="weight" xvalue="1000" />
</location>
</source>
</sources>
<instances>
<instance familyname="Source Code Pro" filename="../Instances/ExtraLight/font.ufo" postscriptfontname="SourceCodePro-ExtraLight" stylename="ExtraLight">
<location>
<dimension name="weight" xvalue="0"/>
<dimension name="weight" xvalue="0" />
</location>
<kerning/>
<info/>
<kerning />
<info />
</instance>
<instance familyname="Source Code Pro" filename="../Instances/Light/font.ufo" postscriptfontname="SourceCodePro-Light" stylename="Light">
<location>
<dimension name="weight" xvalue="100"/>
<dimension name="weight" xvalue="100" />
</location>
<kerning/>
<info/>
<kerning />
<info />
</instance>
<instance familyname="Source Code Pro" filename="../Instances/Regular/font.ufo" postscriptfontname="SourceCodePro-Regular" stylename="Regular">
<location>
<dimension name="weight" xvalue="368"/>
<dimension name="weight" xvalue="368" />
</location>
<kerning/>
<info/>
<kerning />
<info />
</instance>
<instance familyname="Source Code Pro" filename="../Instances/Medium/font.ufo" postscriptfontname="SourceCodePro-Medium" stylename="Medium">
<location>
<dimension name="weight" xvalue="486"/>
<dimension name="weight" xvalue="486" />
</location>
<kerning/>
<info/>
<kerning />
<info />
</instance>
<instance familyname="Source Code Pro" filename="../Instances/Semibold/font.ufo" postscriptfontname="SourceCodePro-Semibold" stylename="Semibold">
<location>
<dimension name="weight" xvalue="600"/>
<dimension name="weight" xvalue="600" />
</location>
<kerning/>
<info/>
<kerning />
<info />
</instance>
<instance familyname="Source Code Pro" filename="../Instances/Bold/font.ufo" postscriptfontname="SourceCodePro-Bold" stylename="Bold">
<location>
<dimension name="weight" xvalue="824"/>
<dimension name="weight" xvalue="824" />
</location>
<kerning/>
<info/>
<kerning />
<info />
</instance>
<instance familyname="Source Code Pro" filename="../Instances/Black/font.ufo" postscriptfontname="SourceCodePro-Black" stylename="Black">
<location>
<dimension name="weight" xvalue="1000"/>
<dimension name="weight" xvalue="1000" />
</location>
<kerning/>
<info/>
<kerning />
<info />
</instance>
</instances>
</designspace>

View File

@ -2,25 +2,20 @@
<designspace format="3">
<axes>
<axis default="200.0" maximum="900.0" minimum="200.0" name="weight" tag="wght">
<map input="200" output="0"/>
<!-- ExtraLight -->
<map input="300" output="100"/>
<!-- Light -->
<map input="400" output="368"/>
<!-- Regular -->
<map input="500" output="486"/>
<!-- Medium -->
<map input="600" output="600"/>
<!-- Semibold -->
<map input="700" output="824"/>
<!-- Bold -->
<map input="900" output="1000"/>
<!-- Black -->
<map input="200" output="0"/> <!-- ExtraLight -->
<map input="300" output="100"/> <!-- Light -->
<map input="400" output="368"/> <!-- Regular -->
<map input="500" output="486"/> <!-- Medium -->
<map input="600" output="600"/> <!-- Semibold -->
<map input="700" output="824"/> <!-- Bold -->
<map input="900" output="1000"/> <!-- Black -->
</axis>
</axes>
<sources>
<source filename="master_0/SourceCode_ExtraLight.ufo" name="master_0">
<lib copy="1"/>
<groups copy="1"/>
<info copy="1"/>
<location>
<dimension name="weight" xvalue="0"/>
</location>
@ -39,6 +34,7 @@
<glyph mute="1" name="l"/>
<glyph mute="1" name="t"/>
<glyph mute="1" name="ustraight"/>
<kerning mute="1"/>
<location>
<dimension name="weight" xvalue="368"/>
</location>

View File

@ -1,2 +1,2 @@
# Roman variable
FontRevision 1.014;
FontRevision 1.016;

View File

@ -15,6 +15,8 @@
<key>guidelines</key>
<array>
</array>
<key>openTypeOS2VendorID</key>
<string>ADBO</string>
<key>postscriptBlueFuzz</key>
<integer>0</integer>
<key>postscriptBlueScale</key>
@ -82,9 +84,9 @@
<key>unitsPerEm</key>
<integer>1000</integer>
<key>versionMajor</key>
<integer>1</integer>
<integer>2</integer>
<key>versionMinor</key>
<integer>0</integer>
<integer>36</integer>
<key>xHeight</key>
<integer>478</integer>
</dict>

View File

@ -15,6 +15,8 @@
<key>guidelines</key>
<array>
</array>
<key>openTypeOS2VendorID</key>
<string>ADBO</string>
<key>postscriptBlueFuzz</key>
<integer>0</integer>
<key>postscriptBlueScale</key>
@ -82,9 +84,9 @@
<key>unitsPerEm</key>
<integer>1000</integer>
<key>versionMajor</key>
<integer>1</integer>
<integer>2</integer>
<key>versionMinor</key>
<integer>0</integer>
<integer>36</integer>
<key>xHeight</key>
<integer>486</integer>
</dict>

View File

@ -15,6 +15,8 @@
<key>guidelines</key>
<array>
</array>
<key>openTypeOS2VendorID</key>
<string>ADBO</string>
<key>postscriptBlueFuzz</key>
<integer>0</integer>
<key>postscriptBlueScale</key>
@ -82,9 +84,9 @@
<key>unitsPerEm</key>
<integer>1000</integer>
<key>versionMajor</key>
<integer>1</integer>
<integer>2</integer>
<key>versionMinor</key>
<integer>0</integer>
<integer>36</integer>
<key>xHeight</key>
<integer>500</integer>
</dict>

View File

@ -10,7 +10,6 @@ for /f %%a in ('where makeotf') do set MAKEOTF_PATH=%%a
if "%MAKEOTF_PATH%" == "" goto error_makeotf_not_found
call :GetDirectoryName PYTHON_PATH "%MAKEOTF_PATH%"
set PYTHON_PATH=%PYTHON_PATH%Python\AFDKOPython27\python.exe
set TARGET_PATH=%~dp0\target\
set TARGET_OTF_PATH=%TARGET_PATH%OTF\
@ -43,10 +42,8 @@ goto :eof
:: %1 - Roman/Italic
:: %2 - Weight
:build_font
call makeotf -f "%~dp0\%1\Instances\%2\font.ufo" -r -ci "%~dp0\uvs.txt" -o "%TARGET_OTF_PATH%\%FAMILY%-%2.otf"
call makeotf -f "%~dp0\%1\Instances\%2\font.ttf" -r -ci "%~dp0\uvs.txt" -o "%TARGET_TTF_PATH%\%FAMILY%-%2.ttf" -ff "%~dp0\%1\Instances\%2\font.ufo\features.fea"
:: "%PYTHON_PATH%" "%~dp0\addSVGtable.py" "%TARGET_OTF_PATH%\%FAMILY%-%2.otf" "%~dp0\svg"
:: "%PYTHON_PATH%" "%~dp0\addSVGtable.py" "%TARGET_TTF_PATH%\%FAMILY%-%2.ttf" "%~dp0\svg"
call makeotf -f "%~dp0\%1\Instances\%2\font.ufo" -r -o "%TARGET_OTF_PATH%\%FAMILY%-%2.otf"
call makeotf -f "%~dp0\%1\Instances\%2\font.ttf" -r -o "%TARGET_TTF_PATH%\%FAMILY%-%2.ttf" -ff "%~dp0\%1\Instances\%2\font.ufo\features.fea"
goto :eof
:error_makeotf_not_found

View File

@ -1,4 +1,4 @@
nameid 0 "\00a9 2010 - 2012 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name \2018Source\2019.";
nameid 0 "\00a9 2010 - 2020 Adobe Systems Incorporated (http://www.adobe.com/), with Reserved Font Name \2018Source\2019.";
nameid 7 "Source is a trademark of Adobe Systems Incorporated in the United States and/or other countries.";
nameid 8 "Adobe Systems Incorporated";
nameid 9 "Paul D. Hunt, Teo Tuominen";

2
familynameIDsVar.fea Normal file
View File

@ -0,0 +1,2 @@
nameid 256 "Roman";
nameid 257 "Italic";

View File

@ -3,6 +3,8 @@ include (../../../familyTables.fea);
table name {
include (../nameIDs.fea);
include (../../../familynameIDs.fea);
include (../../../familynameIDsVar.fea);
} name;
include (../../familyGSUB.fea);
include (../STAT.fea);