-
Notifications
You must be signed in to change notification settings - Fork 46
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 size of pdf as optional argument #11
Comments
Thanks for your suggestion, @cibinjoseph. Feel free to submit a PR! 🙂 |
How do I change font-size in the library code? It seems the font size is being defined by Rouge Gem |
It just changes the file path font style. I came up with a hack but the problem is that the code refactoring goes away when one does that.
I looked into Rouge Gem but that didn't help much either. Let me know how to work this out, I am looking forward to create a pull request. |
It would be better to go for a monospaced font by default because it is code 😄 |
I am looking for coloured fonts. |
Would colored font make any sense with code in a PDF file? I guess they are for typography design . 😆 |
I know this is an old issue, but for anyone that wants to customize font, colors and other css attributes, the way i did it is to use Rouge legacy formatter and to have a syntax.css file at the root of the project because PDFKit will load it. To get a sample css file, you can run I have attached my /lib/code2pdf/convert_to_pdf.rb file here |
The possibility of passing font size (or scaling) of the generated pdf as an option while invoking code2pdf would be a great addition.
The text was updated successfully, but these errors were encountered: