I have the following in an extern:

/**
 * Convert the given text to a list of Glyph objects.
 * Note that there is no strict one-to-one mapping between characters and
 * glyphs, so the list of returned glyphs can be larger or smaller than the
 * length of the given string.
 * @param  {string} s
 * @param  {Object=} options
 * @return {opentype.Glyph[]}
 */
opentype.Font.prototype.stringToGlyphs = function(s, options) {};

The function returns an array of opentype.Glyph objects.

When I try compile a call to this function, I get the following error (in 
compc):
"Implicit coercion of a value of type Glyph to an unrelated type Array."

This seems to me like it’s probably a bug.

Harbs

Reply via email to