postman6 在Linux中,body和response字體顯示不正常的解決方法

在Linux中,postman的body和response使用的默認字體若是沒有安裝的話,會致使字體和光標的位置不一致,例如字體顯示長度只有30,而光標在70的位置,致使編輯困難。css

經查找css的定義在Postman/app/resources/app/js/requester.css.editor.ace_editor中定義html

"Monaco", "Menlo", "Ubuntu Mono", "Consolas", "source-code-pro", "Cousine", monospace, monospace;

有兩種解決方法:git

1。修改css爲你的系統內已經安裝的字體github

直接修改上面的css,或者添加下面代碼到Postman/app/resources/app/html/requester.htmlapp

.editor.ace_editor{
font-family: "Source Code Pro", "Consolas", "PT Mono", "Monaco", "Menlo", "Ubuntu Mono", "Cousine", "monospace" !important
}

2。安裝字體,我這應該是前兩個字體沒有安裝post

 
http://www.gringod.com/wp-upload/software/Fonts/Monaco_Linux.ttf
https://gist.github.com/epegzz/1634235/raw/4691e901750591f9cab0b4ae8b7c0731ebf28cce/Monaco_Linux-Powerline.ttf
 
https://github.com/hbin/top-programming-fonts/blob/master/Menlo-Regular.ttf
相關文章
相關標籤/搜索