Story general questions #3202
Unanswered
lexxwork
asked this question in
Looking for help
Replies: 0 comments
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
CSS issue
I have posted test script that should render text with Google's Roboto Condensed font and font-stretch: condensed.
In test I use two fonts: Roboto Condensed and Roboto Light. It appears that only last declared font family is used and as result i get text with Roboto Light font.
I don't know what is wrong: 'font-stretch' is not supported or something else.
I looked around on examples and seems i am doing all right.
This issue is most important for me.
Background mismatch
Also i noticed that it does not render full background for wrapper html element


Here is the browser look:
Here is the pdf look: it shrinks to the text edges.
Story.place behave
I don't know why but this only helped me to fit the text to the clip area while actually it must fit.
The trick is just to add more space to the bottom: not just few points but 30 points!
more, _ = story.place(clip + (0, 0, 0, 30)) # needs more space in advance
Test files:
story-test.zip
Libraries versions:
PyMuPDF 1.23.25
PyMuPDFb 1.23.3
Beta Was this translation helpful? Give feedback.
All reactions