Comments (6)
Remove Prawn::Document#text_options feature, as it has made me a very sad panda many times. (closed by 9ce5b87)
from prawn.
OK, I didn't see this coming. Is there a replacement for this functionality? Also the documentation at http://prawn.majesticseacreature.com/docs/prawn-core/classes/Prawn/Document/Text.html still lists this as a valid public method.
Later...
Richard
from prawn.
As the giant warning message upon installing Prawn 0.5.0.1 states, it's a pre-release. Therefore the documentation is still based on the official stable release of Prawn (0.4)
There will be no general replacement, though I will add API calls for most of what people will need:
Things like: Document#wrap_mode= and Document#spacing=
But those will only spring into existence when I properly code up Prawn's low level functions to account for them. Right now they don't, and that's why text_options is dangerous.
from prawn.
Incase you don't use the gems:
" Welcome to Prawn, the best pure-Ruby PDF solution ever!
This is version 0.5 RC1
Please note that you have downloaded a pre-release candidate gem,
which has some bugs, ugly spots, other bad things in it. This gem is also
not fully backwards compatible, and may break existing code.
If you wish to revert until a stable release is ready, uninstall prawn 0.5.0,
prawn-core 0.5.0, prawn-layout 0.2.0 and prawn-format 0.2.0
For details on what has changed, see:
http://prawn.majesticseacreature.com/notes/0.5
If you have questions, contact us at:
http://groups.google.com/group/prawn-ruby
To submit a patch or report a bug:
http://github.com/sandal/prawn
Prawn is meant for experienced Ruby hackers, so if you are new to Ruby, you
might want to wait until you've had some practice with the language before
expecting Prawn to work for you. Things may change after 1.0, but for now
if you're not ready to read source code and patch bugs or missing features
yourself (with our help), Prawn might not be the right fit.
But if you know what you're getting yourself into, enjoy!
"
from prawn.
Yup, I don't use the Gems so I completely missed this message. Thanks for bringing me up to speed. :)
from prawn.
Yeah, sorry... I had merged in to stable branch early because I anticipated 0.5.1 to come much earlier. Generally, if you track stable moving forward you won't be burned by pre-releases.
For now, lock to a 0.4 tag until you hear about an official 0.5.1 release if the turbulence is causing problems.
FWIW, with regards to text_options() you should have a suitable replacement for all the functionality it offers by Prawn 0.6, no guarantees about 0.5 though.
from prawn.
Related Issues (20)
- Encoding warning: Prawn::Errors::IncompatibleStringEncoding, "Your document includes text that's not compatible with the Windows-1252 character set.\n If you need full UTF-8 support, use TTF fonts instead of PDF's built-in fonts" HOT 5
- Ruby 3.1 compatibilty HOT 6
- The gem breaks runtime HOT 2
- error in rendering text_box HOT 3
- OTF fonts not properly rendering HOT 12
- That worked! Thanks a lot, @Subtletree!
- Error output is unusable HOT 4
- Is there a prawn equivalent of z-index for moving elements to front/back?
- text_box with shrink_to_fit sometimes crops end of sentence
- Advanced text layout HOT 2
- 2 test failures after updating rspec to 3.12 HOT 1
- No way to give dynamic-height bounding boxes a background color HOT 1
- Incompatibility with ruby 3.1 HOT 1
- "Cursor" with repeater dynamic not working HOT 3
- Error in the manual? (page 11) HOT 2
- Issue with image colors when converting to PDF HOT 1
- Question about re-using some Prawn code to render appearance streams for AcroForm annotations HOT 2
- Push New Version to Ruby Gems to Deal with Ruby 3.1 Removing Matrix HOT 6
- Setting multi page table top margin
- Does this gem support chartjs?
Recommend Projects
-
React
A declarative, efficient, and flexible JavaScript library for building user interfaces.
-
Vue.js
🖖 Vue.js is a progressive, incrementally-adoptable JavaScript framework for building UI on the web.
-
Typescript
TypeScript is a superset of JavaScript that compiles to clean JavaScript output.
-
TensorFlow
An Open Source Machine Learning Framework for Everyone
-
Django
The Web framework for perfectionists with deadlines.
-
Laravel
A PHP framework for web artisans
-
D3
Bring data to life with SVG, Canvas and HTML. 📊📈🎉
-
Recommend Topics
-
javascript
JavaScript (JS) is a lightweight interpreted programming language with first-class functions.
-
web
Some thing interesting about web. New door for the world.
-
server
A server is a program made to process requests and deliver data to clients.
-
Machine learning
Machine learning is a way of modeling and interpreting data that allows a piece of software to respond intelligently.
-
Visualization
Some thing interesting about visualization, use data art
-
Game
Some thing interesting about game, make everyone happy.
Recommend Org
-
Facebook
We are working to build community through open source technology. NB: members must have two-factor auth.
-
Microsoft
Open source projects and samples from Microsoft.
-
Google
Google ❤️ Open Source for everyone.
-
Alibaba
Alibaba Open Source for everyone
-
D3
Data-Driven Documents codes.
-
Tencent
China tencent open source team.
from prawn.