On 2/25/17, 11:42 PM, "Harbs" <harbs.li...@gmail.com> wrote:

>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.

I'm guessing you first put this code throughout externc?  What is the .as
output?  Has externc handled other typed arrays correctly? Is it supposed
to convert it to a Vector?

-Alex

Reply via email to