I find it a *very* bad idea to have code in FreeType that would write to a file. Specially bad if that can be controlled by an env-var.
I still think what's desired can be done best by just revamping and writing custom code in FreeType itself. This is my last word on this particular topic, but I'll reply to genuine technical curiosity. behdad On Fri, Jun 12, 2020 at 8:47 AM Priyesh kumar <[email protected]> wrote: > Hi Werner, > I have updated the progress report for this week @ here > <https://docs.google.com/document/d/1X5ApmVxz0pXcGUCF9Um5VhVZV403LWDIYFbKYg1aLoQ/edit?usp=sharing> > > Thanks, > Priyesh > > On Sat, Jun 6, 2020 at 8:34 PM Werner LEMBERG <[email protected]> wrote: > >> >> > The gnulib repository provides a module 'unistd' for creating a >> > 'unistd.h' header file; this works on Windows too. >> > >> > https://www.gnu.org/software/gnulib/ >> >> By the way, the gnulib repository also provides an interface to >> threads – including Windows. If you install the corresponding modules >> you automatically get a configure option >> >> --enable-threads={posix,windows,isoc} >> >> (with MSVC and mingw support for 'windows'). The very recent commit >> 10cf67b5e333 in the gnulib repository describes the available modules >> and options for multithreading. >> >> Note that my knowledge of thread programming is zero, so please handle >> my observations with some care. >> >> Of course, it is problematic for FreeType license-wise to rely on >> gnulib since the latter uses the LGPLv2+ license. On the other hand, >> linking with a logging library would be mainly used for debugging >> purposes and not for end products, so a dependency on LGPLv2+ might be >> OK if the corresponding code is properly guarded with preprecessor >> conditionals (which is a good idea anyway). >> >> >> Werner >> > -- behdad http://behdad.org/
