Thank you Luigi for your help. My problem was that I stripped the binary.
What I did now is: 1) luaharfbuzz.am now adds the line luatexdir/luaharfbuzz/src/luaharfbuzz/subset.c to libluaharfbuzz_a_SOURCES 2) harfbuzz.cc <http://harfbuzz.cc/> has the additional lines: #include "graph/gsubgpos-context.cc" #include "hb-subset-cff-common.cc" #include "hb-subset-cff1.cc" #include "hb-subset-cff2.cc" #include "hb-subset-input.cc" #include "hb-subset-instancer-iup.cc" #include "hb-subset-instancer-solver.cc" #include "hb-subset-plan-layout.cc" #include "hb-subset-plan-var.cc" #include "hb-subset-plan.cc" #include "hb-subset-serialize.cc" #include "hb-subset-table-cff.cc" #include "hb-subset-table-color.cc" #include "hb-subset-table-layout.cc" #include "hb-subset-table-other.cc" #include "hb-subset-table-var.cc" #include "hb-subset.cc" This is probably a bit dirty, and needs to be sorted out. 3) source/lib/harfbuzz/include/Makefile.am includes $(HARFBUZZ_SRC)/hb-subset.h \ in hdr_links 4) ran ./reautoconf in the source directory 5) ./build.sh --lua53 --nojit --luahb --nostrip ------------------------------------------------ I can now add subsetting functions to the luaharfbuzz library and for now I can create instances of variable fonts on the fly (by writing out to a temporary file). The next goal would be to have a callback which let me write the subset directly to the PDF. Thanks again Patrick _______________________________________________ dev-luatex mailing list -- [email protected] To unsubscribe send an email to [email protected]
