[英]Actually changing text size with OCaml Graphics
I was wondering how to set text size in OCaml. 我想知道如何在OCaml中设置文本大小。 I tried
Graphics.set_text_size
which should do the deal I guess. 我尝试了
Graphics.set_text_size
,它应该做我猜的交易。
But whether I put set_text_size 200
or set_text_size 20
doesn't change a thing… 但是,无论我将
set_text_size 200
还是set_text_size 20
都不会改变……
Graphics.set_text_size
is not implemented yet. Graphics.set_text_size
尚未实现。 https://github.com/ocaml/ocaml/blob/trunk/otherlibs/graph/graphics.ml#L165 https://github.com/ocaml/ocaml/blob/trunk/otherlibs/graph/text.c#L36 https://github.com/ocaml/ocaml/blob/trunk/otherlibs/win32graph/draw.c#L350 https://github.com/ocaml/ocaml/blob/trunk/otherlibs/graph/graphics.ml#L165 https://github.com/ocaml/ocaml/blob/trunk/otherlibs/graph/text.c#L36 https://github.com/ocaml/ocaml/blob/trunk/otherlibs/win32graph/draw.c#L350
maybe for now, Graphics.set_text_size is not implemented yet. 也许目前,Graphics.set_text_size尚未实现。
But, you can use: set_font 但是,您可以使用: set_font
set_font "-misc-dejavu sans mono-bold-r-normal--256-0-0-0-m-0-iso8859-1";
this can set font size 这可以设置字体大小
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.