Skip to content
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

Pdf font size? #1

Closed
tin2tin opened this issue Nov 11, 2019 · 3 comments
Closed

Pdf font size? #1

tin2tin opened this issue Nov 11, 2019 · 3 comments

Comments

@tin2tin
Copy link

tin2tin commented Nov 11, 2019

I've tested the fountain2pdf export. Here the bold etc. is working, but it seems like the font size and style (Courier 12) needs to be set:
image
I know nothing about the module you're using, but maybe this link might be useful?
https://stackoverflow.com/questions/4899885/how-to-set-any-font-in-reportlab-canvas-in-python/4900031#4900031

@Tagirijus
Copy link
Owner

Tagirijus commented Nov 12, 2019

Hey there! A style can be set up in the fountain2pdf_style_radioplay.py file. Or you copy it and change the first line of fountain2pdf.py to use your specific style.

Maybe some day I will make it less clumsy to chose your own style - like it is now it is stupid, I know. Every new pull will make the changes gone etc. At the moment I cannot promise that an improvement will come soon, since I am doing this as a hobby and for my own needs mainly.

And maybe I will also be able to explain this styling a bit in the future ... while I have to admit that I also only used a style I once found and tried to adept it to my needs. So basically what you get with the "default" export is my style I like for my radio play scripts. (-;

In such a style file you can set up the font and the font size of all the elements individually, by the way.

@tin2tin
Copy link
Author

tin2tin commented Nov 12, 2019

Ah, thank you. A learning curve here. Can you point my to the original style file. Could be useful if it is more screenplay friendly.

@Tagirijus
Copy link
Owner

I looked at the style again and it seems like I did not find another style and modified it, but I probably wrote it on my own, haha. Sorry for that! Either that or I really forgot a source!

Anyway feel free to just look into the style files (fountain2pdf_style_...py). I tried to work with placeholders so that it should be quite easy to modify the style or make your own style. For example the font can be set by just changign the font name for the variables beginnign with FONT. SIZE should be self-explaining, and so on.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants