-
Notifications
You must be signed in to change notification settings - Fork 691
MasterChangelog
This page contains notes about features and fixes that will be shipped in future releases. For notes on already released Prawn versions, see our regular CHANGELOG.
Keep in mind that no decisions on these changes are final until we actually cut a release, but do try out new features and fixes and tell us what you think about them!
This should improve compatibility across viewers that do not support arbitrarily long decimal numbers, without effecting practical use at all. (A PDF point is 1/72 inch, so 0.0001 PDF point is a very, very small number).
https://github.com/prawnpdf/prawn/pull/782
This patch was added in response to certain PDFs on certain versions of Adobe Reader raising errors when viewed.
(Elaborate here)
https://github.com/prawnpdf/prawn/pull/786
(Elaborate here)
Note that because this has been broken for so long, folks may have assumed the original behavior was intentional. Check your code to see if you’ve been working around this issue, because if so it may cause breakage.
https://github.com/prawnpdf/prawn/pull/788
https://github.com/prawnpdf/prawn/commit/e65c24411c451918718a8e8cb35631c98ccc5517
- Text for all Prawn methods is now UTF-8-in, UTF-8-out, so the user
does not need to handle Windows-1252 strings.
- Internally, we’re now using Ruby’s M17n system to handle the encoding
into Windows-1252, so text.encoding will come back as Windows-1252
when `AFM#normalize_encoding` is called, rather than `ASCII-8Bit`
- When using AFM fonts + ASCII only text, no warning will be seen.
- When using AFM fonts + non-ASCII characters that are supported in
Windows-1252, users will see a warning about the limited
internationalization support, along with a recommendation to use a TTF
font instead.
- The warning includes instructions on how to disable it (just set
`Prawn::Font::AFM.hide_m17_warning = true`)
- When using AFM fonts + non-ASCII characters that are NOT supported in
- WIndows-1252, an exception will be raised rather than replacing w.
`_`.
- None of the above will apply to anyone using TTF fonts with sane UTF-8
support, everything should “just work” for those folks.
(Gregory Brown, #793)
For a detailed discussion of the problem, see #272.
(Alexander Gitter / Gregory Brown, #794)
Using :indent_paragraphs now inserts indentation on the right side of the text when using RTL text rendering mode.
(Gregory Brown, #795)