简体   繁体   中英

Graphics.set_font Ocaml

im using the Graphics.set_font function to change the font of a text like

Graphics.set_font "-*-fixed-medium-r-semicondensed--50-*-*-*-*-*-iso8859-1";

my question is : What is the default font used by 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.

On Windows, the gr_reset function loads the "Courier" font .

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

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