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

General support for border width in PDF Tr operator #2571

Closed
wants to merge 5 commits into from

Commits on Jul 14, 2023

  1. fix #2533

    In some situations, we were computing a wrong character bbox in Page method get_texttrace() in that we falsely assume a text up-down flip.
    This is being corrected here.
    JorjMcKie committed Jul 14, 2023
    Configuration menu
    Copy the full SHA
    fc00021 View commit details
    Browse the repository at this point in the history

Commits on Jul 28, 2023

  1. Fix #2556

    Guard against incompletely specified clip paths by checking whether any drawing items have been generated.
    JorjMcKie committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    63d8309 View commit details
    Browse the repository at this point in the history
  2. test fix of #2556

    Ensure  #2556 is fixed properly.
    JorjMcKie committed Jul 28, 2023
    Configuration menu
    Copy the full SHA
    df830db View commit details
    Browse the repository at this point in the history

Commits on Jul 31, 2023

  1. Support variable border width

    For writing text with a glyph border, render mode Tr > 0 must be used.
    Parameter "border_width" controls the thickness of the glyph border.
    
    This fix adds support for "border_width" to TextWriter.
    This parameter is interpreted as a float factor to be multiplied with the fontsize. Useful values are in the range of 0.05 (5% of the fontsize, default) or less.
    This interpretation is now also consistent with "insert_text()" / "insert_textbox()" of the Page and Shape class.
    JorjMcKie committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    82a3aff View commit details
    Browse the repository at this point in the history
  2. Adjust documentation

    Adjust documentation for Border_width support.
    JorjMcKie committed Jul 31, 2023
    Configuration menu
    Copy the full SHA
    ddc823e View commit details
    Browse the repository at this point in the history