[HarfBuzz] Questions about interacting with HarfBuzz
Behdad Esfahbod
behdad at behdad.org
Mon Nov 12 09:42:15 PST 2012
On 12-11-01 09:46 AM, Lóránt Pintér wrote:
> On Wednesday, October 24, 2012 at 10:49 PM, Behdad Esfahbod wrote:
>> I found your harfbuzz-js tree on github and took a look. I highly recommend
>> that you don't bind the *.hh files. Those are internal. The public API is
>> anything that gets installed by "make install", which happens to be *.h.
> Hm. I'm not sure how I could work with a hb_buffer_t if not by replicating its
> structure in JS first. Or to create a callback for glyph_h_advance_func etc.
> calls. For these I need to work with the .hh files. Do you see any other solution?
hb_buffer_get_glyph_infos/positions().
>>>> Can't help without seeing the code / font. Did you try the code in C first
>>>> BTW?
>>> Not yet, but I will, and report back with my findings.
>>
>> I talked to the emscripten maintainer. He thinks this should not happen
>> unless you turned unsafe optimizations on. Definitely report it.
> I will look into it later for sure, but for now it works fine with a (double)
> cast (and that actually makes more sense in JS).
Still, please file upstream so we resolve it.
--
behdad
http://behdad.org/
More information about the HarfBuzz
mailing list