Class: PangoFc::Decoder

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

Overview

Class structure for PangoFcDecoder.

Instance Method Summary collapse

Instance Method Details

#get_charset(fcfont) ⇒ fontconfig::CharSet

Generates an FcCharSet of supported characters for the fcfont given.

The returned FcCharSet will be a reference to an internal value stored by the PangoFcDecoder and must not be modified or freed.

Parameters:

Returns:

  • (fontconfig::CharSet)

    the FcCharset for fcfont; must not be modified or freed.

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

Generates a PangoGlyph 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 PangoFcFont to query.

  • wc (Integer)

    the Unicode code point to convert to a single PangoGlyph.

Returns:

  • (Pango::Glyph)

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