I am pleased to announce the first release of Stk, a SDL-based graphical user interface toolkit. Its interface is inspired by Gtk and should look familiar to developers using Lablgtk.
The project page: OCaml-stk: SDL-based GUI toolkit for OCaml
Chamo, a development-oriented text editor, is now based on Stk rather than Lablgtk since release 4.0.
Chamo homepage: Chamo : Chamo .
Hi, after installing chamo 4.0 with opam, when I run “chamo” it crashes immediately with Fatal error: exception Unix.Unix_error(Unix.EMFILE, "opendir", "/usr/share/fonts/truetype/roboto/unhinted/RobotoTTF")
I do have the directory in question (“/usr/share/fonts/truetype/roboto/unhinted/RobotoTTF”)
but the error is EMFILE = Too many open files by the process
which is a bit weird
Hi,
can you tell how many directories and how many .ttf files you have under /usr/share/fonts/truetype ?
At initialization, stk will lookup for available fonts, reading subdirectories and font files in parallel. Maybe it should be done sequentially instead. I’d like to test with the same numbers of dirs and files as you.
I made a change so that available fonts are search sequentially rather than in parallel.
The Font not found exception seems to indicate that, on this run, fonts could be read without opendir error (maybe due to some delay to read directories, allowing to close some before opening others). But it seems that this font is not available. Stk has a theming mecanism but it does not yet read themes from external files (but it is possible to add theme programmatically when using Stk). If you can’t install this font, you may clone the repo and set another font here.