Skip to content

Utility functions for working with fonts in Emacs

Notifications You must be signed in to change notification settings

oracc/font-utils

 
 

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

73 Commits
 
 
 
 
 
 
 
 
 
 

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.3-devel     : yes, at the time of writing
GNU Emacs version 24.1 & 24.2    : 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

Releases

No releases published

Packages

No packages published