简体   繁体   English

使用OCaml Graphics实际更改文本大小

[英]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都不会改变……

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.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM