glyph_from_string


Description:

[ Version ( since = "0.9.2" ) ]
public Bool glyph_from_string (uint8[] s, out Codepoint glyph)

Fetches the glyph ID from font that matches the specified string.

Strings of the format `gidDDD` or `uniUUUU` are parsed automatically.

<note>Note: s.length == -1 means the string is null-terminated.</note>

Parameters:

s

string to query

glyph

The glyph ID corresponding to the string requested

font

Font to work upon

len

The length of the string s

Returns:

`true` if data found, `false` otherwise