Class: PangoFc::Font

Inherits:
Object
  • Object
show all
Defined in:
(unknown)

Instance Method Summary collapse

Instance Method Details

#fontmapPangoFc::FontMap

Returns fontmap.

Returns:

#fontmap=(fontmap) ⇒ PangoFc::FontMap

Parameters:

Returns:

#get_glyph(wc) ⇒ Integer

Gets the glyph index for a given Unicode character for font. If you only want to determine whether the font has the glyph, use pango_fc_font_has_char().

Parameters:

  • wc (String)

    Unicode character to look up

Returns:

  • (Integer)

    the glyph index, or 0, if the Unicode character doesn’t exist in the font.

#get_unknown_glyph(wc) ⇒ Pango::Glyph

Returns the index of a glyph suitable for drawing wc as an unknown character.

Use PANGO_GET_UNKNOWN_GLYPH() instead.

Parameters:

  • wc (String)

    the Unicode character for which a glyph is needed.

Returns:

  • (Pango::Glyph)

    a glyph index into font.

#has_char(wc) ⇒ TrueClass

Determines whether font has a glyph for the codepoint wc.

Parameters:

  • wc (String)

    Unicode codepoint to look up

Returns:

  • (TrueClass)

    true if font has the requested codepoint.

#kern_glyphs(glyphs) ⇒ nil

This function used to adjust each adjacent pair of glyphs in glyphs according to kerning information in font.

Since 1.44, it does nothing.

Parameters:

  • glyphs (Pango::GlyphString)

    a Pango::GlyphString

Returns:

  • (nil)

#lock_facePangoFc::

Gets the FreeType <type>FT_Face</type> associated with a font, This face will be kept around until you call pango_fc_font_unlock_face().

Returns:

  • (PangoFc::)

    the FreeType <type>FT_Face</type> associated with font.

#patternGObject

Returns pattern.

Returns:

  • (GObject)

    pattern

#pattern=(pattern) ⇒ GObject

Parameters:

  • pattern (GObject)

Returns:

  • (GObject)

    pattern

  • (GObject)

    pattern

#unlock_facenil

Releases a font previously obtained with pango_fc_font_lock_face().

Returns:

  • (nil)