Next: , Previous: , Up: API Reference   [Contents][Index]


3.12 Xft

Grip procedures to access Xresources ‘XFt’ related informations. The module is loaded by entering the following:

(use-modules (grip xft))

This module import and re-export the public interface of the Grip module (grip store) (See Stores).

Procedures

xft-store

Procedures

Procedure: xft-store [#:default-dpi 96] [#:reload #f]

Returns a store.

The returned store is made of all Xresources entries having ‘Xft’ as their prefix, and two additional ‘hand made’ entries:

'scale-factor

the ratio between Xft.dpi and default-dpi, rounded to two decimals.

'apply-scale-factor?

set to #f if ’scale-factor is 1.0, #t otherwise.

These last two ‘hand made’ xft store entries are (can be) used to appropriately adjust the width and the height of graphics widget, such as GtkText entries, which is, for example, what GNU Foliot does.

xft-store calls the xrdb system command. It will raise an error if it can’t find it or the if the following system call returns a non-zero code: "xrdb -query | grep Xft".