Skip to content

using two different font sizes in a single multi_cell #793

Answered by gmischler
Nithyashri-E asked this question in Q&A
Discussion options

You must be logged in to vote

@Nithyashri-E, I've just checked in #897, which should solve your problem.
Well, technically it's not going to be a multi_cell but an instance of text_columns(), and if you need borders around it you'll have to draw them yourself. but you can freely change fonts within line wrapped text.
You can install the currently unreleased code (about to be released as 2.7.6 very soon) like this:

pip install git+https://github.com/py-pdf/fpdf2.git@master

and test it in your environment.

Edit: Published with release 2.7.6

Replies: 2 comments

Comment options

You must be logged in to vote
0 replies
Comment options

You must be logged in to vote
0 replies
Answer selected by gmischler
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Category
Q&A
Labels
None yet
3 participants