2.安装完成后,终端输入:gnome-tweaks
3.进入字体窗口进行放缩比例调整,调整后重新打开文本就可以看到放大了
在ubuntu下装了code::blocks,感觉和devcpp很像很像,运行d出来的终端不是系统默认的终端,而是XTerm,字小窗体小,感觉非常丑,于是就要修改一下配置文件来调整字体。首先打开配置文件,在终端输入:
sudo gedit /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) \n\
<BtnUp>: select-end(CLIPBOARD,PRIMARY,CUT_BUFFER0) \n\
Ctrl <KeyPress>P: print() \n
!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=14
!xterm*faceName: monofur:antialias=True:pixelsize=14
xter*boldFont: Bitstream Vera Sans Mono:style=Bold:pixelsize=14
xterm*faceNameDoublesize:WenQuanYi Zen Hei:antialias=True:pixelsize=14
xterm*xftAntialias: true
xterm.cjkWidth:true
XTerm*inputMethod: ibus
XTerm*preeditType: Root
我用的是基于ubuntu的衍生版,和ubuntu有些不一样,但是基本上差不多。
打开“系统设置”---直接找“字体”或者在“显示”里,会有字体设置功能。
欢迎分享,转载请注明来源:内存溢出
评论列表(0条)