Utility functions for working with fonts
Emacs Lisp Makefile
Pull request Compare This branch is even with rolandwalker:master.
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Failed to load latest commit information.
ert-tests
.gitignore
.travis.yml
Makefile
README.markdown
font-utils.el

README.markdown

Build Status

Overview

Utility functions for working with fonts in Emacs.

Quickstart

(require 'font-utils)
 
(font-utils-exists-p "Courier")

Explanation

Font-utils is a collection of functions for working with fonts. This library has no user-level interface; it is only useful for programming in Emacs Lisp.

The following functions are provided, most of which deal with font names rather than font objects:

font-utils-exists-p
font-utils-first-existing-font
font-utils-is-qualified-variant
font-utils-lenient-name-equal
font-utils-list-names
font-utils-name-from-xlfd
font-utils-normalize-name
font-utils-parse-name
font-utils-read-name

The most generally useful of these is font-utils-exists-p, which tests whether a font matching the given name is currently available for use.

To use font-utils, place the font-utils.el library somewhere Emacs can find it, and add the following to your ~/.emacs file:

(require 'font-utils)

Compatibility and Requirements

GNU Emacs version 24.4-devel     : yes, at the time of writing
GNU Emacs version 24.3           : yes
GNU Emacs version 23.3           : yes
GNU Emacs version 22.3 and lower : no

Uses if present: persistent-soft.el (Recommended)