View Single Post
Old 01-06-2013, 01:28 PM   #20
twobob
( ͡° ͜ʖ ͡°){ʇlnɐɟ ƃǝs}Týr
twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.twobob ought to be getting tired of karma fortunes by now.
 
twobob's Avatar
 
Posts: 6,586
Karma: 6299991
Join Date: Jun 2012
Location: uti gratia usura (Yao ying da ying; Mo ying da yieng)
Device: PW-WIFI|K5-3G+WIFI| K4|K3-3G|DXG|K2| Rooted Nook Touch
Spoiler:
hmm..

I get:

[root@kindle root]# LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH Xephyr-5 :1 -title "
L:A_N:application_ID:xephyr_PC:N" -screen 600x800 -cc 4 -dpi 155 &

Quote:
[root@kindle root]# _XSERVTransSocketOpenCOTSServer: Unable to open socket for inet6
_XSERVTransOpen: transport open failed for inet6/kindle:1
_XSERVTransMakeAllCOTSServerListeners: failed to open listener for inet6
[dix] Could not init font path element /mntususr/share/fonts/X11/misc/, removing from list!
[dix] Could not init font path element /mntususr/share/fonts/X11/TTF/, removing from list!
[dix] Could not init font path element /mntususr/share/fonts/X11/OTF/, removing from list!

and then it starts...

I suppose you checked

[root@kindle root]# ls -ak /mntususr/share/fonts/x11/100dpi/font*
Quote:
/mntususr/share/fonts/x11/100dpi/fonts.alias
/mntususr/share/fonts/x11/100dpi/fonts.dir
just to like triple sure???


EDIT:

from Xephyr-5 --help


Quote:
-fn string default font name
-fp string default font path
so you point it at anything you want...

here's some useful info too I suppose
(I have custom fonts on mine on the root dir as you can see, just go pick something you want to use...)

[root@kindle 100dpi]# pwd
Quote:
/usr/share/fonts/X11/100dpi
[root@kindle 100dpi]# cat fonts.alias
Spoiler:
Quote:
!! fonts.alias -- automatically generated file. DO NOT EDIT.
!! To modify, see update-fonts-alias(8).
!! /etc/X11/fonts/100dpi/xfonts-100dpi.alias
lucidasans-bolditalic-8 -b&h-lucida-bold-i-normal-sans-11-80-100-100-p-69-iso8859-1
lucidasans-bolditalic-10 -b&h-lucida-bold-i-normal-sans-14-100-100-100-p-90-iso8859-1
lucidasans-bolditalic-12 -b&h-lucida-bold-i-normal-sans-17-120-100-100-p-108-iso8859-1
lucidasans-bolditalic-14 -b&h-lucida-bold-i-normal-sans-20-140-100-100-p-127-iso8859-1
lucidasans-bolditalic-18 -b&h-lucida-bold-i-normal-sans-25-180-100-100-p-159-iso8859-1
lucidasans-bolditalic-24 -b&h-lucida-bold-i-normal-sans-34-240-100-100-p-215-iso8859-1
lucidasans-bold-8 -b&h-lucida-bold-r-normal-sans-11-80-100-100-p-70-iso8859-1
lucidasans-bold-10 -b&h-lucida-bold-r-normal-sans-14-100-100-100-p-89-iso8859-1
lucidasans-bold-12 -b&h-lucida-bold-r-normal-sans-17-120-100-100-p-108-iso8859-1
lucidasans-bold-14 -b&h-lucida-bold-r-normal-sans-20-140-100-100-p-127-iso8859-1
lucidasans-bold-18 -b&h-lucida-bold-r-normal-sans-25-180-100-100-p-158-iso8859-1
lucidasans-bold-24 -b&h-lucida-bold-r-normal-sans-34-240-100-100-p-216-iso8859-1
lucidasans-italic-8 -b&h-lucida-medium-i-normal-sans-11-80-100-100-p-62-iso8859-1
lucidasans-italic-10 -b&h-lucida-medium-i-normal-sans-14-100-100-100-p-80-iso8859-1
lucidasans-italic-12 -b&h-lucida-medium-i-normal-sans-17-120-100-100-p-97-iso8859-1
lucidasans-italic-14 -b&h-lucida-medium-i-normal-sans-20-140-100-100-p-114-iso8859-1
lucidasans-italic-18 -b&h-lucida-medium-i-normal-sans-25-180-100-100-p-141-iso8859-1
lucidasans-italic-24 -b&h-lucida-medium-i-normal-sans-34-240-100-100-p-192-iso8859-1
lucidasans-8 -b&h-lucida-medium-r-normal-sans-11-80-100-100-p-63-iso8859-1
lucidasans-10 -b&h-lucida-medium-r-normal-sans-14-100-100-100-p-80-iso8859-1
lucidasans-12 -b&h-lucida-medium-r-normal-sans-17-120-100-100-p-96-iso8859-1
lucidasans-14 -b&h-lucida-medium-r-normal-sans-20-140-100-100-p-114-iso8859-1
lucidasans-18 -b&h-lucida-medium-r-normal-sans-25-180-100-100-p-142-iso8859-1
lucidasans-24 -b&h-lucida-medium-r-normal-sans-34-240-100-100-p-191-iso8859-1
lucidasanstypewriter-bold-8 -b&h-lucidatypewriter-bold-r-normal-sans-11-80-100-100-m-70-iso8859-1
lucidasanstypewriter-bold-10 -b&h-lucidatypewriter-bold-r-normal-sans-14-100-100-100-m-80-iso8859-1
lucidasanstypewriter-bold-12 -b&h-lucidatypewriter-bold-r-normal-sans-17-120-100-100-m-100-iso8859-1
lucidasanstypewriter-bold-14 -b&h-lucidatypewriter-bold-r-normal-sans-20-140-100-100-m-120-iso8859-1
lucidasanstypewriter-bold-18 -b&h-lucidatypewriter-bold-r-normal-sans-25-180-100-100-m-150-iso8859-1
lucidasanstypewriter-bold-24 -b&h-lucidatypewriter-bold-r-normal-sans-34-240-100-100-m-200-iso8859-1
lucidasanstypewriter-8 -b&h-lucidatypewriter-medium-r-normal-sans-11-80-100-100-m-70-iso8859-1
lucidasanstypewriter-10 -b&h-lucidatypewriter-medium-r-normal-sans-14-100-100-100-m-80-iso8859-1
lucidasanstypewriter-12 -b&h-lucidatypewriter-medium-r-normal-sans-17-120-100-100-m-100-iso8859-1
lucidasanstypewriter-14 -b&h-lucidatypewriter-medium-r-normal-sans-20-140-100-100-m-120-iso8859-1
lucidasanstypewriter-18 -b&h-lucidatypewriter-medium-r-normal-sans-25-180-100-100-m-150-iso8859-1
lucidasanstypewriter-24 -b&h-lucidatypewriter-medium-r-normal-sans-34-240-100-100-m-200-iso8859-1


