ruby-****@sourc*****
ruby-****@sourc*****
2005年 11月 10日 (木) 12:21:58 JST
------------------------- REMOTE_ADDR = 15.211.169.100 REMOTE_HOST = REMOTE_USER = ruby-gnome2-hiki URL = /hiki.cgi?Pango%3A%3AContext ------------------------- @@ -109,34 +109,41 @@ * Returns: an Array of Pango::FontFamily. --- list_families - Same as Pango::Context#families. ((* Deprecated *)) + ((* Deprecated *)) Same as Pango::Context#families. * Returns: an Array of Pango::FontFamily. --- resolution Gets the resolution for the context. See Pango::Context#resolution=. - * Returns: the resolution in "dots per inch". A negative value will be returned if no resolution has previously been set. ((* Since 1.10 *)), ((* Ruby/Cairo *)) ---- resolution= - - * Returns: self ---- set_resolution - - * Returns: self + * Returns: the resolution in "dots per inch". A negative value will be returned if no resolution has previously been set. ((* Since 1.10 *)) +--- resolution=(dpi) + Sets the resolution for the context. This is a scale factor between points specified in a Pango::FontDescription and Cairo units. The default value is 96, meaning that a 10 point font will be 13 units high. (10 * 96. / 72. = 13.3). + * dpi: a Float value of the resolution in "dots per inch". (Physical inches aren't actually involved; the terminology is conventional.) A 0 or negative value means to use the resolution from the font map. ((* Since 1.10 *)) + * Returns: dpi (Float) +--- set_resolution(dpi) + Same as Pango::Context#resolution=. + * dpi: a Float value of the resolution in "dots per inch". (Physical inches aren't actually involved; the terminology is conventional.) A 0 or negative value means to use the resolution from the font map. ((* Since 1.10 *)) + * Returns: self --- font_options - - * Returns: self ---- font_options= - - * Returns: self + Gets the Cairo::FontOptions. See Pango::Context#font_options=. ((* Since 1.10 *)) + * Returns: the Cairo::FontOptions +--- font_options=(options) + Sets the Cairo::FontOptions used when rendering text with this context. These options override any options that Cairo::Context#update_context derives from the target surface. ((* Since 1.10 *)) + * options: a Caifo::FontOptions, or nil to unset any previously set options. + * Returns: options +--- set_font_options(options) + Sets the Cairo::FontOptions. ((* Since 1.10 *)) + * options: a Caifo::FontOptions, or nil to unset any previously set options. * Returns: self + +--- colormap=(colormap) + ((* Deprecated *)) This method used to set the colormap to be used for drawing with context. The colormap is now always derived from the graphics context used for drawing, so calling this method is no longer necessary. + * colormap: a Gdk::Colormap + * Returns: colormap + --- set_colormap - - * Returns: self ---- set_colormap= - - * Returns: self ---- set_font_options - - * Returns: self + ((* Deprecated *)) Same as Pango::Context#colormap=. + * Returns: self + == Constants === Direction