Next: Utilities, Previous: REPL Servers, Up: API Reference [Contents][Index]
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).
xft-store
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"
.