8

GitHub - rolandwalker/font-utils: Utility functions for working with fonts in Em...

 3 years ago
source link: https://github.com/rolandwalker/font-utils
Go to the source link to view the article. You can view the picture content, updated content and better typesetting reading experience. If the link is broken, please click the button below to view the snapshot at that time.
neoserver,ios ssh client

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 Joyk


Aggregate valuable and interesting links.
Joyk means Joy of geeK