FreeType  Ghostscript ѱó

----------------------------------------------------------------------------
hfftype  ƮŸ Ʈ Ͷ FreeType̺귯 Ͽ
Ghostscript Type 0 Composite Font ϴ ѱ ƮũƮ Ʈ
ѱ ƮŸ Ʈ Ͽ ķ̼ϴ Դϴ.

Ư¡

   *  ѱ ƮŸ Ʈ Ͽ ѱ ƮũƮ Ʈ 
       
   * ξ, ξ 
   * Ϻ ó (kfftype) 

ġ

ʿ ͵

   * FreeType ֽ ,
     ftp://ftp.physiol.med.tu-muenchen.de/pub/freetype/devel
        o freetype-current.tar.gz
   * Ghostscriptҽ(ü, Ʈ, zlib, libpng, jpeg̺귯),
     ftp://ftp.cs.wisc.edu/pub/ghost/aladdin/gs510
        o ghostscript-5.10.tar.gz
        o ghostscript-5.10jpeg.tar.gz
        o ghostscript-5.10libpng.tar.gz
        o ghostscript-5.10zlib.tar.gz
        o ghostscript-fonts-other-5.10.tar.gz
        o ghostscript-fonts-std-5.10.tar.gz
   * gs5-vflib Ϻ ġ
        o http://www.ldl.jaist.ac.jp/~akr/nonresearch/free-software/ghostscript/gs5.10-vflib-1.1.tar.gz
   * gs5-kfftype Ϻ FreeTypeġ
        o http://itohws03.ee.noda.sut.ac.jp/~matsuda/VFlib-FT/gs5-kfftype.tar.gz
          (32KB)
        o http://itohws03.ee.noda.sut.ac.jp/~matsuda/VFlib-FT/gs5-kfftype-patch1.diff(Dec.
          16 1997)
        o ftp://jazz.snu.ac.kr/pub/unix/gs-ko/gs5-kfftype-patch2.diff(Jan.
          18 1997)
   * gs5-hfftype ѱ FreeTypeġ
        o ftp://jazz.snu.ac.kr/pub/unix/gs-ko/gs5-hfftype-0.1.tar.gz
   * TrueTypeƮ(Ϻ, ѱ )
        o MS-Windows 95(batang.ttc, gulim.ttc)
        o Bitstream Cyberbit(cyberbit.ttf),
          http://www.bitstream.com/cyberbit/ftpread.htm
        o Unionway KSC(uwkjmf.ttf), http://www.unionway.com/download.htm
        o Ѿý (web_bt_w.ttc),
          http://www.hanyang.co.kr/webfontnews.html
        o Ÿ ڵ 2.0ڵ̳ ϼ(Wansung, platform id 3,
          encoding id 5)  ѱ ƮŸ Ʈ



, FreeType̺귯 ġմϴ. FreeType̺귯  API
Ǿ  Ƿ,  Ÿٴ ֽ  ؾ մϴ.
ǻ  ڰ ص   %Ʈ, Ʈ  ؾ ϴ
 #Ʈ ǥմϴ.

FreeType ġ

% tar xzvf freetype-current.tar.gz
% cd freetype-current
% ./configure
% make

FreeBSDڴ ý make GNU make ؾ մϴ. Ű
gmakeŰ ġϰ, gmake ϼ.

FreeType̺귯  Makefile installŸ  Ƿ,
̺귯  ġؾ մϴ.  freetype.h ̺귯
libttf.a ġϸ ˴ϴ.

# cp lib/freetype.h /usr/local/include
# cp lib/libttf.a /usr/local/lib

 ghostscript ҽ ġϸ鼭  ġ ؾ մϴ. ϴ 
⺻ ghostscript ġ  ϰڽϴ.

ghostscriptǮ

