[Dev-luatex] Improvements for glyph_stream_provider with TTF fonts

luigi scarso luigi.scarso at gmail.com
Sun Aug 8 12:19:36 CEST 2021


Patch is now ok, but I am perplexed by this line

-                run_callback(callback_id, "ddd->L", tex_font,
g->gd[i].gid, streamprovider, &result);
+                run_callback(callback_id, "ddd->L", tex_font,
g->gd[i].gid, 2, &result);

It's not clear why now we use 2.
Perhaps it's better to introduce another variable, i.e.
int actual_streamprovider ;
if actual_streamprovider>2 {
  actual_streamprovider=2;
}
run_callback(callback_id, "ddd->L", tex_font, g->gd[i].gid,
actual_streamprovider, &result);

Or add a comment  before , something like
/* The streamprovider here is always 2 because... */

-- 
luigi
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://mailman.ntg.nl/pipermail/dev-luatex/attachments/20210808/ea58707a/attachment.htm>


More information about the dev-luatex mailing list