nerdexam
CompTIA

LX0-103 · Question #117

Which of the following lines from /etc/X11/XF86Config indicates what fonts can be found on a font server?

The correct answer is C. FontPath,lunix/:7100". The FontPath directive in XF86Config specifies font locations including font servers, using unix socket notation with a port number. Choice C represents the correct syntax for pointing to a font server.

System Architecture

Question

Which of the following lines from /etc/X11/XF86Config indicates what fonts can be found on a font server?

Options

  • AFontPath= server
  • BFonts "unix/: 7100"
  • CFontPath,lunix/:7100"
  • DFonts= server
  • EFontserver = "servername"

How the community answered

(24 responses)
  • A
    4% (1)
  • B
    4% (1)
  • C
    92% (22)

Why each option

The FontPath directive in XF86Config specifies font locations including font servers, using unix socket notation with a port number. Choice C represents the correct syntax for pointing to a font server.

AFontPath= server

FontPath= with an equals sign is invalid syntax - XF86Config directives use space-separated quoted values, and 'server' alone does not specify a valid font server address.

BFonts "unix/: 7100"

'Fonts' is not a recognized XF86Config directive - the correct keyword for specifying font paths and font server addresses is FontPath.

CFontPath,lunix/:7100"Correct

FontPath is the correct XF86Config directive for specifying font source locations. The value 'unix/:7100' tells the X server to contact a font server via Unix domain socket on port 7100, the default port for the X Font Server (xfs). This is the standard method for configuring a font server connection in XFree86.

DFonts= server

'Fonts=' combines both an incorrect directive keyword and invalid equals-sign syntax and is not a valid XF86Config entry.

EFontserver = "servername"

'Fontserver' is not a valid XF86Config directive - font server references are declared using FontPath with the unix/:port syntax.

Concept tested: XF86Config FontPath font server syntax

Source: https://linux.die.net/man/5/xf86config

Topics

#FontPath#font server#XF86Config#X11 fonts

Community Discussion

No community discussion yet for this question.

Full LX0-103 Practice