[ruby-gnome2-doc-cvs] [Ruby-GNOME2 Project Website] update - Pango::FontDescription

Back to archive index

ruby-****@sourc***** ruby-****@sourc*****
2005年 11月 16日 (水) 18:37:09 JST


-------------------------
REMOTE_ADDR = 15.211.169.100
REMOTE_HOST = 
REMOTE_USER = ruby-gnome2-hiki
        URL = /hiki.cgi?Pango%3A%3AFontDescription
-------------------------
@@ -143,6 +143,70 @@
     Creates a filename representation of a font description. The filename is identical to the result from calling Pango::FontDescription#to_s, but with underscores instead of characters that are untypical in filenames, and in lower case only.
     * Returns: a filename representation of a font description.
 
+== Constants
+You can omit "FontDescription::" like as Pango::FONT_MASK_FAMILY instead of Pango::FontDescription::FONT_MASK_FAMILY.
 
+=== FontMask
+The bits in a FontMask correspond to fields in a Pango::FontDescription that have been set. 
+--- FONT_MASK_FAMILY
+    the font family is specified.
+--- FONT_MASK_STYLE
+    the font style is specified. 
+--- FONT_MASK_VARIANT
+    the font variant is specified.
+--- FONT_MASK_WEIGHT
+    the font weight is specified.
+--- FONT_MASK_STRETCH
+    the font stretch is specified.
+--- FONT_MASK_SIZE
+    the font size is specified. 
+
+=== Stretch
+An enumeration specifying the width of the font relative to other designs within a family. 
+--- STRETCH_ULTRA_CONDENSED
+--- STRETCH_EXTRA_CONDENSED
+--- STRETCH_CONDENSED
+--- STRETCH_SEMI_CONDENSED
+--- STRETCH_NORMAL
+    the normal width
+--- STRETCH_SEMI_EXPANDED
+--- STRETCH_EXPANDED
+--- STRETCH_EXTRA_EXPANDED
+--- STRETCH_ULTRA_EXPANDED
+
+=== Style
+An enumeration specifying the various slant styles possible for a font.
+--- STYLE_NORMAL
+    the font is upright. 
+--- STYLE_OBLIQUE
+    the font is slanted, but in a roman style.
+--- STYLE_ITALIC
+    the font is slanted in an italic style.
+
+=== Variant
+An enumeration specifying capitalization variant of the font.
+--- VARIANT_NORMAL
+    A normal font. 
+--- VARIANT_SMALL_CAPS
+    A font with the lower case characters replaced by smaller variants of the capital characters.  
+
+=== Weight
+An enumeration specifying the weight (boldness) of a font. This is a numerical value ranging from 100 to 900, but there are some predefined values: 
+--- WEIGHT_ULTRALIGHT
+    the ultralight weight (= 200) 
+--- WEIGHT_LIGHT
+    the light weight (=300) 
+--- WEIGHT_NORMAL
+    the default weight (= 400) 
+--- WEIGHT_SEMIBOLD
+    a weight intermediate between normal and bold (=600)
+--- WEIGHT_BOLD
+    the bold weight (= 700) 
+--- WEIGHT_ULTRABOLD
+    the ultrabold weight (= 800) 
+--- WEIGHT_HEAVY
+    the heavy weight (= 900) 
+
 == ChangeLog
-* 2005-10-13 Added. ((<Masao>))
+* 2005-11-16 Added Constants section. - ((<Masao>))
+* 2005-10-13 Added. - ((<Masao>))





ruby-gnome2-cvs メーリングリストの案内
Back to archive index