zoukankan      html  css  js  c++  java
  • 修复Ubuntu下XTerm不能正常显示中文字体的问题

    打开/etc/X11/app-defaults/XTerm在最后添加如下代码:

     Xft.dpi:96     
        xpdf.title: PDF     
        XTerm*faceSize: 10     
        XTerm*faceSize1: 10     
        XTerm*faceSize2: 10     
        XTerm*faceSize3: 10     
        XTerm*faceSize4: 10     
        XTerm*faceSize5: 10     
        XTerm*faceSize6: 10     
        XTerm*jumpScroll: true     
            
        xterm.termName: xterm-256color    
        xterm.geometry: 80x36    
        xterm*scrollBar: false    
        xterm*rightScrollBar: true    
        xterm*loginshell: true    
        xterm*cursorBlink: true    
        xterm*background:   black    
        xterm*foreground:   gray    
        xterm.borderLess: true    
        xterm.cursorBlink: true    
        xterm*colorUL: yellow    
        xterm*colorBD: white    
             
        !fix alt key input    
        xterm*eightBitInput: false    
        xterm*altSendsEscape: true   
          
        !mouse selecting to copy, ctrl-v to paste    
        !Ctrl p to print screen content to file    
        XTerm*VT100.Translations: #override     
              Ctrl <KeyPress> V: insert-selection(CLIPBOARD,PRIMARY,CUT_BUFFER0)     
              <BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0)     
              Ctrl <KeyPress> P: print()     
            
        !font and locale    
        !xterm*locale: true    
        !xterm.utf8:     true    
        !xterm*utf8Title: true  
        xterm*fontMenu*fontdefault*Label: Default    
        xterm*faceName:DejaVu Sans Mono:antialias=True:pixelsize=16    
        !xterm*faceName: monofur:antialias=True:pixelsize=20    
        xter*boldFont: Bitstream Vera Sans Mono:style=Bold:pixelsize=15    
        xterm*faceNameDoublesize:WenQuanYi Zen Hei:antialias=True:pixelsize=15    
        xterm*xftAntialias: true    
        xterm.cjkWidth:true    
        XTerm*inputMethod: ibus   
        XTerm*preeditType: Root   

    重启XTerm生效。

  • 相关阅读:
    C语言 两个跟结构(struct)有关的参数传递问题
    Linux虚拟机 Ubuntu执行sudo apt-get install出现无法解析域名
    损失函数
    决策树(分类树、回归树)
    k近邻(k-NN)算法
    机器学习和深度学习的区别
    无量纲量和有量纲量
    常用激活函数/损失函数/代价函数
    深度学习:激活函数、损失函数、优化函数的区别
    逻辑回归--推导明确,但理论较少
  • 原文地址:https://www.cnblogs.com/micky1989/p/3294184.html
Copyright © 2011-2022 走看看