FONTS settings in Linux

Source: Internet
Author: User
Article title: FONTS settings in Linux. 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.
  
1) set the font path:
View the font path of X servo program: # xset-q
New Font Directory: # xset + fp ~ /Myfonts or # xset fp ++ ~ /Myfonts
Delete the 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
  
2) 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 &
  
3) the FONT Server adds or deletes the FONT servo program in the FONT path to communicate with 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:
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
  
4) Create your own font directory and convert the. bdf font file (document file) to a binary. pcf file through bdftopcf.
# 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 font path or update the font path # xset + fp ~ /Myfonts or # xset fp refresh
  
  
Related Article

Contact Us

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

  • Sales Support

    1 on 1 presale consultation

  • After-Sales Support

    24/7 Technical Support 6 Free Tickets per Quarter Faster Response

  • Alibaba Cloud offers highly flexible support services tailored to meet your exact needs.