public
Description: Fast, Nimble PDF Writer for Ruby
Homepage: http://prawn.majesticseacreature.com
Clone URL: git://github.com/sandal/prawn.git
Text API docs [#26]
sandal (author)
Thu Jun 26 16:19:38 -0700 2008
commit  bf20d22cde2e892bd578a81620eacdc683e57d69
tree    41dc9678cf7a46db697326a06b5b924c35a5fd17
parent  4af5a3de3ace36547c74b700da6f77e556ae821d
...
31
32
33
34
35
36
37
38
39
40
 
 
 
41
42
43
...
75
76
77
 
 
 
78
79
80
...
133
134
135
136
 
 
 
137
138
139
...
31
32
33
 
 
 
 
 
 
 
34
35
36
37
38
39
...
71
72
73
74
75
76
77
78
79
...
132
133
134
 
135
136
137
138
139
140
0
@@ -31,13 +31,9 @@ module Prawn
0
       #   pdf.text "Goodbye World", :at => [50,50], :size => 16
0
       #   pdf.text "Will be wrapped when it hits the edge of your bounding box"
0
       #
0
-      # Under Ruby 1.8 compatible implementations, all strings passed to this
0
-      # function should be encoded as UTF-8. If you gets unexpected characters
0
-      # appearing in your rendered document, check this.
0
-      #
0
-      # Under a M17n aware implementation (like Ruby 1.9), Prawn will attempt
0
-      # to convert the string to UTF-8 if necessary. An ArgumentError exception 
0
-      # will be raised if this conversion fails.
0
+      # All strings passed to this function should be encoded as UTF-8. 
0
+      # If you gets unexpected characters appearing in your rendered 
0
+      # document, check this.
0
       #
0
       # If an empty box is rendered to your PDF instead of the character you 
0
       # wanted it usually means the current font doesn't include that character.
0
@@ -75,6 +71,9 @@ module Prawn
0
         end
0
       end
0
 
0
+      # The current font metrics object.  If the font has not yet been set, this
0
+      # will default to Helvetica.
0
+      #
0
       def font_metrics
0
         @font_metrics ||= Prawn::Font::Metrics["Helvetica"]
0
       end
0
@@ -133,7 +132,9 @@ module Prawn
0
       def font_size!(size)
0
         @font_size = size unless size == nil
0
       end
0
-      
0
+     
0
+      # The current font_size being used in the document.
0
+      #
0
       def current_font_size
0
         @font_size || DEFAULT_FONT_SIZE
0
       end

Comments