Font setting in Linux

zhaozj2021-02-11  218

Font setting in Linux

Skill administrator (2000-12-23 09:09) 〖Back〗 〖Forward〗

In the X-WINDOW system, the font is an indispensable resource in the graphical interface. Let the user can display or enter text in the window title, menu, or text bar. 1) Setting of the word type: Take a word type path of the current X server: # xset -q New Type Directory: # xset fp ~ / myfonts or # xset fp ~ / myfonts Delete Directory: # xset - FP ~ / MyFONTS or # xset fp- ~ / myfonts When the word type directory is updated, the setting of the font path also needs to be updated: # xset fp refresh 2) Dictionary display tool XLSFONTS can display the current X server available font . Such as: # xlsfonts | GREP TIME XFD with -fn can display each of a particular font. Such as: # xfd -fn fixed & xfontsel provides a font preview window for the user to dynamically select and preview the word group loaded by the X servo program. Such as: # xfontsel & 3) Font Server Added or deleted the word path to the word servo program transmitted through a TCP / IP 埠 (Port) and X servo program. Tsinghua University's Font Server is 7100. Its writing is as follows: TCP / XFS.NTHU.EDU.TW: 7100 / All TCP: Way. Xfs.nthu.edu.tw: Host name, abbreviation, or IP address of the word servo program. 7100: The port used. All: Load all fonts of the word servo to Font Path. So the newly added word servo program is in the word type path, and its writing is as follows: # xset fp tcp / xfs.nthu.edu.tw: 7100 / all view server status: # fsinfo -server xfs.nthu.edu.tw : 7100 4) Establish your own word type directory through BDFTOPCF, first turn the .bdf's word file (instrument file) into a binary .PCF file # bdftopcf newfont.bdf copy the .PCF file to a predetermined type directory中 # cp newfont.bdf ~ / myfonts created a font library, generating Fonts.Dir # mkfontdir ~ / myfonts Last Add to the Dictionary path or update the word path can be # xset fp ~ / myfonts or # xset fp refresh

转载请注明原文地址:https://www.9cbs.com/read-3487.html

New Post(0)