Parent

Files

Wx::Font

Constants

ENCODING_NAMES
String names of the constants provided by C++ (enum is originally defined inc include/wx/fontenc.h)

Public Class Methods

get_default_encoding_name() click to toggle source

Returns the name of the platform’s default font encoding

# File wx/classes/font.rb, line 103
    def get_default_encoding_name
      ENCODING_NAMES[ get_default_encoding ]
    end
set_default_encoding_name(enc) click to toggle source

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).

# 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

Disabled; run with $DEBUG to generate this.

[Validate]

Generated with the Darkfish Rdoc Generator 1.1.6.