comparison man/xresources.texi @ 70193:98b37295acb8

(Face Resources): Split table into font resources and the rest. Combine similar attributes for brevity.
author Richard M. Stallman <rms@gnu.org>
date Sun, 23 Apr 2006 21:52:54 +0000
parents c51312efd7b3
children b703396a9586 2ecafc6d5db7
comparison
equal deleted inserted replaced
70192:174ade98e30b 70193:98b37295acb8
299 @end table 299 @end table
300 300
301 @node Face Resources 301 @node Face Resources
302 @appendixsec X Resources for Faces 302 @appendixsec X Resources for Faces
303 303
304 You can also use resources to customize the appearance of particular 304 You can use resources to customize the appearance of particular
305 faces (@pxref{Faces}): 305 faces (@pxref{Faces}):
306 306
307 @table @code 307 @table @code
308 @item @var{face}.attributeFont
309 Font for face @var{face}.
310 @item @var{face}.attributeForeground 308 @item @var{face}.attributeForeground
311 Foreground color for face @var{face}. 309 Foreground color for face @var{face}.
312 @item @var{face}.attributeBackground 310 @item @var{face}.attributeBackground
313 Background color for face @var{face}. 311 Background color for face @var{face}.
314 @item @var{face}.attributeUnderline 312 @item @var{face}.attributeUnderline
315 Underline flag for face @var{face}. Use @samp{on} or @samp{true} for 313 Underline flag for face @var{face}. Use @samp{on} or @samp{true} for
316 yes. 314 yes.
315 @item @var{face}.attributeStrikeThrough
316 @itemx @var{face}.attributeOverline
317 @itemx @var{face}.attributeBox
318 @itemx @var{face}.attributeInverse
319 Likewise, for other boolean font attributes.
320 @item @var{face}.attributeStipple
321 The name of a pixmap data file to use for the stipple pattern, or
322 @code{false} to not use stipple for the face @var{face}.
323 @item @var{face}.attributeBackgroundPixmap
324 The background pixmap for the face @var{face}. Should be a name of a
325 pixmap file or @code{false}.
326 @item @var{face}.attributeFont
327 Font name (full XFD name or valid X abbreviation) for face @var{face}.
328 Instead of this, you can specify the font through separate attributes.
329 @end table
330
331 Instead of using @code{attributeFont} to specify a font name, you can
332 select a font through these separate attributes:
333
334 @table @code
317 @item @var{face}.attributeFamily 335 @item @var{face}.attributeFamily
318 Font family for face @var{face}. 336 Font family for face @var{face}.
319 @item @var{face}.attributeWidth
320 Relative proportional width of the font to use for face @var{face}.
321 It should be one of @code{ultra-condensed}, @code{extra-condensed},
322 @code{condensed}, @code{semi-condensed}, @code{normal},
323 @code{semi-expanded}, @code{expanded}, @code{extra-expanded}, or
324 @code{ultra-expanded}.
325 @item @var{face}.attributeHeight 337 @item @var{face}.attributeHeight
326 Height of the font to use for face @var{face}: either an integer 338 Height of the font to use for face @var{face}: either an integer
327 specifying the height in units of 1/10@dmn{pt}, or a floating point 339 specifying the height in units of 1/10@dmn{pt}, or a floating point
328 number that specifies a scale factor to scale the underlying face's 340 number that specifies a scale factor to scale the underlying face's
329 default font, or a function to be called with the default height which 341 default font, or a function to be called with the default height which
330 will return a new height. 342 will return a new height.
331 @item @var{face}.attributeWeight 343 @item @var{face}.attributeWidth
332 A weight to use for the face @var{face}. It must be one of 344 @itemx @var{face}.attributeWeight
333 @code{ultra-bold}, @code{extra-bold}, @code{bold}, 345 @itemx @var{face}.attributeSlant
334 @code{semi-bold}, @code{normal}, @code{semi-light}, @code{light}, 346 Each of these resources corresponds to a like-named font attribute,
335 @code{extra-light}, @code{ultra-light}. 347 and you write the resource value the same as the symbol you would use
336 @item @var{face}.attributeSlant 348 for the font attribute value.
337 The slant to use for the font of face @var{face}. It must be one of
338 @code{italic}, @code{oblique}, @code{normal},
339 @code{reverse-italic}, or @code{reverse-oblique}.
340 @item @var{face}.attributeStrikeThrough
341 Whether the face @var{face} should be drawn with a line striking
342 through the characters.
343 @item @var{face}.attributeOverline
344 Whether the characters in the face @var{face} should be overlined.
345 @item @var{face}.attributeBox
346 Whether to draw a box around the characters in face @var{face}.
347 @item @var{face}.attributeInverse
348 Whether to display the characters in face @var{face} in inverse
349 video.
350 @item @var{face}.attributeStipple
351 The name of a pixmap data file to use for the stipple pattern, or
352 @code{false} to not use stipple for the face @var{face}.
353 @item @var{face}.attributeBackgroundPixmap
354 The background pixmap for the face @var{face}. Should be a name of a
355 pixmap file or @code{false}.
356 @item @var{face}.attributeBold 349 @item @var{face}.attributeBold
357 Whether to draw the characters in the face @var{face} as bold. 350 Bold flag for face @var{face}---instead of @code{attributeWeight}. Use @samp{on} or @samp{true} for
351 yes.
358 @item @var{face}.attributeItalic 352 @item @var{face}.attributeItalic
359 Whether to draw the characters in the face @var{face} as italic. 353 Italic flag for face @var{face}---instead of @code{attributeSlant}.
360 @end table 354 @end table
361 355
362 @node Lucid Resources 356 @node Lucid Resources
363 @appendixsec Lucid Menu X Resources 357 @appendixsec Lucid Menu X Resources
364 @cindex Menu X Resources (Lucid widgets) 358 @cindex Menu X Resources (Lucid widgets)