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

Provide all text state operators #1216

Open
wants to merge 8 commits into
base: master
Choose a base branch
from
Open

Commits on Apr 12, 2022

  1. additional options for drawing text

    Provide textRenderingMode, horizontalScaling, textRise, charcterSpacing and wordSpacing as an option for drawing text.
    In operator.ts and PDFOperatorNames.ts those operators were already implementes. The function for the horizontalScaling (as it is called in the pdf standard) was called "setCharacterSqueeze" so far. To keep the standardized terminology, the function was renamed to "setHorizontalSpacing". However, for backward compatibility (if somebody had used setCharacterSqueeze in his own script; in the actual pdf-lib code there was no reference) the original function was kept as well with a deprecated note.
    In the textOptions, not the standard names were used, but noun forms of it, to match the current options style (e.g. horizontalScale (options) instead of horizontalScaling (pdf standard)).
    retfah committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    39386a8 View commit details
    Browse the repository at this point in the history
  2. Revert "additional options for drawing text"

    This reverts commit 39386a8.
    retfah committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    ba77412 View commit details
    Browse the repository at this point in the history
  3. Update index.ts

    revert temporary test removal
    retfah committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    79a4868 View commit details
    Browse the repository at this point in the history
  4. tests finalized

    retfah committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    42c9739 View commit details
    Browse the repository at this point in the history
  5. Merge branch 'textOptions'

    retfah committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    30b588d View commit details
    Browse the repository at this point in the history
  6. redo the actual changes

    the first commit in master had to be reverted, since the tests were still in a temporary modified state. A new branch (textOptions) was then created on the basis of the meanwhile reverted commit. In this branch, the tests were cleaned up and the branch finally got merged with tha master. However, the actual changes, which were reverted in the master, were not merged, despiute the fact they were present in the brach. Finally, I manually added the actual changes directly in the master.
    retfah committed Apr 12, 2022
    Configuration menu
    Copy the full SHA
    50699e9 View commit details
    Browse the repository at this point in the history

Commits on Apr 17, 2022

  1. corrected tests + linting

    harmonization of tests + linting
    retfah committed Apr 17, 2022
    Configuration menu
    Copy the full SHA
    aed4aac View commit details
    Browse the repository at this point in the history
  2. latest linting

    retfah committed Apr 17, 2022
    Configuration menu
    Copy the full SHA
    7829e2b View commit details
    Browse the repository at this point in the history