Class: PangoFc::Decoder

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

Overview

Class structure for Pango::FcDecoder.

Instance Method Summary collapse

Instance Method Details

#get_charset(fcfont) ⇒ fontconfig::CharSet

Generates an Fc::CharSet of supported characters for the fcfont given. The returned Fc::CharSet will be a reference to an internal value stored by the Pango::FcDecoder and must not be modified or freed.

Parameters:

Returns:

  • (fontconfig::CharSet)

    the Fc::Charset for fcfont; must not be modified or freed.

#get_glyph(fcfont, wc) ⇒ Pango::Glyph

Generates a Pango::Glyph for the given Unicode point using the custom decoder. For complex scripts where there can be multiple glyphs for a single character, the decoder will return whatever glyph is most convenient for it. (Usually whatever glyph is directly in the fonts character map table.) covered by the font.

Parameters:

  • fcfont (PangoFc::Font)

    a Pango::FcFont to query.

  • wc (Integer)

    the Unicode code point to convert to a single Pango::Glyph.

Returns:

  • (Pango::Glyph)

    the glyph index, or 0 if the glyph isn’t