![Fonts.conf 파일을 사용하여 글꼴 세로 간격을 늘리는 방법은 무엇입니까?](https://linux55.com/image/157889/Fonts.conf%20%ED%8C%8C%EC%9D%BC%EC%9D%84%20%EC%82%AC%EC%9A%A9%ED%95%98%EC%97%AC%20%EA%B8%80%EA%BC%B4%20%EC%84%B8%EB%A1%9C%20%EA%B0%84%EA%B2%A9%EC%9D%84%20%EB%8A%98%EB%A6%AC%EB%8A%94%20%EB%B0%A9%EB%B2%95%EC%9D%80%20%EB%AC%B4%EC%97%87%EC%9E%85%EB%8B%88%EA%B9%8C%3F.png)
Windows 10의 NetBeans에서 편집기 글꼴을 "Courier New"로 설정하면 줄 간격이 정상이라는 것을 알았습니다. 그런 다음 글꼴이 "DialogInput"으로 설정된 경우 줄 간격은 약 1:2이므로 읽기/작업하기가 더 쉽습니다. "DialogInput" 글꼴은 단지 "Courier New"이지만 이 경우 어떤 종류의 수정이 필요합니까? CentOS에서는 아무런 차이가 없습니다. "DialogInput" 글꼴을 "Courier New" 및 일부 줄 간격 속성과 일치시킬 수 있습니까? NetBeans 속성에서 줄 간격을 설정할 수 있습니다 ~/.netbeans/11.1/config/Editors/Preferences/org-netbeans-modules-editor-settings-CustomPreferences.xml
.
<entry javaType="java.lang.Float" name="line-height-correction" xml:space="preserve">
/etc/fonts/fonts.conf
하지만 파일을 사용하여 이 작업을 수행하는 것이 가능한지 알아보려고 합니다 .
편집하다:
Dialog
글꼴은 DialogInput
Java에 의해 제어됩니다. JDK12 파일(CentOS 및 Win10)에 다음이 /usr/java/latest/lib/psfontj2d.properties
포함되어 있음을 발견했습니다.
#
# Legacy logical font family names and logical font aliases should all
# map to the primary logical font names.
#
serif=serif
times=serif
timesroman=serif
sansserif=sansserif
helvetica=sansserif
dialog=sansserif
dialoginput=monospaced
monospaced=monospaced
courier=monospaced
따라서 이러한 글꼴은 단순히 sansserif
및 입니다 monospaced
. NetBeans 설정 파일은 ~/.netbeans/11.1/config/Editors/Preferences/org-netbeans-modules-editor-settings-CustomPreferences.xml
CentOS와 Win10에서 동일합니다. 그래서 아직도 이 다른 행동을 이해할 수 없습니다..