From da4e2a1a5fdeb966f701fe41f09463ed0831e1a4 Mon Sep 17 00:00:00 2001 From: Lucas Cimon <925560+Lucas-C@users.noreply.github.com> Date: Wed, 9 Oct 2024 15:52:50 +0200 Subject: [PATCH] Minor docstring improvements --- fpdf/fpdf.py | 69 +++++++++++++++++++++++++++------------------------- 1 file changed, 36 insertions(+), 33 deletions(-) diff --git a/fpdf/fpdf.py b/fpdf/fpdf.py index ff63c7fcd..7a7ff043e 100644 --- a/fpdf/fpdf.py +++ b/fpdf/fpdf.py @@ -2739,39 +2739,42 @@ def local_context(self, **kwargs): draw_some_stuff() The affected settings are those controlled by GraphicsStateMixin and drawing.GraphicsStyle: - allow_transparency - auto_close - blend_mode - char_vpos - char_spacing - dash_pattern - denom_lift - denom_scale - draw_color - fill_color - fill_opacity - font_family - font_size - font_size_pt - font_style - font_stretching - intersection_rule - line_width - nom_lift - nom_scale - paint_rule - stroke_cap_style - stroke_join_style - stroke_miter_limit - stroke_opacity - sub_lift - sub_scale - sup_lift - sup_scale - text_color - text_mode - text_shaping - underline + + * allow_transparency + * auto_close + * blend_mode + * char_vpos + * char_spacing + * dash_pattern + * denom_lift + * denom_scale + * draw_color + * fill_color + * fill_opacity + * font_family + * font_size + * font_size_pt + * font_style + * font_stretching + * intersection_rule + * line_width + * nom_lift + * nom_scale + * paint_rule + * stroke_cap_style + * stroke_join_style + * stroke_miter_limit + * stroke_opacity + * sub_lift + * sub_scale + * sup_lift + * sup_scale + * text_color + * text_mode + * text_shaping + * underline + + Font size can be specified in document units with `font_size` or in points with `font_size_pt`. Args: **kwargs: key-values settings to set at the beggining of this context.