������� | ������������ | ����� | ������ | ��������
���� | ��������� | ������ | �������� ����� | �����
������� << ������  << �����  << ���

Installation of the Ukrainian PostScript fonts for X Window

Preface:

This document describes installation procedure for the Ukrainian PostScript fonts under UNIX operating system with X Window.

Ukrainian-language instructions included below.


Fonts in this directory are Cyrillic Postscript fonts for X-Windows.

  • Fonts are derived from ER True-Type fonts of Gavin Helf (see README.fonts in this directory). These were translated from TrueType to Postscript Type 1 fonts with the help of utility ttf2pt1 (see README.ttf2pt1 file in this directory).
  • fonts.scale file by Dmytro Kovalev (1999, Tokyo).
  • Together with fonts.scale file these fonts can be used in X-Windows environment on Linux or any other X11R6 system for that matter (Earlier versions of X - X11R5, R4 seem not supporting Type 1 fonts directly, you'll probably need to install font server, which is out of the scope of this document.) Utilities were compiled and tested under RedHat 5.0 Linux Intel architecture. Fonts were installed and tested under XFree86 3.3.1 on the same system and on the Accelerated X under same RedHat v 5.0.

TO INSTALL FONTS IN YOUR SYSTEM:

  • If you don't have root access -- in your local home directory.
    1. Copy all files to directory where fonts will be installed.
    2. Execute mkfontdir in this directory
            cd <fonts directory>
            mkfontdir
      
    3. Execute 2 commands:
            xset +fp <full_path_to_fonts_dir>
            xset fp rehash
      
    4. Test fonts are installed (xlsfonts, xfontsel).
    5. If all goes well you can put these 2 commands in your X-Windows startup files (.xinitrc etc.).

      mkfontdir command needs to be executed only once - there is no need to put it in any files.

  • If you have root access and want fonts be accessible for all users.
    1. Copy fonts to proper directory (usually /usr/X11R6/lib/X11/fonts ...).
    2. Add full path names to fonts directories to XWindow configurations files (/etc/X11/XF86Config for XFree86 or /etc/Xaccell for Accelerated X).

      For example:

      Configuration lines for fonts in XF86Config should read:

      -------------------- start included --------------------
      
      Section "Files"
      [...]
                
      FontPath        "/usr/X11R6/lib/X11/fonts/misc/"
      FontPath        "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
      #FontPath       "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
      #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/"
      FontPath  "/usr/X11R6/lib/X11/fonts/Ukrainian/Type1/" <-- added line
      [...]
      
      -------------------- end included --------------------
      

      (Accelerated X has similar configuration, for exact syntax please see /etc/Xaccell file).

    3. Start XWindow and test fonts.

Ukrainian part of the document is written with KOI8-U encoding. You'll need Ukrainian fonts installed in your system to be able to read document.

������������ ���������� PostScript ������ � ˳����.

   ���� �� ��������� �� ����� ����, �� �� ����� ������ ����, �� �� ���-���� ������ ���������� �������� ������ � ˳����. ���� �� �� ������ - �� ��� ������ ����, �� ������� ��� ��, �� ���-��� ������ ��� ����������� � ����� ������ � ����� ��� �������� ��� ������ �������. �� ���� ��� ��, �� ������� ������������� ������ �� ������ ApplixWare ��� WordPerfect, ��� �� ����� ������ �������� ������ ��������, ��� � ���� � ���� �� �����������.

    ��� �� ������.

    ��� �������� ���� ������� �� ���� ��������� ���������� �� ������������ ���������� PostScript Type 1 ������ �� ˳���� (��� ����-����� ����� � ���� ����, � XWindow ���� X11R6), ��� � ���������� �������� � �������� ����������� ��� ������������ ���������� ������ �� ������ ����'����. ��� �������� �� ����, �� �� ��������� ��������������� ��������.

���� �������� �����-���� ��� ��������.

   ���, ��� �� ��� ���� � ����� �������� (������, ��������) ����������� � �������� � �������� ��������� ������ (public domain). �� ��� �������� �������� ���� (������ ��������) �������� ����� ��������������� �������������� �� ����� ������� ���������� ��� ������� �� ������. ³������ ���� �������������� ����-���� ����� ��������, ��� �� ��������� � ����� ��������, ����������� �� ��������� �������������� �������� ��������. ͳ��� ������ �� �������� �� �� ����� ������� ��� ���������� �������. ������������� ��� �� �� - ������ ��� ���� ������ ������.

������������� ������ �� ������� TrueType � ������ PostScript

   ������, �� ���������������� � ��� ���������� �������� �� ��������� �������� ������������� TrueType ������ � PostScript Type 1. ������� ������ � Gavin Helf ([email protected], [email protected]) � ������ ������ ���� ���������� �� ������ ����� �� �������: http://www.brama.com/compute/windows/fonts/. ���������� ��� ������ ������ � ������ README.fonts �� erfonts.wri � ����� ��������.

    �������� ttf2pt1 ������ � ˳����, ���������� ��� ������������� ������ � ������ PostScript ���� ���� �������� �� ��������:

    True Type Font to Postscript Type 1 Converters http://www.netspace.net.au/~mheath/ttf2pt1/#download http://quadrant.netspace.net.au/ttf2pt1/

    ��� ���� ��� ���� ����������� ����������� ������, ���� ����� ���������� ������ �� ���������������. ������ ��������� �� ������� "Adding Fonts to ApplixWare" http://www.users.fast.net/~rodsmith/fonts.html � ����� ������� Rod Smith ����: "I wrote a simple shell script that automates this process; simply launch it with the name of the original TrueType font and it will create the .pfb and .afm files, assuming that ttf2pfa, ttf2pt1, and t1asm are available." ������ ����������� �� �������: http://www.users.fast.net/~rodsmith/ttf2type1

    �������� ���� ������������ � ����������������� �� ˳���� RedHat 5.0 (Pentium, 100MHz, 24Mb). ��������� � ������������ �������� �� ���� ������ �������. �����, �� ��� ����� ��������� � ������ ������������, - �� ������������ ������� ���� � ������ ����� � ��� (������ �� �� ����쳺 � �� ���� ������ ����, ���������, *.TTF). ��� ������������ ��������� ������� ����� t1asm ttf2pfa ttf2pt1 �� ttf2type1 � ����-��� ���������, ��� ������� � ����� ������ PATH (��� ������� ���� ��������� � ������� �� �� ���� �����) � � �������� � TrueType ������ ���������:

  ttf2type1 <��'�_*.ttf_�����>

������������ PostScript ������ � X Window.

���, ���� �� �� ���������� ������������� ���� (��� ������� � ��� ������ ������), �� ����� �� ���������� ��������� ����� ����������. ��� ������������ ��� ������������� ������, ��� ����-���� ����� PostScript ������ ��� ��������� ������� ���� ������� ���.

    � ������ X Window X11R6 ������ ����������������� ����-�� PostScript ������ ���� 1. � �� ������� �� � X Window � ������, �� � ������, � ���� �� ���� ������� �������, �� ������� ��������������� ��� 2 �� 3 � X11R6, ��� � �� ������� ������������ PostScript ������ � ������ X Window, �� ���������� X11R6 (����� R5 �� R4). �����, �� ���� �������, �� ��� ������ ���������� �� � ��� ������ � X11R5 �� SunOS 4.1.4 ���������� ������ �������� (��, �� ����� ������ �� ��������� � SunOS, ��� ������ �� �� ���������, ��� � �� �������� �� ����� ����). ���� �� ���� �� ������ �� ���������, ��� ������ ����-�� ��������, � ����� ���� �� ���������.

    ��� ����� ���� ���� ��� ��� ��������� ����������, � ����� ������������ ������ ���� �������, �����, ��� RedHat ˳���� v.5.0, ����������� Intel, X Window X11R6 (XFree86 3.3.2), ��� ����� ����-���� ����� ˳���� ����������� �� ����. ������ X Accelerated �������� ������ ����������� ���� ��� ���� �����, �� � XFree86.

������ ��� ������ ������������ ������:

  • ������ ������ �������� ��� ���, ��� �� ������ �� root ������, ����� ��� ���, ��� � �������������� ������� � ���� ���������� ������ ���, ��� ���� ���� ���������� ��� ��� ������������ �������;
  • ������ ������ - ��� ���, ��� �� �� ������� �� root'�, ��� � �� ��������� ������������� ������ ��� ������� � ������, � ���� ������������� ���� ����� ��������, ��� � ����� ��� �� ����.

� ���� �������� ��� ������� �������� ������ � ������� ��������� � �������� � ��� �������� ������� mkfontdir . ������� ������� � �������� ���� fonts.dir, ���� ���� ��������������� X-�������� ��� ��������� ���������� ��� ������. ��� ������������ ��������� ������ (*.bdf �� *.pcf) ���� ���������� �������� ��������� mkfontdir ������������� � ����� ������. ������ PostScript ���� ���������� � ��� �� �����, ��� ��� ������������ �������� ������� ��������� ����������. ���� �������� � ����� fonts.scale, ���� �������� � ��� �� ��������, �� � ����� ������. ��������� ����� fonts.scale �������� �� ���������� fonts.dir, � ���� � �������� ���� ����� ������ ��� ���� PostScript, �� �� ��� ����� ��������� �������. ����� fonts.dir �� fonts.scale, �������� � ��� �������� �������� �������� ������. ���� �� �������� ������ � ����� ��������� � ������ ���������, �� ��� ���� ����������� ������������� ��������� mkfontdir.

������ ������ ���������

  1. ������� ������ � ������� ���� ���������.

        ��������� ����� ��� ������ ���� ���� ���������, � ��� X ����� �� ��� ������, ����� � ˳���� �� /usr/X11R6/lib/X11/fonts. ������� ��� ��������� ���� �� ������ ../Ukrainian/Type1 � �������� ������ � ��.

       

  2. ��������� ������� mkfontdir � ����� ��������
         
         cd /usr/X11R6/lib/X11/fonts/Ukrainian/Type1
         mkfontdir     (���. ���� ��� ������������ �������)
    

       

  3. ������� ���� ��������� � �������� �� ����� ������������ X Window.

        �������� ���� ������� ����� ������� �� ����� FontPath.

        � XFree86 ����� ������ ���� ����� �� ����� /etc/X11/XF86Config (� RedHat, ���� ˳����� ������ ��������������� ���� ���� �����, ��, ��������� /usr/X11R6/lib/X11/XF86Config).

    ���������, �� ���� ������� ���� ��������� ��� ���:

         -------------------- ������� ������ --------------------
               
         Section "Files"   <----- ���� ��������� �� ������ Files (�.�.)
    
         [  . . .  ���� ����� ��������� ����� �����쳿 ]
    
         FontPath  "/usr/X11R6/lib/X11/fonts/misc/"
         FontPath  "/usr/X11R6/lib/X11/fonts/Ukrainian/"       <--- ���� 
                           �������� 
                     ������
         FontPath  "/usr/X11R6/lib/X11/fonts/Ukrainian/Type1/" <--- ������� �����
         FontPath  "/usr/X11R6/lib/X11/fonts/75dpi/:unscaled"
         #FontPath  "/usr/X11R6/lib/X11/fonts/100dpi/:unscaled"
         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/"
    
         -------------------- ����� ������ --------------------
    

    ���� ������� ����� ������� ������������, ����������� � ��������� ����� ��������������� �����. � X Accelerated ��� ���� ������ ����� /etc/Xaccel.

  4. ��������� X Window ���, ���� �� �������� � X Window, ������ � ������� � ������������ �� �����, ��� ���� ��������.

������ ������ ���������

  1. ������� ������ � ������� ���� ���������.

    � ����� ������� ��������� ����� ��� ������ ���� ���� ��������� � ����� �������� ��������, ���� �� ������ ~/fonts. ������� �� ��������� � �������� ������ � ��.

  2. ��������� ������� mkfontdir � ����� ��������
         cd ~/fonts
         mkfontdir     (���. ���� ��� ������������ �������)
    
  3. ������� ���� ��������� � �������� �� ����� ������������ X Window.

        �������� ���� ������� ����� ������� �� ����� FontPath. ij� ������� �� ���� ����� ������������ � ������������ �������, ��� ���������� ���� ������ ��������, ������� � ����� ������� ���� ������������ �� ��������� ��� ��� �� �����. ����� ������������ � ����� ������� � ������� xset.

        ����� ���������� ����� ����� �������� � ���� X ������ ���������, ������� �� ������ ������� ���� �� �� ����� �� �����, � ���� �� ������� (����� ���� ������ �������� ����� � ����������� ���'��). ���, ���� �� �� �������� � X �� ����� ������, �� �� � ���� ������ ��� ��� ��������� ������� startx.

         xset +fp /home/<user_name>/fonts     <--- ���. ������� �����
         xset  fp rehash
    

    N.B.

    ������ xset ����� �������� ������ ������� �� �������� � ��������, �����, ������� �� "~/fonts" ��� "cd ~/fonts; xset +fp ." ��������� �� ������. �������, �����, ������� �������, ���� �� �� ������ ��������� ������ ������� � ������� ������ (�� ������ ����������� ���� � � � ����� �� ����� ����'������, � ������� �������� � ��� ����� ���� �����, ����). � ����� ������� ������ 2 ������� ������ ���� �� 3 ��������:

           
           cd ~/fonts
           xset +fp `pwd`
           xset  fp rehash
    

       

    � ����� ������� ��� ���� ����������� ������������� X Window, ��� �� ���� ���������� ���� ������� ������� ����, �������� � �������. ���, ������, ��������� ���� ���� � ������ �� ������� �� ����� ������������ ������ ���������� X (����� .xinitrc, .Xsession �� .Xclients).

   � ���� ���� ��� �����, ���� �� ��� ���� �� ������ ������ ������ �� ������, ����� ����, ��� �� ����� ��� ��� � ��� ���, �� ���... � ��������� ��������� ��� �������� �� ���. ���� � ������ ��������� �� � ���, � ����� ���������� �� �������� ����� �� �������, ������, � ������� ���������, ���� �����.

   �� ��������� ���� ��� ��������. ������������ ����� ��� ������� ���������� ��� ������������� ������ ����������� ����� � ����� ��������. ���� ��� ��������� ��������� �� Intel ˳����, �� ������ ����� ���������� �� � ���� ��������� ��� ������. ����� ����� � ����������: ttf2pt1-30b1-linux-i386.tgz ������� ���� � ������������ ���� (�������� tar xvfz ttf2pt1-30b1-linux-i386.tgz) � ��������� ��������.


������� ����������:


������ ��������, [email protected]
����, ������, 1999 ��.
�����
 
[an error occurred while processing this directive] TopList
© 2000-2003, ���, ������� �������� -- ���� �� ����������, �������� ����������� -- ����� ������, ��i���� -- 08.06.2003 14:30:11