GIF89a=( �' 7IAXKgNgYvYx\%wh&h}t�h%�s%x�}9�R��&�0%� (�.��5�SD��&�a)�x5��;ͣ*ȡ&ղ)ׯ7׵<ѻ4�3�H֧KͯT��Y�aq��q��F� !� ' !� NETSCAPE2.0 , =( ��pH,�Ȥr�l:xШtJ�Z�جv��z��xL.:��z�n���|N�����~�������& !�0`9R�}��"�"a:S�~x��������g���E�������R���E����B�� ��ȸ��D���"�Ů� �H��L��D٫D�B�����D���T���H �G��A R�ڐ |�� ٭&��E8�S�kG�A�px�a��� R2XB��E8I���6X�:vT)�~��q�賥��"F~%x� � 4#Z�0O|-4Bs�X:= Q� Sal��yXJ`GȦ|s h��K3l7�B|�$'7Jީܪ0!��D�n=�P� ����0`�R�lj����v>���5 �.69�ϸd�����nlv�9��f{���Pbx �l5}�p� ��� �3a���I�O����!ܾ���i��9��#��)p�a ޽ �{�)vm��%D~ 6f��s}Œ�D�W E�`!� �&L8x� �ܝ{)x`X/>�}m��R�*|`D�=�_ ^�5 !_&'a�O�7�c��`DCx`�¥�9�Y�F���`?��"� �n@`�} lď��@4>�d S �v�xN��"@~d��=�g�s~G��� ���ud &p8Q�)ƫlXD����A~H�ySun�j���k*D�LH�] ��C"J��Xb~ʪwSt}6K,��q�S:9ت:���l�@�`�� �.۬�t9�S�[:��=`9N����{¿�A !R�:���6��x�0�_ �;������^���#����!����U���;0L1�����p% A��U̬ݵ��%�S��!���~`�G���� ���=4�np�3���������u�u�ٮ|%2�I��r�#0��J``8�@S@5� ���^`8E�]�.�S���7 � �0�j S�D� z���i�S�����!���l��w9*�D�I�nEX��� &A�Go�Qf��F��;���}�J����F5��Q|���X��T��y���]� o ��C=��:���PB@ D׽S�(>�C�x}`��xJЬ�۠��p+eE0`�}`A �/NE�� �9@��� H�7�!%B0`�l*��!8 2�%� �:�1�0E��ux%nP1�!�C)�P81l�ɸF#Ƭ{����B0>�� �b�`��O3��()yRpb��E.ZD8�H@% �Rx+%���c� ���f��b�d�`F�"8�XH"��-�|1�6iI, 2�$+](A*j� QT�o0.�U�`�R�}`�SN����yae�����b��o~ S)�y�@��3 �tT�0�&�+~L�f"�-|�~��>!�v��~�\Q1)}@�}h#aP72�"�$ !� " , =( &7IAXG]KgNgYvYxR"k\%w]'}h}t�h%�g+�s%r.m3ax3�x�}9��&��+�!7�0%� (�.�SD��&��;�"&ײ)׻4��6�K� �@pH,�Ȥr�l:xШtJ�Z�جv��z��xL.:��z�n���|N�����~�������& !�0`9R�}��"�"a:S�~x��������g �� E �� �������E �´��C���ǶR��D��"Ʒ�ʱH��M��GڬD�B����D��T����G���C�C� l&�~:'�tU�6ɹ#��)�'�.6�&��Ȼ K(8p0N�?!�2"��NIJX>R��OM '��2�*x�>#n� �@<[:�I�f ��T���Cdb��[�}E�5MBo��@�`@��tW-3 �x�B���jI�&E�9[T&$��ﯧ&"s��ȳ����dc�UUρ#���ldj?����`\}���u|3'�R]�6 �S#�!�FKL�*N E���`$�:e�YD�q�.�촁�s \-�jA 9�����-��M[�x(�s��x�|���p��}k�T�DpE@W� ��]k`1� ���Yb ��0l��*n0��"~zBd�~u�7�0Bl��0-�x~|U�U0 �h�*HS�|��e"#"?vp�i`e6^�+q��`m8 #V�� ��VS|`��"m"сSn|@:U���~`pb�G�ED����2F�I�? >�x� R� ��%~jx��<�a�9ij�2�D��&: Z`�]w���:�6��B�7eFJ|�ҧ�,���FǮcS�ʶ+B�,�ܺN���>PAD�HD��~���n��}�#�� Q��S���2�X�{�k�lQ�2�����w�|2� h9��G�,m���3��6-��E�L��I�³*K���q�`DwV�QXS��peS��� qܧTS����R�u �<�a�*At�lmE� � ��N[P1�ۦ��$��@`��Dpy�yXvCAy�B`}D� 0QwG#� �a[^�� $���Ǧ{L�"[��K�g�;�S~��GX.�goT.��ư��x���?1z��x~:�g�|�L� ��S`��0S]P�^p F<""�?!,�!N4&P� ����:T�@h�9%t��:�-~�I<`�9p I&.)^ 40D#p@�j4�ج:�01��rܼF2oW�#Z ;$Q q  �K��Nl#29 !F@�Bh�ᏬL!XF�LHKh�.�hE&J�G��<"WN!�����Y@� >R~19J"�2,/ &.GXB%�R�9B6�W]���W�I�$��9�RE8Y� ��"�A5�Q.axB�&ة�J�! �t)K%tS-�JF b�NMxL��)�R��"���6O!TH�H� 0 !� ) , =( &AXKgNgYvYxR"k\%wh&h}h%�g+�s%r.x3�x�}9��&��+�R,�!7�0%� (�.��5��&�a)��;�"&ף*Ȳ)ׯ7׻4�3��6�H֧KͻH�T��Y��q��h� ��pH,�Ȥr�l:xШtJ�Z�جv��z��xL.:��z�n���|N�����~�������& !�0`9R�}��"�"a:S�~x��������g �� E$����� � ����$E$��"��D� � ������R��C��� E ��H�M��G�D� �B��ϾD��a��`1r��Ӑ�� �o~�zU!L�C'�yW�UGt����ll�0���uG�)A�s[��x� �xO%��X2�  P�n:R/��aHae+�Dm?# ǣ6�8�J�x�Di�M���j���5oQ7�- <! *�l��R2r/a!l)d� A"�E���� &� ;��c �%����b��pe~C"B���H�eF2��`8qb�t_`ur`e� w�u3��Pv�h""�`�Íx�LĹ��3� �~ֺ�:���MDfJ� �۵�W�%�S�X �؁)�@��:E��w�u�Sxb8y\m�zS��Zb�E�L��w!y(>�"w�=�|��s�d �C�W)H�cC$�L �7r.�\{)@�`@ �X�$PD `aaG:���O�72E�amn]�"Rc�x�R� &dR8`g��i�xLR!�P &d����T���i�|�_ � Qi�#�`g:��:noM� :V �)p����W&a=�e�k� j���1߲s�x�W�jal|0��B0�, \j۴:6���C ��W��|��9���zĸV {�;��n��V�m�I��.��PN� ����C��+��By�ѾHŸ:��� 7�Y�FTk�SaoaY$D�S���29R�kt� ��f� ��:��Sp�3�I��DZ� �9���g��u�*3)O��[_hv ,���Et x�BH� �[��64M@�S�M7d�l�ܶ5-��U܍��z�R3Ԭ3~ ��P��5�g: ���kN�&0�j4���#{��3S�2�K�'ợl���2K{� {۶?~m𸧠�I�nE�='����^���_�=��~�#O���'���o..�Y�n��CSO��a��K��o,���b�����{�C�� "�{�K ��w��Ozdը�:$ ���v�] A#� ���a�z)Rx׿ƥ�d``�w-�y�f�K!����|��P��=�`�(f��'Pa ��BJa%��f�%`�}F����6>��`G"�}�=�!o`�^FP�ةQ�C���`(�}\�ݮ ��$<��n@dĠE#��U�I�!� #l��9`k���'Rr��Z�NB�MF �[�+9���-�wj���8�r� ,V�h"�|�S=�G_��"E� 0i*%̲��da0mVk�):;&6p>�jK ��# �D�:�c?:R Ӭf��I-�"�<�="��7�3S��c2RW ,�8(T"P0F¡Jh�" ; 403WebShell
403Webshell
Server IP : 173.249.157.85  /  Your IP : 18.118.253.134
Web Server : Apache
System : Linux server.frogzhost.com 3.10.0-1127.19.1.el7.x86_64 #1 SMP Tue Aug 25 17:23:54 UTC 2020 x86_64
User : econtech ( 1005)
PHP Version : 7.3.33
Disable Function : NONE
MySQL : OFF  |  cURL : OFF  |  WGET : ON  |  Perl : ON  |  Python : ON  |  Sudo : ON  |  Pkexec : ON
Directory :  /usr/share/ghostscript/lib/

Upload File :
current_dir [ Writeable ] document_root [ Writeable ]

 

Command :


[ Back ]     

Current File : /usr/share/ghostscript/lib/mkcidfm.ps
% Copyright (C) 2001-2018 Artifex Software, Inc.
% All Rights Reserved.
%
% This software is provided AS-IS with no warranty, either express or
% implied.
%
% This software is distributed under license and may not be copied,
% modified or distributed except as expressly authorized under the terms
% of the license contained in the file LICENSE in this distribution.
%
% Refer to licensing information at http://www.artifex.com or contact
% Artifex Software, Inc.,  1305 Grant Avenue - Suite 200, Novato,
% CA 94945, U.S.A., +1(415)492-9861, for further information.
%


% Generate a cidfmap file for substituting CID fonts with TrueType
% fonts, based on fonts found in the directory FONTDIR.
%
% The directory FONTDIR is searched for fonts whose filename
% matches a Path in the cidsubs dictionary.
% Any matches are written out as a CID font substitution.
%
% For each fontname and alias in the fontaliases dictionary,
% write out each alias that matches a substituted font.
% Where multiple aliases are possible, use the first match.
%
% Note that the substitutions and aliases in this file were created
% by someone who doesn't understand Chinese, Japanese or Korean.
% The initial list contains only font files found in Windows XP.
% Please submit corrections and additions.
%
% See the end of file for references and further information.
%
% Font filenames must match case.
% All font filenames are currently lower case.
%
% Usage: gswin32c -q -dBATCH -sFONTDIR=c:/windows/fonts
%                -sCIDFMAP=c:/gs/cidfmap mkcidfm.ps

systemdict /FONTDIR known not { /FONTDIR (c:/windows/fonts) def } if

systemdict /CIDFMAP known { CIDFMAP } { (%stdout) } ifelse
/cidfmap exch (w) file def

% Directory separator as used by filenameforall
/dirsep (/) def

% This dictionary contains a list of font substitutions.
% The first matching substitution in the array will be used.
/fontaliases
<<
  % otf's /AdobeMingStd-Light /AdobeHeitiStd-Regular /AdobeSongStd-Light
  % /KozMinPr6N-Regular /AdobeMyungjoStd-Medium came with Acroread 9 unix CJK pack.

  % ArialUnicode and a common font are used as a last-resort catch-all
  % in most cases.

  % Traditional Chinese
  % Mingliu and Kaiu are known to use patented TT instructions
  /MSung-Light [ /MingLiU /ArialUnicodeMS-CNS ]
  /MSung-Medium [ /MingLiU /ArialUnicodeMS-CNS ]
  /MHei-Medium [ /MicrosoftJhengHeiRegular /ArialUnicodeMS-CNS /MingLiU ]
  /MKai-Medium [ /DFKaiShu-SB-Estd-BF /Arial-Unicode-MS /MingLiU /ArialUnicodeMS-CNS ]
  /AdobeMingStd-Light [ /MingLiU /ArialUnicodeMS-CNS ]

  % Simplified Chinese
  /STSong-Light [ /SimSun /SimSun-18030 /ArialUnicodeMS-GB ]
  /STFangsong-Light [ /FangSong /SimSun /ArialUnicodeMS-GB ]
  /STHeiti-Regular [ /MicrosoftYaHei /SimHei /ArialUnicodeMS-GB ]
  /STKaiti-Regular [ /KaiTi /SimHei /ArialUnicodeMS-GB ]
  /AdobeHeitiStd-Regular [ /MicrosoftYaHei /SimHei /ArialUnicodeMS-GB ]
  /AdobeSongStd-Light [ /SimSun /ArialUnicodeMS-GB ]

  % Japanese
  /Ryumin-Light [ /MS-Mincho04 /MS-Mincho /ArialUnicodeMS-JP ]
  /Ryumin-Medium [ /MS-Mincho04 /MS-Mincho /ArialUnicodeMS-JP ]
  /GothicBBB-Medium [ /MS-Gothic04 /MS-Gothic /Meiryo /ArialUnicodeMS-JP ]
  /HeiseiMin-W3 [ /MS-Mincho04 /MS-Mincho /ArialUnicodeMS-JP ]
  /HeiseiKakuGo-W5 [ /MS-Gothic04 /MS-Gothic /Meiryo /ArialUnicodeMS-JP ]
  /KozMinPr6N-Regular [ /MS-Mincho04 /MS-Mincho /ArialUnicodeMS-JP ]

  % Korean
  % Malgun seems to have a full set of Hangu but not much of Kanji glyphs
  % "Gulim Old Hangul Jamo" has Hangu but no Kanji, and PMmy has Kanji but
  % no Hangu. Neither are useful for Korean users.
  /HYSMyeongJo-Medium [ /Batang /NewBatang /GulimChe /ArialUnicodeMS-KR /MalgunGothicRegular ]
  /HYRGoThic-Medium [ /Gulim /NewGulim /GulimChe /ArialUnicodeMS-KR /MalgunGothicRegular ]
  /HYGoThic-Medium [ /Dotum /NewGulim /GulimChe /ArialUnicodeMS-KR /MalgunGothicRegular ]
  /AdobeMyungjoStd-Medium [ /Batang /NewBatang /GulimChe /ArialUnicodeMS-KR /MalgunGothicRegular ]
>>
def

% This dictionary contains a list of CID substitutions
%  Many ttc's have an older ttf version - be sure to put the ttf entries later.
/cidsubs
<<
  % Simplified Chinese
  /SimHei
  <<
   /FileType /TrueType
   /Path (simhei.ttf)
   /SubfontID 0
   /CSI [(GB1) 2]
  >>

  /SimSun
  <<
   /FileType /TrueType
   /Path (simsun.ttc)
   /SubfontID 0
   /CSI [(GB1) 2]
  >>

  /NSimSun
  <<
   /FileType /TrueType
   /Path (simsun.ttc)
   /SubfontID 1
   /CSI [(GB1) 2]
  >>

  /SimSun-oldttf
  <<
   /FileType /TrueType
   /Path (simsun.ttf)
   /SubfontID 0
   /CSI [(GB1) 2]
  >>

  /KaiTi
  <<
   /FileType /TrueType
   /Path (simkai.ttf)
   /SubfontID 0
   /CSI [(GB1) 2]
  >>

  /LiSu
  <<
   /FileType /TrueType
   /Path (simli.ttf)
   /SubfontID 0
   /CSI [(GB1) 2]
  >>

  /SimSun-18030
  <<
   /FileType /TrueType
   /Path (simsun18030.ttc)
   /SubfontID 0
   /CSI [(GB1) 2]
  >>

  /NSimSun-18030
  <<
   /FileType /TrueType
   /Path (simsun18030.ttc)
   /SubfontID 1
   /CSI [(GB1) 2]
  >>

  /YouYuan
  <<
   /FileType /TrueType
   /Path (simyou.ttf)
   /SubfontID 0
   /CSI [(GB1) 2]
  >>

  /FangSong
  <<
   /FileType /TrueType
   /Path (simfang.ttf)
   /SubfontID 0
   /CSI [(GB1) 2]
  >>

  /MicrosoftYaHei
  <<
   /FileType /TrueType
   /Path (msyh.ttf)
   /SubfontID 0
   /CSI [(GB1) 2]
  >>

  /MicrosoftYaHeiBold
  <<
   /FileType /TrueType
   /Path (msyhbd.ttf)
   /SubfontID 0
   /CSI [(GB1) 2]
  >>

  /MS-Song
  <<
   /FileType /TrueType
   /Path (mssong.ttf)
   /SubfontID 0
   /CSI [(GB1) 2]
  >>

  /MS-Hei
  <<
   /FileType /TrueType
   /Path (mshei.ttf)
   /SubfontID 0
   /CSI [(GB1) 2]
  >>

  /ArialUnicodeMS-GB
  <<
   /FileType /TrueType
   /Path (arialuni.ttf)
   /SubfontID 0
   /CSI [(GB1) 2]
  >>

  % Traditional Chinese
  /MingLiU
  <<
   /FileType /TrueType
   /Path (mingliu.ttc)
   /SubfontID 0
   /CSI [(CNS1) 2]
  >>

  /PMingLiU
  <<
   /FileType /TrueType
   /Path (mingliu.ttc)
   /SubfontID 1
   /CSI [(CNS1) 2]
  >>

  % It probably should be ttf (ttc a typo), but we'll keep this entry just in case.
  /Arial-Unicode-MS
  <<
   /FileType /TrueType
   /Path (arialuni.ttc)
   /SubfontID 0
   /CSI [(CNS1) 2]
  >>

  /MicrosoftJhengHeiRegular
  <<
   /FileType /TrueType
   /Path (msjh.ttf)
   /SubfontID 0
   /CSI [(CNS1) 2]
  >>

  /MicrosoftJhengHeiBold
  <<
   /FileType /TrueType
   /Path (msjhbd.ttf)
   /SubfontID 0
   /CSI [(CNS1) 2]
  >>

  /MingLiU-oldttf
  <<
   /FileType /TrueType
   /Path (mingliu.ttf)
   /SubfontID 0
   /CSI [(CNS1) 2]
  >>

  /DFKaiShu-SB-Estd-BF
  <<
   /FileType /TrueType
   /Path (kaiu.ttf)
   /SubfontID 0
   /CSI [(CNS1) 2]
  >>

  /ArialUnicodeMS-CNS
  <<
    /FileType /TrueType
    /Path (arialuni.ttf)
    /SubfontID 0
    /CSI [(CNS1) 2]
  >>

  % Japanese
  /MS-Gothic
  <<
   /FileType /TrueType
   /Path (msgothic.ttc)
   /SubfontID 0
   /CSI [(Japan1) 3]
  >>

  /MS-PGothic
  <<
   /FileType /TrueType
   /Path (msgothic.ttc)
   /SubfontID 1
   /CSI [(Japan1) 3]
  >>

  /MS-UI-Gothic
  <<
   /FileType /TrueType
   /Path (msgothic.ttc)
   /SubfontID 2
   /CSI [(Japan1) 3]
  >>

  /MS-Mincho
  <<
   /FileType /TrueType
   /Path (msmincho.ttc)
   /SubfontID 0
   /CSI [(Japan1) 3]
  >>

  /MS-PMincho
  <<
   /FileType /TrueType
   /Path (msmincho.ttc)
   /SubfontID 1
   /CSI [(Japan1) 3]
  >>

  % An XP update ships the Vista (JIS2004) version of msgothic.ttc/msmincho.ttc renamed
  /MS-Gothic04
  <<
   /FileType /TrueType
   /Path (msgoth04.ttc)
   /SubfontID 0
   /CSI [(Japan1) 3]
  >>

  /MS-PGothic04
  <<
   /FileType /TrueType
   /Path (msgoth04.ttc)
   /SubfontID 1
   /CSI [(Japan1) 3]
  >>

  /MS-UI-Gothic04
  <<
   /FileType /TrueType
   /Path (msgoth04.ttc)
   /SubfontID 2
   /CSI [(Japan1) 3]
  >>

  /MS-Mincho04
  <<
   /FileType /TrueType
   /Path (msmin04.ttc)
   /SubfontID 0
   /CSI [(Japan1) 3]
  >>

  /MS-PMincho04
  <<
   /FileType /TrueType
   /Path (msmin04.ttc)
   /SubfontID 1
   /CSI [(Japan1) 3]
  >>

  /MS-Mincho-oldttf
  <<
   /FileType /TrueType
   /Path (msmincho.ttf)
   /SubfontID 0
   /CSI [(Japan1) 3]
  >>

  /MS-Gothic-oldttf
  <<
   /FileType /TrueType
   /Path (msgothic.ttf)
   /SubfontID 0
   /CSI [(Japan1) 3]
  >>

  % Newer meiryo.ttc and meiryob.ttc have subfont 2,3. Leave those out for the time being
  /Meiryo
  <<
   /FileType /TrueType
   /Path (meiryo.ttc)
   /SubfontID 0
   /CSI [(Japan1) 3]
  >>

  /Meiryo-Italic
  <<
   /FileType /TrueType
   /Path (meiryo.ttc)
   /SubfontID 1
   /CSI [(Japan1) 3]
  >>

  /Meiryo-Bold
  <<
   /FileType /TrueType
   /Path (meiryob.ttc)
   /SubfontID 0
   /CSI [(Japan1) 3]
  >>

  /Meiryo-BoldItalic
  <<
   /FileType /TrueType
   /Path (meiryob.ttc)
   /SubfontID 1
   /CSI [(Japan1) 3]
  >>

  /ArialUnicodeMS-JP
  <<
   /FileType /TrueType
   /Path (arialuni.ttf)
   /SubfontID 0
   /CSI [(Japan1) 3]
  >>

  % Korean
  /Batang
  <<
   /FileType /TrueType
   /Path (batang.ttc)
   /SubfontID 0
   /CSI [(Korea1) 3]
  >>

  /BatangChe
  <<
   /FileType /TrueType
   /Path (batang.ttc)
   /SubfontID 1
   /CSI [(Korea1) 3]
  >>

  /Gungsuh
  <<
   /FileType /TrueType
   /Path (batang.ttc)
   /SubfontID 2
   /CSI [(Korea1) 3]
  >>

  /GungsuhChe
  <<
   /FileType /TrueType
   /Path (batang.ttc)
   /SubfontID 3
   /CSI [(Korea1) 3]
  >>

  /Gulim
  <<
   /FileType /TrueType
   /Path (gulim.ttc)
   /SubfontID 0
   /CSI [(Korea1) 3]
  >>

  /GulimChe
  <<
   /FileType /TrueType
   /Path (gulim.ttc)
   /SubfontID 1
   /CSI [(Korea1) 3]
  >>

  /Dotum
  <<
   /FileType /TrueType
   /Path (gulim.ttc)
   /SubfontID 2
   /CSI [(Korea1) 3]
  >>

  /DotumChe
  <<
   /FileType /TrueType
   /Path (gulim.ttc)
   /SubfontID 3
   /CSI [(Korea1) 3]
  >>

  /MalgunGothicRegular
  <<
   /FileType /TrueType
   /Path (malgun.ttf)
   /SubfontID 0
   /CSI [(Korea1) 3]
  >>

  /MalgunGothicBold
  <<
   /FileType /TrueType
   /Path (malgunbd.ttf)
   /SubfontID 0
   /CSI [(Korea1) 3]
  >>

  /NewBatang
  <<
   /FileType /TrueType
   /Path (nbatang.ttf)
   /SubfontID 0
   /CSI [(Korea1) 3]
  >>

  /NewGulim
  <<
   /FileType /TrueType
   /Path (ngulim.ttf)
   /SubfontID 0
   /CSI [(Korea1) 3]
  >>

  /GulimChe-oldttf
  <<
   /FileType /TrueType
   /Path (gulimche.ttf)
   /SubfontID 0
   /CSI [(Korea1) 3]
  >>

  /ArialUnicodeMS-KR
  <<
   /FileType /TrueType
   /Path (arialuni.ttf)
   /SubfontID 0
   /CSI [(Korea1) 3]
  >>
>>
def

% A dictionary for storing the names and paths of found fonts
/foundfonts 50 dict def

% Get the basename of a path
% For example, (c:/windows/fonts/msmincho.ps) --> (msmincho.ps)
/basename { % path -- subpath
  { dirsep search
    {pop pop}
    {exit}
    ifelse
  } loop
} def

% Convert string (font file name) to lowercase, take care not to touch
% non-upper case letters. There are a few similiar routines elsewhere
% for reference:
%   /.ToLower in lib/pdf2dsc.ps
%   /toupper in lib/printafm.ps
%   /.lowerstring in Resource/Init/gs_fonts.ps
/lowercase {
  dup length 1 sub  -1 0 {
      1 index exch 2 copy
      get
      dup dup 65 ge exch 90 le and {
          2#00100000 or
          } if
      put
      } for
} def

% Check if a font basename matches one of the possible cid substitutions.
% If it does, add the font and full path to the foundfonts dictionary
/checkfont {
  dup basename
  lowercase
  cidsubs
  {
    /Path get
    2 index eq  % Match case only
    {
      foundfonts exch
      3 index dup length string copy put
    }
    {
      pop
    }
    ifelse
  }
  forall
  pop pop
} def

% Add all matching fonts to foundfonts dictionary
/findfonts { % path --
  dup length 2 add string dup 3 1 roll copy pop
  dup dup length 2 sub dirsep 0 get put
  dup dup length 1 sub (*) 0 get put
  /checkfont load 256 string filenameforall
} def

% Write out a cid substition, using the full font path
% name is the font name, e.g. /MS-Mincho
% path is the full path to the font file, e.g. (c:\windows\fonts\msmincho.ttc)
% subs is the dictionary for CID font substition, from cidsubs
/emitsubs { % name path subs --
  3 -1 roll cidfmap exch write==only % name
  cidfmap ( << ) writestring
  % path subs
  {
   1 index /Path eq {pop 1 index} if % use full path, not basename
   exch cidfmap exch write==only cidfmap ( ) writestring
   cidfmap exch write==only cidfmap ( ) writestring
  } forall
  cidfmap (>> ;\n) writestring
  pop
} def

% Write out all known cid substitutions.
/writesubs { % ---
  cidfmap (% Substitutions\n) writestring
  foundfonts
  {
    1 index cidsubs exch known
    {
      1 index cidsubs exch get % name path subs
      emitsubs
    }
    {
      pop pop
    }
    ifelse
  }
  forall
} def

% Write out aliases for which the cid substituted font exists.
/writealiases { % --
  cidfmap (\n% Aliases\n) writestring
  fontaliases
  {
    % name aliasarray
    {
      % name alias
      foundfonts 1 index known
      {
        1 index cidfmap exch write==only cidfmap ( ) writestring
        cidfmap exch write==only cidfmap ( ;\n) writestring
        exit % after first match
      }
      {
        pop % didn't find this name
      }
      ifelse
    } forall
    % name
    pop
  }
  forall
} def

% Write out a new cidfmap file to stdout
/writecidfmap { % path --
  cidfmap (%!\n% cidfmap generated automatically by mkcidfm.ps from fonts found in\n) writestring
  cidfmap (%   ) writestring
  dup cidfmap exch writestring cidfmap (\n\n) writestring
  findfonts
  writesubs
  writealiases
} def

FONTDIR writecidfmap

%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%%
%
% For what fonts ship with which microsoft product, see:
% http://www.microsoft.com/typography/Fonts/product.aspx
%
% A reasonably clean Vista box comes with:
%  ARIALUNI.TTF  meiryob.ttc   msjh.ttf      simhei.ttf
%  batang.ttc    meiryo.ttc    msmincho.ttc  simkai.ttf
%  gulim.ttc     mingliub.ttc  MSMINCHO.TTF  simsunb.ttf
%  kaiu.ttf      mingliu.ttc   msyhbd.ttf    simsun.ttc
%  malgunbd.ttf  msgothic.ttc  msyh.ttf
%  malgun.ttf    msjhbd.ttf    simfang.ttf
%
% Here is a non-exhaustive list of CJK fonts found on various MS systems for reference:
% File            Size         Version    Glyphs     Charmaps          Postscript Name                          Codepage
% ======================================================================================================================
% arialuni.ttf    24172892     0.86       51180      (1,0)(3,1)        ArialUnicodeMS
% arialuni.ttf    23275812     1.01       50377      (3,1)             ArialUnicodeMS                           932,936,949,950
% batang.ttc      16258580     2.21       39680      (3,1)             Batang/BatangChe/Gungsuh/GungsuhChe
% batang.ttc      16265128     2.21       39680      (3,1)             Batang/BatangChe/Gungsuh/GungsuhChe
% batang.ttc      16264732     5.00       39680      (3,1)             Batang/BatangChe/Gungsuh/GungsuhChe      949
% gulimche.ttf    5512432      1.00       20792      (3,1)             GulimChe
% gulim.ttc       13518660     2.21       40194      (3,1)             Gulim/GulimChe/Dotum/DotumChe
% gulim.ttc       13525204     2.21       40194      (3,1)             Gulim/GulimChe/Dotum/DotumChe
% gulim.ttc       13524720     5.00       40194      (3,1)             Gulim/GulimChe/Dotum/DotumChe            949
% kaiu.ttf        4282984      2.00       18193      (1,0)(3,1)        DFKaiShu-SB-Estd-BF
% kaiu.ttf        4279576      2.10       18193      (1,0)(3,1)        DFKaiShu-SB-Estd-BF
% kaiu.ttf        5172084      3.00       22134      (1,0)(3,1)        DFKaiShu-SB-Estd-BF
% kaiu.ttf        5178844      5.00       22134      (1,0)(3,1)        DFKaiShu-SB-Estd-BF                      950
% malgun.ttf      4337480      0.85       12747      (0,3)(3,1)        MalgunGothicRegular
% malgun.ttf      4337080      1.00       12747      (0,3)(3,1)        MalgunGothicRegular
% malgun.ttf      4337104      5.00       12747      (0,3)(3,1)        MalgunGothicRegular
% malgun.ttf      4337296      6.11       12747      (0,3)(3,1)        MalgunGothicRegular                      949
% malgunbd.ttf    4514980      0.85       12740      (0,3)(3,1)        MalgunGothicBold
% malgunbd.ttf    4513504      1.00       12740      (0,3)(3,1)        MalgunGothicBold
% malgunbd.ttf    4513520      5.00       12740      (0,3)(3,1)        MalgunGothicBold
% malgunbd.ttf    4515044      6.00       12740      (0,3)(3,1)        MalgunGothicBold
% meiryo.ttc      7682568      0.97       20682      (0,3)(3,1)(3,10)  Meiryo/Meiryo-Italic                     932
% meiryo.ttc      7815292      5.00       20684      (0,3)(3,1)(3,10)  Meiryo/Meiryo-Italic
% meiryo.ttc      9533888      6.02       23942      (0,3)(3,1)(3,10)  Meiryo/Meiryo-Italic/MeiryoUI/MeiryoUI-Italic
% meiryob.ttc     7924644      0.97       20682      (0,3)(3,1)(3,10)  Meiryo-Bold/Meiryo-BoldItalic
% meiryob.ttc     8054096      5.00       20684      (0,3)(3,1)(3,10)  Meiryo-Bold/Meiryo-BoldItalic
% meiryob.ttc     9749256      6.02       23942      (0,3)(3,1)(3,10)  Meiryo-Bold/Meiryo-BoldItalic/MeiryoUI-Bold/MeiryoUI-BoldItalic
% mingliu.ttf     6272080      2.00       18362      (1,0)(3,1)        MingLiU
% mingliu.ttc     8823308      3.21       22753      (1,0)(3,1)        MingLiU/PMingLiU
% mingliu.ttc     8829856      3.21       22753      (1,0)(3,1)        MingLiU/PMingLiU
% mingliu.ttc     27496184     6.02       33987      (3,1)             MingLiU/PMingLiU/Ming-Lt-HKSCS-UNI-H
% mingliu.ttc     32217124     7.00       34046      (3,1)             MingLiU/PMingLiU/Ming-Lt-HKSCS-UNI-H     950
% mingliub.ttc    33791880     5.00       44857      (3,1)(3,10)       MingLiU-ExtB/PMingLiU-ExtB/Ming-Lt-HKSCS-ExtB
% mingliub.ttc    33805700     7.00       44875      (3,1)(3,10)       MingLiU-ExtB/PMingLiU-ExtB/Ming-Lt-HKSCS-ExtB
% msgothic.ttf    4170144      2.00       13104      (1,0)(3,1)        MS-Gothic
% msgothic.ttc    8272028      2.30       20458      (1,0)(3,1)        MS-Gothic/MS-PGothic/MS-UIGothic
% msgothic.ttc    8278584      2.30       20458      (1,0)(3,1)        MS-Gothic/MS-PGothic/MS-UIGothic
% msgothic.ttc    9165480      5.00       22213      (3,1)(3,10)       MS-Gothic/MS-PGothic/MS-UIGothic
% msgothic.ttc    9176636      5.01       22213      (3,1)(3,10)       MS-Gothic/MS-PGothic/MS-UIGothic         932
% mshei.ttf       1902464      1.00       26272      (1,0)(3,1)        MS Hei
% mshei.ttf       1902556      1.00       26272      (1,0)(3,1)        MS Hei
% msjh.ttf        14698792     0.71       28969      (0,3)(3,1)        MicrosoftJhengHeiRegular                 950
% msjh.ttf        14713712     0.75       28969      (0,3)(3,1)        MicrosoftJhengHeiRegular
% msjh.ttf        14713760     5.00       28969      (0,3)(3,1)        MicrosoftJhengHeiRegular
% msjh.ttf        21663376     6.02       29220      (0,3)(3,1)        MicrosoftJhengHeiRegular
% msjhbd.ttf      14498048     0.71       28961      (0,3)(3.1)        MicrosoftJhengHeiBold
% msjhbd.ttf      14509708     0.75       28961      (0,3)(3.1)        MicrosoftJhengHeiBold
% msjhbd.ttf      14509756     5.00       28961      (0,3)(3.1)        MicrosoftJhengHeiBold
% msmincho.ttf    5151192      2.00       13104      (1,0)(3,1)        MS-Mincho
% msmincho.ttc    9136456      2.30       17807      (1,0)(3,1)        MS-Mincho/MS-PMincho
% msmincho.ttc    9135960      2.31       17807      (1,0)(3,1)        MS-Mincho/MS-PMincho
% msmincho.ttc    9142516      2.31       17807      (1,0)(3,1)        MS-Mincho/MS-PMincho
% msmincho.ttc    10056872     5.00       19321      (3,1)(3,10)       MS-Mincho/MS-PMincho
% msmincho.ttc    10057108     5.01       19321      (3,1)(3,10)       MS-Mincho/MS-PMincho                     932
% mssong.ttf      2569040      1.00       26304      (1,0)(3,1)        MS Song
% mssong.ttf      2569116      1.00       26304      (1,0)(3,1)        MS Song
% msyh.ttf        12263452     6.01       22562      (0,3)(3,1)(3,10)  MSYH
% msyh.ttf        15067744     0.71       29207      (0,3)(3,1)(3,10)  MicrosoftYaHei
% msyh.ttf        15043584     0.75       29126      (0,3)(3,1)(3,10)  MicrosoftYaHei
% msyh.ttf        15044440     5.00       29126      (0,3)(3,1)(3,10)  MicrosoftYaHei
% msyh.ttf        21767952     6.02       29354      (0,3)(3,1)        MicrosoftYaHei                           936
% msyhbd.ttf      14707012     0.71       29240      (0,3)(3,1)(3,10)  MicrosoftYaHei
% msyhbd.ttf      14685876     5.00       29126      (0,3)(3,1)(3,10)  MicrosoftYaHei
% nbatang.ttf     32472240     3.00       49636      (3,1)             New Batang
% ngulim.ttf      8862844      2.00       23181      (3,1)             New Gulim
% ngulim.ttf      25719724     3.10       49284      (3,1)             New Gulim
% ogulim.ttf      830340       1.00       2921       (3,1)             Gulim Old Hangul Jamo
% palmm.ttf       13816928     001.003    27560      (3,1)             PMmy
% simfang.ttf     3996872      2.00       7580       (1,0)(3,1)        FangSong_GB2312
% simfang.ttf     10576012     5.01       28562      (3,1)             FangSong                                 936
% simhei.ttf      10044356     3.02       22021      (1,0)(3,1)        SimHei
% simhei.ttf      10050868     3.02       22021      (1,0)(3,1)        SimHei
% simhei.ttf      9751960      5.01       28562      (3,1)             SimHei                                   936
% simkai.ttf      4135804      2.00       7580       (1,0)(3,1)        KaiTi_GB2312
% simkai.ttf      11785184     5.01       28562      (3,1)             KaiTi                                    936
% simli.ttf       9317908      3.00       21992      (1,0)(3,1)        LiSu
% simsun.ttc      10500792     3.03       22141      (1,0)(3,1)        SimSun/NSimSun
% simsun.ttc      10507340     3.03       22141      (1,0)(3,1)        SimSun/NSimSun
% simsun.ttc      13747080     5.00       28762      (1,0)(3,1)        SimSun/NSimSun
% simsun.ttc      15323200     5.03       28762      (1,0)(3,1)        SimSun/NSimSun                           936
% simsun18030.ttc 12642204     2.06       30533      (1,0)(3,1)        SimSun-18030/NSimSun-18030
% simsunb.ttf     15406216     0.90       42809      (1,0)(3,1)(3,10)  SimSun-ExtB
% simsunb.ttf     15406288     5.00       42809      (1,0)(3,1)(3,10)  SimSun-ExtB
% simyou.ttf      6794984      3.00       21991      (1,0)(3,1)        YouYuan
% simyou.ttf      6788204      3.00       21991      (1,0)(3,1)        YouYuan

Youez - 2016 - github.com/yon3zu
LinuXploit