Skip to content

Commit

Permalink
Implement weights correctly for type 1, fixes #1
Browse files Browse the repository at this point in the history
  • Loading branch information
silkeh committed Apr 8, 2016
1 parent 14ba579 commit 0f6d657
Showing 1 changed file with 18 additions and 6 deletions.
24 changes: 18 additions & 6 deletions tex/latex/sourceserifpro/sourceserifpro.sty
Original file line number Diff line number Diff line change
Expand Up @@ -165,15 +165,27 @@
\def\sourceserifpro@figurealign{}
\fi

% Semibold/Bold
\ifsourceserifpro@semibold
\def\bfseries@rm{sb}
% Black/Semibold/Bold
\ifsourceserifpro@black
\def\bfseries@rm{k}
\else
\def\bfseries@rm{b}
\ifsourceserifpro@semibold
\def\bfseries@rm{sb}
\else
\def\bfseries@rm{b}
\fi
\fi

% Regular
\def\mdseries@rm{m}
% Light/ExtraLight/Regular
\ifsourceserifpro@light
\def\mdseries@rm{l}
\else
\ifsourceserifpro@extralight
\def\mdseries@rm{el}
\else
\def\mdseries@rm{m}
\fi
\fi

% Sans serif font
\ifsourceserifpro@rmdefault
Expand Down

0 comments on commit 0f6d657

Please sign in to comment.