ocaml / graphics

The Graphics library from OCaml, in a standalone repository
Other
58 stars 30 forks source link

Make Graphics module use modern X fonts instead of X core fonts #3

Open nojb opened 5 years ago

nojb commented 5 years ago

(The following issue was imported from the OCaml bugtracker)

Original bug ID: 4917 Reporter: Richard Jones Status: acknowledged (set by @damiendoligez on 2009-12-08T16:33:11Z) Resolution: open Priority: normal Severity: feature Version: 3.11.1 Category: otherlibs Tags: patch Monitored by: mehdi @glondu @hcarty @Chris00

Bug description

X core fonts have been deprecated for many years. Fedora are trying to identify pieces of software which still use X core fonts and could be changed to use modern X fonts (based on Xft and FontConfig). The OCaml Graphics module is one such place.

The attached patch changes the Graphics module to use modern X fonts. The changes are relatively simple - changing calls such as XDrawString to use the Xft equivalent (XftDrawString8).

One immediate advantage is that Graphics users will see anti-aliased fonts.

Another advantage is that Graphics users can specify font names like "Times-12" instead of the massive and incomprehensible XLFD strings ("--times--r-....")

File attachments