There are two types of important files: fonts.dir in each of these paths, and fonts.alias in some of the paths. For example, let's go to /usr/share/fonts/X11/100dpi, and open the files. The files look similar to this:

Quote:
[fonts.dir]

366
charB08.pcf.gz -bitstream-charter-bold-r-normal--11-80-100-100-p-69-iso8859-1
charB10.pcf.gz -bitstream-charter-bold-r-normal--14-100-100-100-p-88-iso8859-1
charB12.pcf.gz -bitstream-charter-bold-r-normal--17-120-100-100-p-107-iso8859-1
charB14.pcf.gz -bitstream-charter-bold-r-normal--19-140-100-100-p-119-iso8859-1
charB18.pcf.gz -bitstream-charter-bold-r-normal--25-180-100-100-p-157-iso8859-1
...
The first line specifies the number of fonts under current directory. Following lines map file names to font names.


Quote:
[fonts.alias]

!! fonts.alias -- automatically generated file. DO NOT EDIT.
!! To modify, see update-fonts-alias(8).
!! /etc/X11/fonts/100dpi/xfonts-100dpi.alias
lucidasans-bolditalic-8 -b&h-lucida-bold-i-normal-sans-11-80-100-100-p-69-iso8859-1
lucidasans-bolditalic-10 -b&h-lucida-bold-i-normal-sans-14-100-100-100-p-90-iso8859-1
lucidasans-bolditalic-12 -b&h-lucida-bold-i-normal-sans-17-120-100-100-p-108-iso8859-1
...
This file maps font alias to font names. So it is clear that once font 'fixed' is needed, the font server search fonts.alias in each font path for a match. If the match exists, the corresponding font file is specified in fonts.dir. If no match exists the X server cannot start.

Hope this helps.

For your needs this would equate to something like: (random font chosen)

[root@kindle 100dpi]# LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH ./Xephyr-5 :1 -title "L:A_N:application_ID:xephyr_PC:N" -screen 600x800 -cc 4 -dpi 155 -fp /usr/share/fonts/X11/100dpi/ -fn "-bitstream-charter-bold-r-normal--11-80-1
00-100-p-69-iso8859-1"


or with an alias: (other random font)

[root@kindle 100dpi]# LD_LIBRARY_PATH=../lib:$LD_LIBRARY_PATH Xephyr-5 :1 -title "L:A_N:application_ID:xephyr_PC:N" -screen 600x800 -cc 4 -dpi 155 -fp /usr/share/fonts/X11/100dpi/ -fn "lucidasans-bolditalic-8"
Attached Thumbnails
Click image for larger version

Name:	TightVNC: kindle:0.0_097.png
Views:	186
Size:	5.7 KB
ID:	98917  

Last edited by twobob; 01-06-2013 at 02:33 PM. Reason: added some extra background on what is happening and why.
twobob is offline   Reply With Quote