Sha256: 8e5b837e5e7b50c85898b598a2f6fe8589b06c0454f83200c03595e7a85a1c4d

Contents?: true

Size: 651 Bytes

Versions: 7

Compression:

Stored size: 651 Bytes

Contents

require_relative './font/encoding'

class Wx::Font
  class << self
    # Returns the name of the platform's default font encoding 
    def get_default_encoding_name
      ENCODING_NAMES[ get_default_encoding ]
    end

    # 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).
    def set_default_encoding_name(enc)
      if flag_int = ENCODING_NAMES.index(enc.upcase)
        set_default_encoding(Wx::FontEncoding.new(flag_int))
      else
        raise ArgumentError, "Unknown font encoding name '#{enc}'"
      end
    end
  end
end

Version data entries

7 entries across 7 versions & 1 rubygems

Version Path
wxruby3-0.9.0.pre.rc.1 lib/wx/core/font.rb
wxruby3-0.9.0.pre.beta.14 lib/wx/core/font.rb
wxruby3-0.9.0.pre.beta.13 lib/wx/core/font.rb
wxruby3-0.9.0.pre.beta.11 lib/wx/core/font.rb
wxruby3-0.9.0.pre.beta.10 lib/wx/core/font.rb
wxruby3-0.9.0.pre.beta.9 lib/wx/core/font.rb
wxruby3-0.9.0.pre.beta.8 lib/wx/core/font.rb