Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

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

Open
nojb opened this issue Mar 15, 2019 · 0 comments
Open

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

nojb opened this issue Mar 15, 2019 · 0 comments
Labels
mantis Issues imported from Mantis (i.e. old...)

Comments

@nojb
Copy link
Contributor

nojb commented Mar 15, 2019

(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

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
mantis Issues imported from Mantis (i.e. old...)
Projects
None yet
Development

No branches or pull requests

2 participants