Firstly, the shaped xpm image seems to have extraneous white space on
the left hand side. It looks like the shape mask is off by a few
pixels. I know the xpm file is OK, because it shows up perfectly in
`sxpm'.
Secondly, the count and subject text are getting truncated (overwritten
by the image).
I'd like the image to appear correctly, and really I'd like to have a
longer subject line. Am I proceeding the right way?
I've appended a uuencoded, compressed xwd image that illustrates the
problem, the xpm file itself, and my .Xdefaults settings pertaining to
xfaces:
Thanks, --- John.
Here's my .Xdefaults settings:
XFaces.allowShellResize: True
XFaces.spoolDir: /var/mail
XFaces.imagePath: /home/jsc/xfaces-3.3/images
XFaces.facedbPath: /home/jsc/xfaces-3.3/facedir/
XFaces.update: 20
XFaces.xbm.background: CadetBlue
XFaces.frame.tileWidth: 84
XFaces.imageSearch: \
beforeImage\n\
resource\n\
facedb \n\
afterImage
! Annotation defaults.
XFaces.Annotation.font: -*-helvetica-*-r-*--10-*
! Describe the annotations. A negative 'x' means pixels from the right edge
! of the face and a negitive 'y' is pixels up from the bottom.
! Here we specify what goes in each of the annotations for mail messages.
! Valid values are:
! user - The user part of the From address.
! host - The host part of the From address.
! user@host - The user and host parts of the From address.
! count - The number of messages represented by this face.
! *header - any value beginning with a '*' is expected to
! be a header name and the contents of that header
! will be displayed. For instance "*subject:" will
! display the subject line.
! Try this in your .Xdefaults as an alternative annotation scheme.
! This will display the subject line across the bottom of faces and the
! count in the upper left corner. If the face is an "unknown" face then
! the username will appear above the subject.
!
XFaces.annotationCount: 2
XFaces.annotation1.x: 2
XFaces.annotation1.y: -1
XFaces.annotation1.maxWidth: 240
XFaces.annotation1.background: CadetBlue
XFaces.annotation2.x: 2
XFaces.annotation2.y: 2
XFaces.annotation2.background: CadetBlue
XFaces.mail.annotation1: *subject:
XFaces.mail.annotation2: count
XFaces.unknownAnnotationCount: 3
XFaces.unknownAnnotation1.x: 2
XFaces.unknownAnnotation1.y: -1
XFaces.unknownAnnotation1.maxWidth: 240
XFaces.unknownAnnotation1.background: CadetBlue
XFaces.unknownAnnotation2.x: 12
XFaces.unknownAnnotation2.y: 2
XFaces.unknownAnnotation2.background: CadetBlue
XFaces.unknownAnnotation3.x: 1
XFaces.unknownAnnotation3.y: -12
XFaces.unknownAnnotation3.maxWidth: 120
XFaces.unknownAnnotation3.background: CadetBlue
XFaces.mail.unknownAnnotation1: *subject:
XFaces.mail.unknownAnnotation2: count
XFaces.mail.unknownAnnotation3: user
Here's the xpm file:
/* XPM */
static char * Sherlock-shape_xpm[] = {
/* width height ncolors chars_per_pixel */
"50 50 10 1",
" s None c None",
"` c #000000",
"a c #aa0055",
"b c #555555",
"c c #007fff",
"d c #ffaa00",
"e c #00aa55",
"g c #ff0000",
"h c #ffffff",
"i c #ffff00",
/* pixels */
" ",
" ",
" ",
" ",
" `````` ",
" `gggege`` ",
" `eeeeeeeee`` ",
" `egggegegegg`` ",
" `eeeeeeeeeeeee` ",
" `gegggegegegggeg` ",
" `gegggegegegggeg` ",
" ```gggegegegggege` ",
" `ege`ggegegegggege` ",
" `egeg`gegegegggege` ",
" `eeeee`eeeeeeeeeee` ",
" `gegegg`egegegggegeg` ",
" `eeeeee``````````````` ",
" `gege````gegegggegege` ",
" `ge``aga``gegegggegege` ",
" `g``agagag`gegegggegege` ",
" ```agagag`h``egegggegege` ",
" `eg`gagag`hhhh`egegggegeg` ",
" `eee`agaga`hhhhh`eeeeeeeee` ",
" `egeg`gagag`hhhhh``ggegggeg` ",
" `eeeee`agaga`hhhhh`````````` ",
" `egegg`gagag`h```h``h```h` ",
" `egeggg`agaga`````````````` ",
" `gegggg`gagag`````````````` ",
" `gggge`ag``a``````dd`````` ",
" ``````g`dd``d```dddd```d` ",
" ``dddd`dddddddddddd` ",
" `ddd```dddddddddddd` ",
" `dd`dd``ddd`dddd`ddd` ",
" ` `` ``d``````ddd`dddd`ddd` ",
" ` ```i` ```i i i`dddd`dddd`dd` ",
" `i`````i` ``i i ````dddddddddddd` ",
" ` ````i i```i i `ddd`ddddddddddddd` ",
" ` i i i ``i i i``````ddddddddddddd``` ",
" ``` i i ` i i` `dddddddddddddddd`` ",
" ` i i i i i`a` `dddddddddddddddddd`` ",
" ` i i i i `g` `dddddddddddddddddddd` ",
" ` i i i `ga` `ddddddddddddddddddddd` ",
" ` i i``bcbc` `dddddddddd````````ddddd` ",
" ````agabcb` `dddddddd`` `dd``ddd` ",
" agagagaga` `ddddddd` `dd`dd` ",
" `agagagagag` `dddd`` `ddd` ",
" `agagagagagag` ```` ``` ",
" `agagagagagagag` ",
" `agagagagagagagag` ",
" "
} ;
Here's the xwd dump:
begin 644 faces.xwd.Z
M'YV0 *N"0C@ $$!!!$01$40",&' 0B"(!@QX,2 "@,R##C@H<>/&2L"$ E@
M(P"' ?-Q_/$0CYDP8\K,\?BOIDV#%#_B#"C@Q8LG0)_L!#! A(A%BXP.)6#/
M'C)DB! -+5"OJM6A!O3I6[?NVK6A!VH^'(I +(":0Q-TZT:+UIX]0Q7HT3-F
MS) A0Q?41(?NV+&A#+Y\\>0)%*BA#<B0J52I7;NA#@X=<N9,Z] 'Y<J-?0CA
MSY_-!"/4!$0:T% )39]&'3IA;=NW0RG,K7MW:(6]??\^M."KM^^A%U0)'SX4
M@Y?CR(=F&,>\^5 -V+#]^A5]Z 9APEBQPCZ4PYHU@K\/[5 S7CRT#STT:\:E
M/9>A'W#AFD)_RE 09LRXV.]B:(BJ;P3XQE BZ/30"#5Y%=!0))BUX$,E&$B0
M"3;=]- )$@:$0FI02?50"JZY!==#*LQF%UX/K8";7T.Q4"%Z!+4PPPR44$(,
M,4.YP X[L\P2331#O5#3.><\2! ,WGB#"2:U/12#'WY XT@@@PEPU-NN-'6
M4#,H9HDE1A@Q% W<<(/"F2@,5<.999XYE UHHE#F4#?$Z>9#.%15DV4/Y0 .
M.!4.I4- BAD9T XU 0/,,LL,Q4-;D-(R5 \9 N##C9CB^- /DG5ZR%! 3"?J
M+T,%T<2IJ XEA PRK,?J4$.8(^NL0Q'!S*VX#E5$)KSV.I01<P0K[%!'_&@L
MD \A4562/0Z5A"RR&*740TH\1-I02[S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