% tar xzvf ghostscript-5.10.tar.gz
% tar xzvf ghostscript-5.10zlib.tar.gz
% tar xzvf ghostscript-5.10libpng.tar.gz
% tar xzvf ghostscript-5.10jpeg.tar.gz
% mv zlib-1.0.4 gs5.10/zlib
% mv libpng-0.96 gs5.10/libpng
% mv jpeg-6a gs5.10/

 Ϻ ó  VFlibġ մϴ. ⿡ VFlib ϴ Ʈ
ghostscript óϱ  ҽ  ġ ϰ, Ϻ Ʈ 
غ  ghostscript  ʱ  ġմϴ. ߿
kfftypeġ  ̹Ƿ, VFlib ġؾ  ʿ ϴ.

% tar xzvf gs5.10-vflib-1.1.tar.gz
% patch -s -p0 < gs5.10-vflib-1.1/gs5.10-vflib-1.1.diff

VFlibġ FreeType̺귯 ̿ ƮŸ Ʈ   ְ 
ִ gs-kfftype ġ մϴ. kfftypeġ ݵ gs-VFlibġ  
 մϴ.

% tar xzvf gs5-kfftype.tar.gz
% cd kfftype
% patch -s < ../gs5-kfftype-patch1.diff

FreeType̺귯 ֱ API ġ Ѱ  ؾ մϴ.

% patch -s < ../gs5-kfftype-patch2.diff
% cp -r * ../gs5.10
% cd ..

 ѱ ƮŸ Ʈ   gs-hfftype ġ ġմϴ. ̰
gs-VFlib gs-kfftypeġ ϹǷ, ̸ gs-VFlib gs-kfftypeġ 
ξ մϴ.

% tar xzvf gs5-hfftype-0.1.tar.gz
% cd gs5-hfftype-0.1
% cp -r * ../gs5.10
% cd ..
% patch -s -p0 < gs5-hfftype-0.1/gs5.10-hfftype-0.1.diff

 Ϲ ghostscript  ܰ踦 ġ ˴ϴ.

% cd gs5.10

tar_cat unix-gcc.mak Makefile ٽ  ݴϴ. gcc-head.mak
ϴ 쿡 ݵ   Ͽ Makefile ٽ  ־
մϴ.  ׷ ʿ ϴ. ϴ unix-gcc.mak  ׳
װ ϸ ˴ϴ.

% ./tar_cat

 Makefile  մϴ. gcc ִ н ý 
unix-gcc.mak ϴ   ϹԴϴ. ġܰ迡  ڼ
 gsҽ  make.txt ϼ.

% vi unix-gcc.mak

ַ ľ   prefix GS_LIB_DEFAULT, FEATURE_DEVSԴϴ. ѱۿ
Ϻ ó   ̹ Ǿ Ƿ  κп   
ϴ. /usr/local ƴ ٸ  ġϰ ϴ 쿡 prefix,
ý DPS Ͽ Type1Ʈ ġǾ ִ   н
ý(Solaris, AIX, Digital Unix) ΰ GS_LIB_DEFAULT
Type1Ʈ Ǿ ִ θ, gs ϴ   ϰ
ϴ 쿡 FEATURE_DEVS ʿ  ߰ϼ. ,
FreeType̺귯 ϴ ġ ùٸ  ؼ XCFLAGS
-I/usr/local/include  FreeType̺귯  θ,
XLDFLAGS -L/usr/local/lib   FreeType̺귯 ̺귯
 θ ߰ ִ  ϴ.  X11̺귯  θ
캸ƾ մϴ.  Ǿ մϴ. ⺻ Makefile̳
makefile  Ƿ unix-gcc.mak ũؼ ص ϴ.

% make -f unix-gcc.mak

Ͽ  ,

# make -f unix-gcc.mak install

 α׷ ġ  ֽϴ. ghostscript ƮũƮ Ʈ
ġؾ մϴ. Ʈ ġϷ   մϴ.

# cd prefix/share/ghostscript
# ls
5.10ft
# tar xfz somewhere/ghostscript-fonts-std-5.0.tar.gz
# cd fonts
# tar xfz somewhere/ghostscript-fonts-other-5.10.tar.gz



