Closed msbit closed 7 years ago
@msbit Thank you for all the contributions you've made recently.
Specs? ;)
Can write some if you want, was taking my cue from the fact that there were none there already :smiley:
I know the coverage is not very good, to say the least. We should strive for better. ;)
So, as you may have guessed from my other PR on pdf-core, my motivation is to get horizontal text scaling going in prawn itself.
From my testing it's working, and in order to get the specs running for that change, pdf-inspector needed to be able to keep track of horizontal scaling changes coming in from pdf-reader.
I'm not, however, especially au fait with how pdf-inspector and pdf-reader work together, so I'm probably not the right person to start getting the testing in place for this gem. I can definitely add to the specs once something is in place.
Bit the bullet and wrote some specs for easily settable text attributes (character spacing and horizontal text scaling).
@msbit This gem is mostly used in specs elsewhere. Could you please reference relevant PRs on other gems if there are any? Just so that we knew we need to merge this one before the PRs that depend on it.
No outstanding PRs in other projects rely on this.
Once this and my two other PRs for pdf-core (https://github.com/prawnpdf/pdf-core/pull/26 and https://github.com/prawnpdf/pdf-core/pull/27) are tagged and versioned, I've got a branch on my fork of prawn that I'll put forward as a PR.
👍
Add methods and attrs for storing and inspecting horizontal text scaling references.