태그 보관물: xterm

xterm

Xft 글꼴을 사용할 때 xterm이 이중 크기 문자를 지원하지 않는 이유는 무엇입니까?

핵심 X11 글꼴xterm 을 사용 하도록 구성 할 때마다 :

*.vt100.renderFont:             False
*.vt100.locale:                 False
*.vt100.font:                   -monotype-courier new-medium-r-normal--*-120-*-*-m-*-koi8-r

이중 크기 문자를 올바르게 렌더링합니다 .

여기에 이미지 설명을 입력하십시오

그러나 클라이언트 측 글꼴을 사용하도록 구성하면 다음과 같습니다.

*.vt100.renderFont:             True
*.vt100.faceName:               Courier New:antialias=false
*.vt100.faceSize:               12
*.vt100.utf8:                   1
*.vt100.utf8Fonts:              True
*.vt100.utf8Title:              True

vttest유틸리티 를 통해 확인할 수있는 이중 크기 문자를 렌더링하지 못합니다 .

퍼티 (에 윈도우 ) 및 konsole 클라이언트 측 글꼴을 사용하고 여전히 제대로 이중 크기의 텍스트를 렌더링합니다.

내 잘못 구성 했습니까 xterm, 아니면 알려진 문제입니까?



답변

알려진 제한 사항입니다. 매뉴얼 페이지 (의 생략에 유의 말한다 트루 타입 토론에서 글꼴을) :

           Although xterm attempts to derive a bold font for other
           font selections, the font server may not cooperate.  Since
           X11R6, bitmap fonts have been scaled.  The font server claims
           to provide the bold font that xterm requests, but the
           result is not always readable.  XFree86 introduced a feature
           which can be used to suppress the scaling.  In the X server's
           configuration file (e.g., “/etc/X11/XFree86” or
           “/etc/X11/xorg.conf”), you can add “:unscaled” to the end of
           the directory specification for the “misc” fonts, which
           comprise the fixed-pitch fonts that are used by xterm.  For
           example

               FontPath                 "/usr/lib/X11/fonts/misc/"

           would become

               FontPath                 "/usr/lib/X11/fonts/misc/:unscaled"

           Depending on your configuration, the font server may have its
           own configuration file.  The same “:unscaled” can be added to
           its configuration file at the end of the directory
           specification for “misc”.

           The bitmap scaling feature is also used by xterm to
           implement VT102 double-width and double-height characters.

트루 타입 글꼴을 사용하여 두 배 / 두 배 문자 처리는 두 배 크기의 글꼴로 한 번에 한 문자 씩 그리기 / 클리핑하여 다르게 구현할 수 있습니다. 물론, 명목 바운딩 박스를 종종 무시하는 fontconfig 의 메트릭을 사용하면 결과가 멋지게 보일 것이라는 보장은 없습니다.

그만한 가치가 있기 때문에 PuTTY와 konsole은이 테스트에서 고유 한 문제가 있습니다.

PuTTY는 테스트의 선 그리기 부분을 처리하지 않으며 Konsole은 일반적으로 이상한 창 크기를 제공합니다. 또한 자세히 살펴보면 단일 너비 및 이중 너비 텍스트 ( ymmv ) 의 정렬에 약간의 차이가 있습니다.


답변