-
Notifications
You must be signed in to change notification settings - Fork 12
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
font weight is not applied ? #23
Comments
If i add these lines :
Still does not work |
Hey @MarinosTBH, as with #22, see if the React-pdf Font module can help you. I can confirm I have had the same issue attempting to use/configure fontWeight with tailwind. Edit: As I'm digging through what I thought was a solution using the react-pdf stylesheet with out of the box fonts, I'm finding that this issue could very well be stemming from that package. See diegomura/react-pdf/issues#2730 and the many issues referenced there. @aanckar is there another solution to find here? If there is no path forward for fontWeight via tailwind in this package, I propose an update to the README to steer folks towards the Font module (or at least explaining the persisting issue). |
Anyone get font weights working? |
Still, i used the available fonts for now but i will work through it in couple days. |
You have the font weights working with the available fonts? I wasnt able to get them to work with the available fonts either. |
Not any font weight is working here,
font-thin font-weight: 100;
font-extralight font-weight: 200;
font-light font-weight: 300;
font-normal font-weight: 400;
font-medium font-weight: 500;
font-semibold font-weight: 600;
font-bold font-weight: 700;
font-extrabold font-weight: 800;
font-black font-weight: 900;
Any one faced this problem ?
i'm using the PDFViewer from react pdf
and want to show the document with its styles always :
This is the basic file ::
The text was updated successfully, but these errors were encountered: