lib/prawn/font/afm.rb
# built-in fonts only work with winansi encoding, so translate the
# string. Changes the encoding in-place, so the argument itself
# is replaced with a string in WinAnsi encoding.
#
built-in fonts only work with winansi encoding, so translate the
string. Changes the encoding in-place, so the argument itself
is replaced with a string in WinAnsi encoding.
built - in fonts only work with winansi encoding so translate the string . Changes the encoding in - place so the argument itself is replaced with a string in WinAnsi encoding .
def normalize_encoding(text) 
        enc = @@winansi
        text.unpack("U*").collect { |i| enc[i] }.pack("C*")
      rescue ArgumentError
        raise Prawn::Errors::IncompatibleStringEncoding,
          "Arguments to text methods must be UTF-8 encoded"
      end
def normalize_encoding ( text ) enc = @@winansi text . unpack ( "U*" ) . collect { | i | enc [ i ] } . pack ( "C*" ) rescue ArgumentError raise Prawn :: Errors :: IncompatibleStringEncoding , "Arguments to text methods must be UTF-8 encoded" end
built-in fonts only work with winansi encoding, so translate the
string.
built - in fonts only work with winansi encoding so translate the string .
text
<not_specific>