mirror of
https://github.com/adobe-fonts/source-sans.git
synced 2024-12-30 14:26:16 +01:00
refactoring of master feature files
This commit is contained in:
parent
909681c72a
commit
e0da15b3e7
11 changed files with 52 additions and 81 deletions
|
@ -381,3 +381,8 @@ feature liga { # Standard Ligatures
|
|||
sub f t by f_t;
|
||||
} liga;
|
||||
|
||||
|
||||
#--------------------------------------
|
||||
feature size {
|
||||
parameters 10.0 0; # design size, subfamily
|
||||
} size;
|
||||
|
|
2
ItalicMasters/familyVersion.fea
Normal file
2
ItalicMasters/familyVersion.fea
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Italic variable
|
||||
FontRevision 1.000
|
|
@ -890,3 +890,7 @@ feature liga { # Standard Ligatures
|
|||
} liga;
|
||||
|
||||
|
||||
#--------------------------------------
|
||||
feature size {
|
||||
parameters 10.0 0; # design size, subfamily
|
||||
} size;
|
||||
|
|
2
RomanMasters/familyVersion.fea
Normal file
2
RomanMasters/familyVersion.fea
Normal file
|
@ -0,0 +1,2 @@
|
|||
# Roman variable
|
||||
FontRevision 1.000
|
|
@ -1,45 +1,25 @@
|
|||
include (../../familyTables.fea);
|
||||
|
||||
table head {
|
||||
FontRevision 1.000;
|
||||
} head;
|
||||
table OS/2 {
|
||||
include (../../Roman/ExtraLight/os2.fea);
|
||||
include (../../familyOS2.fea);
|
||||
} OS/2;
|
||||
|
||||
include (../../Roman/family.fea);
|
||||
include (../../Roman/familyGSUB.fea);
|
||||
|
||||
# GPOS -----------------------------------
|
||||
include (../../Roman/ExtraLight/markclasses.fea);
|
||||
|
||||
feature mark {
|
||||
include (../../Roman/ExtraLight/mark.fea);
|
||||
} mark;
|
||||
|
||||
|
||||
feature mkmk {
|
||||
include (../../Roman/ExtraLight/mkmk.fea);
|
||||
} mkmk;
|
||||
|
||||
|
||||
feature kern {
|
||||
include (../../Roman/ExtraLight/kern.fea);
|
||||
} kern;
|
||||
|
||||
table OS/2 {
|
||||
Panose 2 11 3 3 3 4 3 2 2 4;
|
||||
FSType 0;
|
||||
# NOTE: For cross-platform consistency, OS/2.TypoAscender and |OS/2.TypoDescender| must add up to the font's UPM value
|
||||
TypoAscender 750; # Must be the same on all fonts for cross-platform consistency
|
||||
TypoDescender -250; # Must be the same on all fonts for cross-platform consistency
|
||||
TypoLineGap 0; # Must be zero for cross-platform consistency
|
||||
winAscent 984; # Must be the same on all fonts for cross-weight consistency
|
||||
winDescent 273; # Must be the same on all fonts for cross-weight consistency
|
||||
XHeight 478;
|
||||
CapHeight 660;
|
||||
WeightClass 200; # Extra-light (Ultra-light)
|
||||
WidthClass 5; # Medium (normal)
|
||||
Vendor "ADBO";
|
||||
} OS/2;
|
||||
|
||||
table hhea {
|
||||
# NOTE: The OS/2.winAscent and OS/2.winDescent values are set by MakeOTF and vary depending on the font's bounding box
|
||||
Ascender 984; # Must match OS/2.winAscent for cross-platform consistency
|
||||
Descender -273; # Must match OS/2.winDescent for cross-platform consistency
|
||||
LineGap 0; # Must be zero for cross-platform consistency
|
||||
} hhea;
|
||||
|
||||
include (../../tables.fea)
|
||||
|
|
|
@ -1,45 +1,25 @@
|
|||
include (../../familyTables.fea);
|
||||
|
||||
table head {
|
||||
FontRevision 1.000;
|
||||
} head;
|
||||
table OS/2 {
|
||||
include (../../Roman/Black/os2.fea);
|
||||
include (../../familyOS2.fea);
|
||||
} OS/2;
|
||||
|
||||
include (../../Roman/family.fea);
|
||||
include (../../Roman/familyGSUB.fea);
|
||||
|
||||
# GPOS -----------------------------------
|
||||
include (../../Roman/Black/markclasses.fea);
|
||||
|
||||
feature mark {
|
||||
include (../../Roman/Black/mark.fea);
|
||||
} mark;
|
||||
|
||||
|
||||
feature mkmk {
|
||||
include (../../Roman/Black/mkmk.fea);
|
||||
} mkmk;
|
||||
|
||||
|
||||
feature kern {
|
||||
include (../../Roman/Black/kern.fea);
|
||||
} kern;
|
||||
|
||||
table OS/2 {
|
||||
Panose 2 11 8 3 3 4 3 2 2 4;
|
||||
FSType 0;
|
||||
# NOTE: For cross-platform consistency, OS/2.TypoAscender and |OS/2.TypoDescender| must add up to the font's UPM value
|
||||
TypoAscender 750; # Must be the same on all fonts for cross-platform consistency
|
||||
TypoDescender -250; # Must be the same on all fonts for cross-platform consistency
|
||||
TypoLineGap 0; # Must be zero for cross-platform consistency
|
||||
winAscent 984; # Must be the same on all fonts for cross-weight consistency
|
||||
winDescent 273; # Must be the same on all fonts for cross-weight consistency
|
||||
XHeight 500;
|
||||
CapHeight 660;
|
||||
WeightClass 900; # Black
|
||||
WidthClass 5; # Medium (normal)
|
||||
Vendor "ADBO";
|
||||
} OS/2;
|
||||
|
||||
table hhea {
|
||||
# NOTE: The OS/2.winAscent and OS/2.winDescent values are set by MakeOTF and vary depending on the font's bounding box
|
||||
Ascender 984; # Must match OS/2.winAscent for cross-platform consistency
|
||||
Descender -273; # Must match OS/2.winDescent for cross-platform consistency
|
||||
LineGap 0; # Must be zero for cross-platform consistency
|
||||
} hhea;
|
||||
|
||||
include (../../tables.fea)
|
||||
|
|
|
@ -1,2 +1,5 @@
|
|||
buildMasterOTFs RomanMasters/SourceSansPro.designspace
|
||||
buildCFF2VF RomanMasters/SourceSansPro.designspace SourceSansPro-Variable.otf
|
||||
buildCFF2VF RomanMasters/SourceSansPro.designspace RomanMasters/SourceSansPro-Variable.otf
|
||||
|
||||
rm *Masters/master_*/current.fpr
|
||||
rm *Masters/master_*/master.otf
|
||||
|
|
|
@ -13,8 +13,3 @@ feature mkmk {
|
|||
feature kern {
|
||||
include (kern.fea);
|
||||
} kern;
|
||||
|
||||
|
||||
feature size {
|
||||
parameters 10.0 0; # design size, subfamily
|
||||
} size;
|
||||
|
|
11
familyOS2.fea
Normal file
11
familyOS2.fea
Normal file
|
@ -0,0 +1,11 @@
|
|||
# NOTE: For cross-platform consistency, OS/2.TypoAscender and |OS/2.TypoDescender| must add up to the font's UPM value
|
||||
TypoAscender 750; # Must be the same on all fonts for cross-platform consistency
|
||||
TypoDescender -250; # Must be the same on all fonts for cross-platform consistency
|
||||
TypoLineGap 0; # Must be zero for cross-platform consistency
|
||||
winAscent 984; # Must be the same on all fonts for cross-weight consistency
|
||||
winDescent 273; # Must be the same on all fonts for cross-weight consistency
|
||||
|
||||
CapHeight 660;
|
||||
WidthClass 5; # Medium (normal)
|
||||
Vendor "ADBO";
|
||||
FSType 0;
|
|
@ -21,23 +21,6 @@ table name {
|
|||
} name;
|
||||
|
||||
|
||||
table OS/2 {
|
||||
include (os2.fea);
|
||||
|
||||
# NOTE: For cross-platform consistency, OS/2.TypoAscender and |OS/2.TypoDescender| must add up to the font's UPM value
|
||||
TypoAscender 750; # Must be the same on all fonts for cross-platform consistency
|
||||
TypoDescender -250; # Must be the same on all fonts for cross-platform consistency
|
||||
TypoLineGap 0; # Must be zero for cross-platform consistency
|
||||
winAscent 984; # Must be the same on all fonts for cross-weight consistency
|
||||
winDescent 273; # Must be the same on all fonts for cross-weight consistency
|
||||
|
||||
CapHeight 660;
|
||||
WidthClass 5; # Medium (normal)
|
||||
Vendor "ADBO";
|
||||
FSType 0;
|
||||
} OS/2;
|
||||
|
||||
|
||||
table hhea {
|
||||
# NOTE: The OS/2.winAscent and OS/2.winDescent values are set by MakeOTF and vary depending on the font's bounding box
|
||||
Ascender 984; # Must match OS/2.winAscent for cross-platform consistency
|
||||
|
|
|
@ -1,3 +1,9 @@
|
|||
include (../../familyTables.fea);
|
||||
|
||||
table OS/2 {
|
||||
include (os2.fea);
|
||||
include (../../familyOS2.fea);
|
||||
} OS/2;
|
||||
|
||||
include (../familyGSUB.fea);
|
||||
include (../../familyGPOS.fea);
|
||||
|
|
Loading…
Reference in a new issue