lib/prawn/font/ttf.rb in prawn-1.3.0 vs lib/prawn/font/ttf.rb in prawn-2.0.0

- old
+ new

@@ -171,9 +171,13 @@ "Please ensure the encoding of the string you are attempting " + "to use is set correctly" end end + def to_utf8(text) + text.encode("UTF-8") + end + def glyph_present?(char) code = char.codepoints.first cmap[code] > 0 end