I have a headless Gentoo box and would like to run X app on it but forward the display to a Cygwin Xorg server running on my Windows PC.
It works but I am not sure in this case if I specify some fonts to use in the X app, which font will be actually used? the one on the Gentoo box(where the X app is running)? or the one installed in my Cygwin (where the X app is being displayed)?
For example I want to use font
DejaVu Sans Mono in urxvt, my ~/.Xresources on the Gentoo box looks like this:
URxvt*font: xft:DejaVu Sans Mono:size=12
On the Gentoo box I have the font installed and enabled. The following is the output of
eselect fontconfig list
 10-autohint.conf  10-no-sub-pixel.conf  10-scale-bitmap-fonts.conf *  10-sub-pixel-bgr.conf  10-sub-pixel-rgb.conf  10-sub-pixel-vbgr.conf  10-sub-pixel-vrgb.conf  10-unhinted.conf  11-lcdfilter-default.conf  11-lcdfilter-legacy.conf  11-lcdfilter-light.conf  20-unhint-small-dejavu-sans.conf  20-unhint-small-dejavu-sans-mono.conf  20-unhint-small-dejavu-serif.conf  20-unhint-small-vera.conf *  25-unhint-nonlatin.conf  30-metric-aliases.conf *  30-urw-aliases.conf *  40-nonlatin.conf *  45-latin.conf *  49-sansserif.conf *  50-user.conf *  51-local.conf *  57-dejavu-sans.conf  57-dejavu-sans-mono.conf *
Then run xrdb on the Gentoo box to enable the resource (this makes me believe the font on Gentoo box will be used):
When I start urxvt it complains:
urxvt: unable to load base fontset, please specify a valid one using -fn, aborting.
As grawity has pointed out, it turns out my urxvt was built without xft support. It is solved after I append
xft to the system wide
USE. Thank you very much!