We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
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
The output from the following code should all be red, instead it becomes black starting from the font tag:
font
from fpdf import FPDF pdf = FPDF() pdf.add_page() pdf.set_text_color(200, 50, 50) pdf.set_font(family='Helvetica', size=13) pdf.write_html('one <font size=8>two</font> three') pdf.output('html.pdf')
This is the output:
Notice that family and size are correctly restored, only the color is reset to black.
Environment
fpdf2
The text was updated successfully, but these errors were encountered:
Preserving the initial text color when using write_html() - fix #846
4237fd7
Thank you for the report @stenci
This is indeed a bug
I opened #848 to fix it
Sorry, something went wrong.
@allcontributors please add @stenci for bug
@Lucas-C
I've put up a pull request to add @stenci! 🎉
faca4c0
No branches or pull requests
The output from the following code should all be red, instead it becomes black starting from the
font
tag:This is the output:
![image](https://private-user-images.githubusercontent.com/5955495/252418122-f54f533c-7007-4401-a191-aff8d5e31f18.png?jwt=eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpc3MiOiJnaXRodWIuY29tIiwiYXVkIjoicmF3LmdpdGh1YnVzZXJjb250ZW50LmNvbSIsImtleSI6ImtleTUiLCJleHAiOjE3MzkxNzc2NTYsIm5iZiI6MTczOTE3NzM1NiwicGF0aCI6Ii81OTU1NDk1LzI1MjQxODEyMi1mNTRmNTMzYy03MDA3LTQ0MDEtYTE5MS1hZmY4ZDVlMzFmMTgucG5nP1gtQW16LUFsZ29yaXRobT1BV1M0LUhNQUMtU0hBMjU2JlgtQW16LUNyZWRlbnRpYWw9QUtJQVZDT0RZTFNBNTNQUUs0WkElMkYyMDI1MDIxMCUyRnVzLWVhc3QtMSUyRnMzJTJGYXdzNF9yZXF1ZXN0JlgtQW16LURhdGU9MjAyNTAyMTBUMDg0OTE2WiZYLUFtei1FeHBpcmVzPTMwMCZYLUFtei1TaWduYXR1cmU9MmYyZGRkODBjNjhlMzY0YWE3YmU0NmY2MTUyZmI0NWJkODc5MjA1OTA1ZjRmYmIwMGNjNTA4OTk2YmJmMzc0ZiZYLUFtei1TaWduZWRIZWFkZXJzPWhvc3QifQ.Hs3-R4isABFSUtWrPvFkilcpssA2BqmrRy0jrBc0F3w)
Notice that family and size are correctly restored, only the color is reset to black.
Environment
fpdf2
version used: 2.7.4The text was updated successfully, but these errors were encountered: