本文介绍了使用OCaml Graphics实际更改文本大小的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我想知道如何在OCaml中设置文本大小.我试过Graphics.set_text_size应该可以做我猜得到的交易.

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

但是无论我放set_text_size 200还是set_text_size 20都不会改变……

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

推荐答案

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

这篇关于使用OCaml Graphics实际更改文本大小的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!

10-29 22:24