Showing posts with label fonts. Show all posts
Showing posts with label fonts. Show all posts

Tuesday, March 18, 2008

Xorg undisplayed fonts

Apple Cinema Display 문제로 Sun의 X를 포기하고 Xorg를 선택한 이야기를 이곳에서 적은 적이 있다. 그 이후로 대체로 만족하며 Xorg에 적응하고 있었는데, 복병이 숨어 있었다. CDE에서 거의 모든 메뉴와 대화창에서 글자들이 나타나지 않는 것이다.

Xorg는 /etc/X11/xorg.conf 에서 fonts의 경로(path)를 읽어드려 표현한다는 점을 고려하면, CDE에서 표현하는 fonts는 이 경로들에 포함되지 않는다는 뜻이다.

이 표현의 문제는 JDS에서의 XIM(htt_server)에서도 들어났다 - XIM은 CDE나 JDS나 같은 것을 Solaris에서 사용한다, 그 기준은 CDE에서 잡혀진 듯 하다 - . 입력 언어를 전환하면, ASCII로 표현될 수 없는 문자는 XIM status window에서 빈채(blank)로 나타나는 것이다. 물론 입력에는 아무런 문제가 되지는 않았지만, XIM의 설정이라든지, 특수문자를 입력하기 위한 선택에서는 방법이 없어지는 것이다.

/etc/X11/xorg.conf 에 일상적으로 포함되지 않았지만, 필요한 fonts의 경로를 찾아내는 건 의외로 쉬운 일이었다. /etc/fonts/fonts.conf 를 참조하면 된다. 이곳에서 필요한 경로를 가지고 와서 /etc/X11/xorg.conf 에 넣어주면 끝나는 것이다.

그리하여 xorg.conf 의 속성 중 Section “Files” 부분을 아래와 같이 변경하였다.


Section "Files"
  RgbPath    "/usr/X11/lib/X11/rgb.txt"
  FontPath   "/usr/X11/lib/X11/fonts/TrueType/"
  FontPath   "/usr/X11/lib/X11/fonts/Type1/"
  FontPath   "/usr/X11/lib/X11/fonts/Type1/sun/"
  FontPath   "/usr/X11/lib/X11/fonts/F3bitmaps/"
  FontPath   "/usr/X11/lib/X11/fonts/misc/"
  FontPath   "/usr/X11/lib/X11/fonts/100dpi/"
  FontPath   "/usr/X11/lib/X11/fonts/75dpi/&quot
  #FontPath   "/usr/X11/lib/X11/fonts/local/"
  #FontPath   "/usr/X11/lib/X11/fonts/Speedo/"
  #FontPath   "/usr/X11/lib/X11/fonts/freefont/&quot
  # from /etc/fonts/fonts.conf
  FontPath  "/usr/openwin/lib/locale/KOI8-R/X11/fonts/TrueType/&quot
  FontPath  "/usr/openwin/lib/locale/ar/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/en_US.UTF-8/X11/fonts/misc/"
  FontPath  "/usr/openwin/lib/locale/hi_IN.UTF-8/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_13/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_13/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_15/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_2/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_2/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_2/X11/fonts/Type1/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_4/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_4/X11/fonts/Type1/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_5/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_5/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_5/X11/fonts/Type1/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_7/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_7/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_7/X11/fonts/Type1/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_8/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_8/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_8/X11/fonts/Type1/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_9/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_9/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/iso_8859_9/X11/fonts/Type1/"
  FontPath  "/usr/openwin/lib/locale/ja/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/ja/X11/fonts/TT/"
  FontPath  "/usr/openwin/lib/locale/ja/X11/fonts/TTbitmaps/"
  FontPath  "/usr/openwin/lib/locale/ko.UTF-8/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/ko.UTF-8/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/ko/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/ko/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/ru.ansi-1251/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/th_TH/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/th_TH/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/zh.GBK/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/zh.GBK/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/zh/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/zh/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/zh_CN.GB18030/X11/fonts/TrueType/"
  FontPath  "/usr/openwin/lib/locale/zh_HK.BIG5HK/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/zh_HK.BIG5HK/X11/fonts/TT/"
  FontPath  "/usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/zh_TW.BIG5/X11/fonts/TT/"
  FontPath  "/usr/openwin/lib/locale/zh_TW/X11/fonts/75dpi/"
  FontPath  "/usr/openwin/lib/locale/zh_TW/X11/fonts/TrueType/"
EndSection




위의 추가된 경로는 현재 시스템에 설치된 모든 locale을 포함한 결과이다. 영문과 한국어만 설치되어 있다면, 제외되어야 할 부분은 많다. 어느 경로가 어떤 locale을 지원하는지는 경로이름이 명확하여 쉽게 판단할 수 있다.

사실, Solaris에서 /usr/X11 은 /usr/openwin 으로 link되어 있다.