Article Title: how to set the font in X-Window. Linux is a technology channel of the IT lab in China. Includes basic categories such as desktop applications, Linux system management, kernel research, embedded systems, and open source.
In the X Window System, fonts are an indispensable resource in the graphic interface. Allows you to display or enter text in the window header, menu, or text field.
Font path setting
View the font path of X servo Program
# Xset-q
New font directory
# Xset + fp ~ /Myfonts or
# Xset fp ++ ~ /Myfonts
Delete a font directory
# Xset-fp ~ /Myfonts or
# Xset fp -~ /Myfonts
After the font directory is updated, the font path settings also need to be updated.
# Xset fp refresh
Font display tool
Xlsfonts
Displays the fonts currently available for X servo programs. For example:
# Xlsfonts | grep time
Xfd
Each character in a specific font can be displayed with-fn. For example:
# Xfd-fn fixed &
Xfontsel
A font preview window is provided for users to dynamically select and preview the font groups loaded by X servo programs. For example:
# Xfontsel &
FONT Server)
Added or deleted to the font path
The font servo program communicates with the X servo program through a TCP/IP port. The font server of Tsinghua University has a port of 7100. The statement is as follows:
Tcp/xfs.nthu.edu.tw: 7100/all
Tcp: connection mode.
Xfs.nthu.edu.tw: The Host Name, abbreviation or IP address of the font servo program.
7100: the port used.
All: load all fonts of the Font servo program into the Font Path.
Therefore, the new font servo program is written as follows in the font path:
# Xset + fp tcp/xfs.nthu.edu.tw: 7100/all
View Server Status
# Fsinfo-server xfs.nthu.edu.tw: 7100
Create your own font directory
Through bdftopcf, The. bdf font file (document file) is converted into a binary. pcf file.
# Bdftopcf newfont. bdf
Copy the. pcf file to the pre-defined font directory.
# Cp newfont. bdf ~ /Myfonts
Create a fonts. dir Database
# Mkfontdir ~ /Myfonts
Add the last path to the path or update the path.
# Xset + fp ~ /Myfonts or
# Xset fp refresh
The content source of this page is from Internet, which doesn't represent Alibaba Cloud's opinion;
products and services mentioned on that page don't have any relationship with Alibaba Cloud. If the
content of the page makes you feel confusing, please write us an email, we will handle the problem
within 5 days after receiving your email.
If you find any instances of plagiarism from the community, please send an email to:
info-contact@alibabacloud.com
and provide relevant evidence. A staff member will contact you within 5 working days.
A Free Trial That Lets You Build Big!
Start building with 50+ products and up to 12 months usage for Elastic Compute Service