TrueType for XFree86 mini-HOWTO Ying Zhang, yzhang@sfu.ca 2/21/1999 �ű���: ������, postbop@hymail.hanyang.ac.kr �ű䳯: 1999�� 3�� 4�� �� ������ X ������� Ʈ��Ÿ�� �۲��� ����ϴ� ������ ���Ͽ� ����ϰ� �ִ�. �� ������ �ٽ��� ������ ���� ���� �dzʶٸ� �ȴ�. ______________________________________________________________________ ���� 1. ������ �� 2. ���� �� ��� 3. ���� 4. �ʿ��� �͵� 5. ��ġ 6. �۲� ���丮 ����� 6.1 �������� ��Ƽ�ǿ� �����ϴ� �۲� �̿��ϱ� 6.2 �� Ʈ��Ÿ�� �۲� ��ġ�ϱ� 7. �۲� ���丮 ����� 8. XFSFT�� XF86Config �����ϱ� 8.1 xfsft.conf 8.2 XF86Config 9. Ʈ��Ÿ�� �۲� ���� �����ϱ� 10. X �����ϱ� 11. �ٸ� �۲� ���ϱ� 12. �˷��� �������� ______________________________________________________________________ 1. ������ �� ���ڿ��� �̸��Ϸ� ����� ������ �� �ֽ� ��� �е鲲 ���� ���縦 �帰��. �� ������ ������� �����е��� ��� ����� �ݿ��� ���̴�. 2. ���� �� ��� ���ڴ� �� �Ͽ��� �������� �����ϴ� ������ ���� ��Ȯ���� ������ �� ����. ���⼭ ����ϴ� �͵��� �⺻������ ������ �ý����� �������� ���� ��Ͽ� �ٰ��Ѵ�. ���ڴ� �������� �ý����� ������������ �Ǵ��� �ƹ��� å���� �� �� �����Ƿ� �̷��� ���� �˰� �������� ������ ������ å�����߸� �Ѵ�. ���� �ϴ���, ����, ���� �Ǵ� ������ ���� ������ yzhang@suf.ca <mailto:yzhang@sfu.ca>�� �̸����� ������ �ٶ���. �������� ���Ͽ� ������ �����̳� �������� postbop@hymail.hanyang.ac.kr <mailto:postbop@hymail.hanyang.ac.kr>�� �̸����� ������ �ٶ���. 3. ���� ���ڴ� X �� �����Ǵ� �۲��� ���� ���ѵ� ������ ���� ���� �� �Ҹ��� ������ �־���. X�� �۲��� Ʈ��Ÿ�� �۲ð� ������ �� �����ߴ�. XFree86�� ������ �Ϸ��� �Ҽ��� �۲õ��� ���ڰ� ��������� ���� �۲ÿ� ���ϸ� ������ �����̴�. �����Ե�, �������� FreeType ������Ʈ <http://www.freetype.org/> �� XFSFT ��ġ <http://www.dcs.ed.ac.uk/home/jec/programs/xfsft>�� �������. �̰͵��� ���������� ���ؼ��� �ڼ��� �ٷ��� �ʰڴ�. ���� �ִ� �е��� ���� �湮�ϱ� �ٶ���. ������ ����ũž ��ǻ�ʹ� �������� �������� 98�� ����Ʈ�� ���� ������ ��� Ʈ��Ÿ�� �۲��� �������� 98 ��Ƽ�ǿ� ����Ǿ� �ִ�. ���ڰ� �ϰ� ���� ���� �� �۲õ��� X���� �� �� �ְ� �ϴ� ���̴�. ���ڴ� o ������ ������ 5.2 (Ŀ�� 2.2.1) o XFree86 3.3.3 �� ������ �ִ�. �������� ȯ��� �ٸ��ٸ� ������ ������ �������� ȯ�濡 �˸°� �����ϱ� �ٶ���. 4. �ʿ��� �͵� ���� �ʿ��� �͵��� ��� ���� ���´�. ���ڴ� �������� ���� ������ ���α��� ��ġ�ϱ� ���ؼ��� RPM�� ����Ѵ�. �������� �̹� X �� ��ġ�� ����ϰ� �ִٰ� �����Ѵ�. �Ʒ� ����� ���α����� ������ �ֽ�(�� ������ �ۼ��� ������)�̸� �̰͵��� rpmfind.net ���� ���ߴ�. o XFree86 3.3.3 (���� ���������� ����������, 3.3.3������ ���ڰ� ������ �ִ� Matrox G200�� ����̹��� �����ȴ�.) o freetype-1.2-1.i386.rpm o freetype-devel-1.2-1.i386.rpm o xfsft-1.0.3-1.i386.rpm o ttmkfdir.tar.gz (�Ǵ� http://www.darmstadt.gmd.de/~pommnitz/xfsft.html <http://www.darmstadt.gmd.de/~pommnitz/xfsft.html> �� �湮�Ѵ�) o �������� Ʈ��Ÿ�� �۲� ���� ���� ȭ�ϵ��� ���ϴµ� ������ ��Ҹ� ������ Jim Wadell�� Alaska Linux User Group�� ū ���縦 �帰��. �������� �� ȭ�ϵ��� ftp.aklug.org/pub/contributions/TrueType <ftp://ftp.aklug.org/pub/con� tributions/TrueType>���� ���� �� �ִ�. 5. ��ġ RPM�� ������ ��ġ�ϱⰡ �ſ� ���ٴ� ���̴�. ��ġ�ϱ� ���ؼ��� �ݵ�� root�� �Ǿ�� �Ѵ�. root�� �ǰ� �� �� �ٿ�ε��� ȭ�ϵ��� �ִ� ���丮�� �̵��� �� ������ ���� ��ġ�Ѵ�. $ rpm -Uvh freetype-1.2-i386.rpm $ rpm -Uvh freetype-devel-1.2-i386.rpm $ rpm -Uvh xfsft-1.0.3-1.i386.rpm �������� ttmkfdir�� ���� ��ġ�ؾ� �Ѵ�. $ mkdir ttmkfdir $ cd ttmkfdir $ tar -zxf ../ttmkfdir $ make FREETYPE_BASE=/usr �������� ttmkfdir�� ����ȭ���� �������. �̰��� /usr/local/bin �Ǵ� �������� �ְ� ���� ���� �����Ѵ�. �̰͵��� ���߿� fonts.dir�� fonts.scale�� ���� �� �ʿ��ϴ�. 6. �۲� ���丮 ����� ���� Ʈ��Ÿ�� �۲�(ttf)���� ���� ���丮�� ������ �Ѵ�. ���⼭ �����е��� ù ��° ������ �ϰ� �ȴ�. �������� ��Ƽ�ǿ� �ִ� �۲��� �̿��� ���ΰ� �� ���ΰ��� �����ؾ� �Ѵ�. 6.1. �������� ��Ƽ�ǿ� �����ϴ� �۲� �̿��ϱ� ���ڴ� Ʈ��Ÿ�� �۲õ��� �������� ��Ƽ�ǿ��� ����ϰ� �ִ�. �������� ��Ƽ���� /mnt/c�� ����Ʈ������ ������ �۲��� /mnt/c/windows/font�� �ִ�. ���ڴ� /usr/share/fonts/truetype�� ��¥ Ʈ��Ÿ�� �۲� ���丮�� ����Ű�� �ɺ��� ��ũ�� �������. $ mkdir /usr/share/fonts $ ln -s /mnt/c/windows/fonts /usr/share/fonts/truetype 6.2. �� Ʈ��Ÿ�� �۲� ��ġ�ϱ� ���� ��� ��Ƽ�ǿ��� ������� ������ ���� �ʰų�, �۲õ��� ���� �����ϰ� ������ ���丮�� �ϳ� ����� �����ϴ� Ʈ��Ÿ�� �۲õ��� ����ִ´�. $ mkdir /usr/share/fonts $ mkdir /usr/share/fonts/truetype 7. �۲� ���丮 ����� �۲� ���丮�� �۲��� ����־����� fonts.dir�� fonts.scale ȭ���� ������ �Ѵ�. �̰͵��� ������ �ϴ� ������ �ñ��ϸ� xfsft ��Ű���� ���� �� �������� �о�� �ٶ���. Ʈ��Ÿ�� �۲� ���丮�� �̵��ϰ� ���� ttmkfdir�� �����Ѵ�(�ð��� �� �ɸ���). $ cd /usr/share/fonts/truetype $ /usr/local/bin/ttmkfdir > fonts.scale $ mkfontdir 8. XFSFT�� XF86Config �����ϱ� ���� ���� ������. �� ���� ȭ�� /usr/etc/xfsft.conf�� /usr/X11/XF86Config�� �����ؾ� �Ѵ�. 8.1. xfsft.conf catalogue �� /usr/share/fonts/truetype�� ���ϰ� ���� �۲� ���丮�� �ּ�ó���� �Ѵ�. ���� �Ʒ��� ���� ���� ���̴�. clone-self = off client-limit = 20 catalogue = /usr/X11R6/lib/X11/fonts/Type1, /usr/X11R6/lib/X11/fonts/misc, /usr/X11R6/lib/X11/fonts/Speedo, /usr/X11R6/lib/X11/fonts/75dpi, /usr/share/fonts/truetype, # /usr/X11R6/lib/X11/fonts/100dpi use-syslog = off error-file = /var/log/xfsft-errors.log default-point-size = 120 default-resolutions = 100,100,75,75 8.2. XF86Config XFSFT�� Ʈ��Ÿ�� �۲ûӸ� �ƴ϶� �ٸ� �۲õ鵵 ó�����ش�. ���� xfsft.conf�� �۲��� �н��� �����Ǿ� ������ XF86Config���� ���� �ʿ䰡 ����. X �� Ʈ��Ÿ�� �۲� ������ �� �� �ְ� �� �ٸ� �����ָ� �ȴ�. ��� ������ XF86Config�� ���õ� ���� �ִ�. ���� �۾��� �� �� (ù°��)�� ���ϰ� ������ ���� ��� �ּ�ó�� �Ͽ���. FontPath "tcp/localhost:7100" #FontPath "/usr/X11R6/lib/X11/fonts/Type1" #FontPath "/usr/X11R6/lib/X11/fonts/Speedo" #FontPath "/usr/X11R6/lib/X11/fonts/75dpi" #FontPath "/usr/X11R6/lib/X11/fonts/100dpi" [���� : tcp/localhost:7100 �� ���� �ٶ���. �������� �� ������ ����ȣ��Ʈ ���� ���ư����� ���� ������ �� �� ���� ���̴�. ��ǻ� �������� �۲ü����� ���� �� �ְ�(ȣ��Ʈ�� monty��� �����Ѵ�) �ٸ� ��� X �������� �۲� ������ TCP/monty:7100�� ����Ű�� �� �� �ִ�. �ٸ� X �������� �� XFree86�� �Ǵ� ���� �ƴϸ� ��� X ������ �����ϴ�. (NCD X �̳� �Ǵ� ��Ÿ ���..). �̰��� ���� �ٸ� ������� �������� �۲� ������ �����ϴ� ���� ��ġ �ʴ´ٸ� ������ ��ȣ ��ġ�� ���ؾ� ���� �ǹ��Ѵ�. 7100 ��Ʈ(�Ǵ� �������� �۲� ������ �۵��ϴ� ��Ʈ) �� ������ ��Ŷ�� �ź��ϴ� ���� ������ �� �ִ�.] ������ ������. �����غ���. 9. Ʈ��Ÿ�� �۲� ���� �����ϱ� Ʈ��Ÿ�� �۲� ������ RPM���� ��ġ�ߴٸ� �ٷ� �����Ų��. $ /etc/rc.d/init.d/xfsft start �̰��� �ñ������� /usr/X11R6/bin/xfsft -port 7100 -config /usr/etc/xfsft.conf �� �����ϴ� �Ͱ� ����. Ȥ RPM���� ��ġ���� �ʾҴٸ� �̰��� rc.local �Ǵ� ������ ���� ��ũ��Ʈ�� ���� ����ִ´�. ���� ������ ������ �����̴�. ���� ���������� X �� (��)��������. 10. X �����ϱ� �������� startx��� ġ�� X �� ���۵Ǵ� ���� �˰� �ִ�. ���������� ������ ������ ���̸�, �������� �۲��� �� �� �ִ�! ���� �� ����. �ݽ��������� �����ϰ� �۲��� Times New Roman �Ǵ� Arial�� �ٲ۴�. �������� �������� ���Ҵ� ������ �۲� ��� Courier New�� �� ����. GIMP�� ���ο� �۲õ�� �Բ� ��������. X �� ������ϱ⸦ ��ġ �ʴ´ٸ� ������ �����Ѵ�. $ xset +fp tcp/localhost:7100 �̷��� ���, �۲� ����� �ٽ� ���鵵�� ���α��� ������Ѵ�. 11. �ٸ� �۲� ���ϱ� �������� ��¥ �۲õ��� ���� �� �ִ�. o Microsoft's Free TrueType Fonts <http://www.microsoft.com/typography/fontpack/> o Acid Fonts <http://www.acidcool.com/> o The Font Ring <http://www.webring.org/cgi- bin/webring?ring=fontring&list> 12. �˷��� �������� ���ڰ� ����ϴ� ���߿� ���� �������� ������ ����. o StarWriter 5.0 (Star Office�� ���� ���μ���) ���� Ʈ��Ÿ�� �۲��� �� �� ����. StarOffice�� ������ �κп����� �� ���������� StarWriter������ �� �ȴ�. o �ݽ����������� Ʈ��Ÿ�� �۲��� default fixed �Ǵ� variable font�� ����� �� Allow Scaling�� Ŭ�� �ؾ��Ѵ�. �� Ʈ��Ÿ�� �۲��� ������ 0 �� 12.0�� �� ���� ũ��ۿ� ������ �� ����.