gs ġ   Ʈ ġ ƮũƮ ̸ 
־ մϴ. ̰ Ϻ 
prefix/share/ghostscript/5.10ft/kanji/kconfig.ps ̰, ѱ 
prefix/share/ghostscript/5.10ft/hangul/hconfig.ps Դϴ. ش 
о Ʈ ϴ     Ǿ ֽϴ. ѱ Ʈ


/Batang-Medium       4400000 (/c/sys/hwin95b/fonts/batang.ttc) FreeTypehangul

  մϴ. ° ÷ θ Ȯϰ ƮŸ Ʈ Ű
̾ մϴ. Ϻ ̿ մϴ.   ִ Ʈ ѱ 
ڵ 2.0 ڵ Ʈ ϼ(÷ ID 3, ڵ ID 5)Ʈ
մϴ.  , Batang-Medium-KSC-EUC-H (ξ)
Batang-Medium-KSC-EUC-V (ξ) ΰ Ʈ  ˴ϴ. ̴
CID-Keyed font ڵ   Դϴ.

˻

ݱ ġ  Ǿ ˾ƺ ؼ غ  
  ˴ϴ. prefix/share/ghostscript/5.10ft/hangul  
 ֽϴ.

allhangul.ps             ѱ (euc-kr) մϴ.
noneo.ps                ξ    ֽϴ.

allhangul.ps Batang-Medium-KSC-EUC-H Ʈ, noneo.ps
Batang-Medium-KSC-EUC-V  Gulim-Medium-KSC-EUC-V  մϴ. ̵ Ʈ
  ų ٸ ̸̶ ش ps պκп Ʈ ̸ ٲ 
ִ κ ֽϴ. ̵  о     
Դϴ.

% ghostview allhangul.ps

[allhangul.ps Ghostview  ȭ]

% ghostview noneo.ps

[noneo.ps Ghostview  ȭ]

Ϻ͵   ֽϴ.  Ϻ   Դϴ. Ʈ MS
IE 3.0 Ϻ ŰƮ ִ msgothic.ttf  Դϴ. Ϻ Ʈ
 prefix/share/ghostscript/5.10ft/kanji/kconfig.ps  ϸ ˴ϴ.

% ghostview noneo.ps

[article9.ps Ghostview  ȭ]



hfftype   kfftype ׷   ƮũƮ  
 ù° ڰ  ũ  ʰ  찡 ֽϴ.  ڴ
ĳ̵ǹǷ, ߿  ũ  ڰ ٽ     ݺ
 ֽϴ.



ϰ    ϴ.

   * TrueType Collection(.ttc)  Ʈ  
   * kfftype  

Ÿ

   * FreeType   Ʈ̹Ƿ,   API ٲ 찡
     ֽϴ.   ؼ ѷ å .
   * .ttcƮ  ù° Ʈ  ٸ Ʈ ϰ
     ʹٸ(batang.ttcȿ  üü ϰ ϴ ) δ
     breakttc.exe ϴ    Դϴ. ̿ ؼ
     ttf2bdf-k (http://jazz.snu.ac.kr/~junker/work/ttf2bdf-k/)
     "α׷ ϱ" ϼ.
   *  ѱ Composite Font ־ ڽϴ.

 ũ

   * Ghostscript with Japanese Fonts,
     http://www.ldl.jaist.ac.jp/~akr/nonresearch/free-software/ghostscript/index.ja.html
   * FreeType and VFlib,
     http://itohws03.ee.noda.sut.ac.jp/~matsuda/VFlib-FT/index.html

----------------------------------------------------------------------------
http://jazz.snu.ac.kr/~junker/work/gs-ko/gs-ko-freetype.html
Choi Jun Ho <junker@jazz.snu.ac.kr>
Last modified: Mon Jan 19 20:11:22 1998
