Sha256: 16ac365464b68705ed4a6f13d771e9d8110fa42b2816fb0b7e1465bc2a2b6d92
Contents?: true
Size: 1.77 KB
Versions: 2
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
2 entries across 2 versions & 1 rubygems
Version | Path |
---|---|
wxruby3-0.9.1 | lib/wx/doc/font.rb |
wxruby3-0.9.0 | lib/wx/doc/font.rb |