You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Describe the bug
It looks like react-pdf should support font weights (#535), but this does not seem to be the case for the included fonts.
To Reproduce
The snippet below creates three lines. The first is normal weight for reference, and the other two are different ways of setting font weight; The first uses the fontWeight modifier, the other explicitly references Helvetica-Bold. The second and third should look the same, since { fontFamily: 'Helvetica', fontWeight: 'bold' } should be equivalent to { fontFamily: 'Helvetica-Bold' }
diegomura
changed the title
Included fonts does not support fontWeight modifier.
Included fonts does not support fontWeight modifier for default fonts
Jun 24, 2019
Describe the bug
It looks like react-pdf should support font weights (#535), but this does not seem to be the case for the included fonts.
To Reproduce
The snippet below creates three lines. The first is normal weight for reference, and the other two are different ways of setting font weight; The first uses the
fontWeight
modifier, the other explicitly referencesHelvetica-Bold
. The second and third should look the same, since{ fontFamily: 'Helvetica', fontWeight: 'bold' }
should be equivalent to{ fontFamily: 'Helvetica-Bold' }
REPL with the code below
Expected behavior
{ fontFamily: 'Helvetica', fontWeight: 'bold' }
should be equivalent to
{ fontFamily: 'Helvetica-Bold' }
Desktop (please complete the following information):
The text was updated successfully, but these errors were encountered: