However at least on wine it still doesn't run, as it throws:
terminate called after throwing an instance of 'std::runtime_error'
what(): locale::facet::_S_create_c_locale name not valid
one can work around this, by replacing locale("en_US.UTF-8") with locale("C") in lib/utils/utils.cpp, but then the window only pops up for a frame, after which it throws:
terminate called after throwing an instance of 'tex::ex_invalid_state'
what(): Cannot load font file Z:\usr\share\fonts\texlive-lm-math\latinmodern-math.otf
now it is possible to build the gdi lib from meson too (but I've only tested with gcc & mingw, not microsoft's libs).
However gdi is not yet fully fixed yet. The new path methods of the Graphics2D class are not yet implemented, but I think one could implement it (https://docs.microsoft.com/en-us/windows/win32/gdiplus/-gdiplus-constructing-and-drawing-paths-use)
However at least on wine it still doesn't run, as it throws:
one can work around this, by replacing
locale("en_US.UTF-8")
withlocale("C")
inlib/utils/utils.cpp
, but then the window only pops up for a frame, after which it throws:the
c.AddFontFile(wfile.c_str())
ingraphic_win32.cpp
returns3
as status, which (if I have understood correctly) implies OutOfMemory. And OutOfMemory gets returned, when mono/gdiplus fails to convert the filepath from utf16 to utf8: https://github.com/mono/libgdiplus/blob/94a49875487e296376f209fe64b921c6020f74c0/src/font.c#L234 , but I didn't investigate further.