Sha256: 613cee9283a4ef4fddacb2a4741fd8c17b1f84d336d7e9928f0db2ad5aa01e00

Contents?: true

Size: 1.77 KB

Versions: 14

Compression:

Stored size: 1.77 KB

Contents

# :stopdoc:
# Copyright (c) 2023 M.J.N. Corino, The Netherlands
#
# This software is released under the MIT license.
# :startdoc:


module Wx

  class Font

    # @overload find_or_create_font(point_size, family, style, weight, underline=false, facename='', encoding=Wx::FontEncoding::FONTENCODING_DEFAULT)
    #   Finds a font of the given specification in the global font list, or creates one and adds it to the list.
    #   @param [Integer] point_size Size in points. See {Wx::Font#set_point_size} for more info.
    #   @param [Wx::FontFamily] family The font family: a generic portable way of referring to fonts without specifying a facename.
    #   @param [Wx::FontStyle] style One of {Wx::FontStyle::FONTSTYLE_NORMAL}, {Wx::FontStyle::FONTSTYLE_SLANT} and {Wx::FontStyle::FONTSTYLE_ITALIC}.
    #   @param [Wx::FontWeight] weight Font weight, sometimes also referred to as font boldness. One of the {Wx::FontWeight} enumeration values.
    #   @param [Boolean] underline The value can be true or false.
    #   @param [String] facename An optional string specifying the face name to be used. If it is an empty string, a default face name will be chosen based on the family.
    #   @param [Wx::FontEncoding] encoding An encoding which may be one of the enumeration values of {Wx::FontEncoding}. If the specified encoding isn't available, no font is created (see also Font Encodings).
    #   @return [Wx::Font]
    #   @see Wx::Font#initialize
    # @overload find_or_create_font(font_info)
    #   Finds a font of the given specification in the global font list, or creates one and adds it to the list.
    #   @param [Wx::FontInfo] font_info
    #   @return [Wx::Font]
    def self.find_or_create_font(*args) end

  end

  # In wxRuby this is simply an alias for the Font class.
  TheFontList = Font

end

Version data entries

14 entries across 14 versions & 1 rubygems

Version Path
wxruby3-1.3.1 lib/wx/doc/font.rb
wxruby3-1.3.0 lib/wx/doc/font.rb
wxruby3-1.2.1 lib/wx/doc/font.rb
wxruby3-1.2.0 lib/wx/doc/font.rb
wxruby3-1.1.2 lib/wx/doc/font.rb
wxruby3-1.1.1 lib/wx/doc/font.rb
wxruby3-1.1.0 lib/wx/doc/font.rb
wxruby3-1.0.1 lib/wx/doc/font.rb
wxruby3-0.9.8 lib/wx/doc/font.rb
wxruby3-0.9.7 lib/wx/doc/font.rb
wxruby3-0.9.5 lib/wx/doc/font.rb
wxruby3-0.9.4 lib/wx/doc/font.rb
wxruby3-0.9.3 lib/wx/doc/font.rb
wxruby3-0.9.2 lib/wx/doc/font.rb