Skip to content

rolandwalker/font-utils

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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)

About

Utility functions for working with fonts in Emacs

Resources

Stars

Watchers

Forks

Packages

No packages published