Search code examples
graphicsocamltext-size

Actually changing text size with OCaml Graphics


I was wondering how to set text size in OCaml. I tried Graphics.set_text_size which should do the deal I guess.

But whether I put set_text_size 200 or set_text_size 20 doesn't change a thing…


Solution

  • Graphics.set_text_size is not implemented yet.

    https://github.com/ocaml/graphics/blob/5.1.2/src/graphics.ml#L200 https://github.com/ocaml/graphics/blob/5.1.2/src/unix/text.c#L38 https://github.com/ocaml/graphics/blob/5.1.2/src/win32/draw.c#L343