--- vncserver 2003-11-01 16:41:04.000000000 -0800 +++ /usr/bin/vncserver 2003-10-12 18:31:40.000000000 -0700 @@ -41,7 +41,17 @@ # $fontPath = "unix/:7100"; # Here is another example of setting the font path: -$fontPath = "/usr/lib/X11/fonts/misc/,/usr/lib/X11/fonts/75dpi/"; +open(XFC, "/etc/X11/XF86Config"); +while () { + if (/^[ \t]+FontPath[\t ]+\"(.*)\"/) { + if ($fontPath) { + $fontPath="$fontPath,$1"; + } else { + $fontPath="$1"; + } + } +} +close XFC; # X colors database path is optional, uncomment and edit to use: # $colorPath = "/usr/lib/X11/rgb";