static public Method

Font.set_default_encoding_name(enc)

Sets the default encoding to be enc, which may be the string name of an encoding (eg ‘UTF8’) or an internal WxWidgets flag (eg Wx::FONTENCODING_UTF8).

Source Code

# File wx/classes/font.rb, line 110
def set_default_encoding_name(enc)
  if flag_int = ENCODING_NAMES.index(enc.upcase)
    set_default_encoding(flag_int)
  else
    raise ArgumentError, "Unknown font encoding name '#{enc}'"
  end
end
Comments

Have your say
Please use Textile formatting (click here for a cheat sheet). Use <code/> and <pre/> for code samples.
Click here to login with OpenID to to post comments.