Implement italics in package

Closes #3
This commit is contained in:
Silke Hofstra 2018-09-05 11:13:14 +02:00
parent deec149334
commit 7088b9e786
1 changed files with 29 additions and 21 deletions

View File

@ -8,7 +8,7 @@
% Licenced under the LPPL v1.3 or higher. % Licenced under the LPPL v1.3 or higher.
% %
\NeedsTeXFormat{LaTeX2e}[1994/12/01] \NeedsTeXFormat{LaTeX2e}[1994/12/01]
\ProvidesPackage{sourceserifpro}[2016/04/08 v1.2 Adobe's Source Serif Pro typeface] \ProvidesPackage{sourceserifpro}[2018/09/05 v1.3 Adobe's Source Serif Pro typeface]
\RequirePackage{ifxetex,ifluatex,xkeyval} \RequirePackage{ifxetex,ifluatex,xkeyval}
@ -121,26 +121,34 @@
% Regular/Bold % Regular/Bold
\newfontfamily\sourceserifpro \newfontfamily\sourceserifpro
[ UprightFont = *-Regular , [ UprightFont = *-Regular ,
BoldFont = *-Bold ] ItalicFont = *-RegularIt ,
BoldFont = *-Bold ,
BoldItalicFont = *-BoldIt ]
{SourceSerifPro} {SourceSerifPro}
% Light/Semibold % Light/Semibold
\newfontfamily\sourceserifprolight \newfontfamily\sourceserifprolight
[ UprightFont = *-Light , [ UprightFont = *-Light ,
BoldFont = *-Semibold ] ItalicFont = *-LightIt ,
BoldFont = *-Semibold ,
BoldItalicFont = *-SemiboldIt ]
{SourceSerifPro} {SourceSerifPro}
% ExtraLight/Black % ExtraLight/Black
\newfontfamily\sourceserifproextreme \newfontfamily\sourceserifproextreme
[ UprightFont = *-ExtraLight , [ UprightFont = *-ExtraLight ,
BoldFont = *-Black ] ItalicFont = *-ExtraLightIt ,
BoldFont = *-Black ,
BoldItalicFont = *-BlackIt ]
{SourceSerifPro} {SourceSerifPro}
% Lining figures % Lining figures
\newfontfamily\sourceserifprolf \newfontfamily\sourceserifprolf
[ Numbers = \sourceserifpro@figurealign , [ Numbers = \sourceserifpro@figurealign ,
UprightFont = *-\sourceserifpro@regstyle , UprightFont = *-\sourceserifpro@regstyle ,
BoldFont = *-\sourceserifpro@boldstyle ] ItalicFont = *-\sourceserifpro@regstyle It ,
BoldFont = *-\sourceserifpro@boldstyle ,
BoldItalicFont = *-\sourceserifpro@boldstyle It ]
{SourceSerifPro} {SourceSerifPro}
% Dont keep all default font features % Dont keep all default font features