Théo Winterhalter
Théo Winterhalter

Reputation: 5108

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…

Upvotes: 3

Views: 1384

Answers (2)

sa ma
sa ma

Reputation: 135

maybe for now, Graphics.set_text_size is not implemented yet.

But, you can use: set_font

set_font "-misc-dejavu sans mono-bold-r-normal--256-0-0-0-m-0-iso8859-1";

this can set font size

Upvotes: 4

Related Questions