Class: Fox::FXFontDesc
- Inherits:
-
Object
- Object
- Fox::FXFontDesc
- Defined in:
- rdoc-sources/FXFont.rb
Overview
Font style
Instance Attribute Summary collapse
-
#encoding ⇒ Object
Character set encoding, such as
FONTENCODING_ISO_8859_1
orFONTENCODING_LATIN1
[Integer]. -
#face ⇒ Object
Typeface name, such as “helvetica” [String].
-
#flags ⇒ Object
Flags [Integer].
-
#setwidth ⇒ Object
Font set width, such as
FONTSETWIDTH_CONDENSED
orFONTSETWIDTH_WIDE
[Integer]. -
#size ⇒ Object
Font size in decipoints [Integer].
-
#slant ⇒ Object
Font slant, such as
FONTSLANT_REGULAR
orFONTSLANT_ITALIC
[Integer]. -
#weight ⇒ Object
Font weight, such as
FONTWEIGHT_NORMAL
orFONTWEIGHT_BOLD
[Integer].
Instance Method Summary collapse
-
#initialize ⇒ FXFontDesc
constructor
Constructor.
Constructor Details
#initialize ⇒ FXFontDesc
Constructor
35 |
# File 'rdoc-sources/FXFont.rb', line 35 def initialize ; end |
Instance Attribute Details
#encoding ⇒ Object
Character set encoding, such as FONTENCODING_ISO_8859_1
or FONTENCODING_LATIN1
[Integer]. See FXFont documentation for the complete list of character set encoding values.
23 24 25 |
# File 'rdoc-sources/FXFont.rb', line 23 def encoding @encoding end |
#face ⇒ Object
Typeface name, such as “helvetica” [String]
8 9 10 |
# File 'rdoc-sources/FXFont.rb', line 8 def face @face end |
#flags ⇒ Object
Flags [Integer]
30 31 32 |
# File 'rdoc-sources/FXFont.rb', line 30 def flags @flags end |
#setwidth ⇒ Object
Font set width, such as FONTSETWIDTH_CONDENSED
or FONTSETWIDTH_WIDE
[Integer]. See FXFont documentation for the complete list of font set width values.
27 28 29 |
# File 'rdoc-sources/FXFont.rb', line 27 def setwidth @setwidth end |
#size ⇒ Object
Font size in decipoints [Integer]
11 12 13 |
# File 'rdoc-sources/FXFont.rb', line 11 def size @size end |
#slant ⇒ Object
Font slant, such as FONTSLANT_REGULAR
or FONTSLANT_ITALIC
[Integer]. See FXFont documentation for the complete list of font slant values.
19 20 21 |
# File 'rdoc-sources/FXFont.rb', line 19 def slant @slant end |
#weight ⇒ Object
Font weight, such as FONTWEIGHT_NORMAL
or FONTWEIGHT_BOLD
[Integer]. See FXFont documentation for the complete list of font weight values.
15 16 17 |
# File 'rdoc-sources/FXFont.rb', line 15 def weight @weight end |