[英]Graphics.set_font Ocaml
im using the Graphics.set_font function to change the font of a text like 我使用Graphics.set_font函数来改变文本的字体
Graphics.set_font "-*-fixed-medium-r-semicondensed--50-*-*-*-*-*-iso8859-1";
my question is : What is the default font used by Ocaml ? 我的问题是:Ocaml使用的默认字体是什么?
Thanks 谢谢
I'm not intimately familiar with the Graphics library, much less its source code. 我对图形库并不熟悉,更不用说它的源代码了。 But a cursory search reveals the following:
但粗略搜索显示以下内容:
On UNIX, the DEFAULT_FONT
is set to "fixed" , which presumably means it will use whatever is configured as your system's fixed-width font. 在UNIX上,
DEFAULT_FONT
设置为“fixed” ,这可能意味着它将使用配置为系统固定宽度字体的任何内容。
On Windows, the gr_reset
function loads the "Courier" font . 在Windows上,
gr_reset
函数加载“Courier”字体 。
声明:本站的技术帖子网页,遵循CC BY-SA 4.0协议,如果您需要转载,请注明本站网址或者原文地址。任何问题请咨询:yoyou2525@163.com.