Back to index

texmacs  1.0.7.15
cid_basefont.h
Go to the documentation of this file.
00001 /*  $Header: /home/cvsroot/dvipdfmx/src/cid_basefont.h,v 1.15 2007/11/15 17:08:52 chofchof Exp $
00002 
00003     This is dvipdfmx, an eXtended version of dvipdfm by Mark A. Wicks.
00004 
00005     Copyright (C) 2002 by Jin-Hwan Cho and Shunsaku Hirata,
00006     the dvipdfmx project team <dvipdfmx@project.ktug.or.kr>
00007 
00008     This program is free software; you can redistribute it and/or modify
00009     it under the terms of the GNU General Public License as published by
00010     the Free Software Foundation; either version 2 of the License, or
00011     (at your option) any later version.
00012 
00013     This program is distributed in the hope that it will be useful,
00014     but WITHOUT ANY WARRANTY; without even the implied warranty of
00015     MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
00016     GNU General Public License for more details.
00017 
00018     You should have received a copy of the GNU General Public License
00019     along with this program; if not, write to the Free Software
00020     Foundation, Inc., 59 Temple Place, Suite 330, Boston, MA 02111-1307 USA.
00021 */
00022 
00023 #ifndef _CID_BASEFONT_H_
00024 #define _CID_BASEFONT_H_
00025 
00026 /* PLEASE SEND INFORMATION ON FONTS
00027  *
00028  * Those fonts are only for fixed-pitch glyphs (full-, half-, third-,
00029  * and quarter- widths). Glyph widths should be determined solely from
00030  * CID and CIDSystemInfo for those never-embedded fonts. Fixed-pitch
00031  * pre-rotated forms are not supported yet.
00032  *
00033  * Font dictionaly entry Subtype and CIDSystemInfo is mandatory here.
00034  * Font descriptor entry CapHeight, Ascent, Descent, ItalicAngle, Flags,
00035  * FontBBox, and StemV is required. However, CapHeight, Ascent, Descent,
00036  * and ItalicAngle is irrelevant for font-matching of CJK fonts. Panose
00037  * entry in Style dictionary may affect in Acrobat. Serif font should
00038  * have flag bit position 2 (2) set and all CJK fonts should also have
00039  * bit position 3 (4) set: CJK font serif -> Flags 6, sans serif -> 4.
00040  *
00041  * Please always supply DW entry in font dictionary although this can
00042  * be optional. PDF reference 1.2 had been described default value for
00043  * DW as 0 (correct value if 1000) and several versions of Mac OS X
00044  * implement so!
00045  */
00046 
00047 const struct {
00048   const char *fontname;
00049   const char *fontdict;
00050   const char *descriptor;
00051 } cid_basefont[] = {
00052   /*
00053    *  Fonts found in printers
00054    *
00055    *  Ryumin-Light and GothicBBB-Medium is often available in
00056    *  PostScript printer sold in Japan. There may be additonal
00057    *  Morisawa fonts such as ShinGo-Bold, but less common than
00058    *  those two fonts.
00059    */
00060   {
00061     "Ryumin-Light",
00062     "<< \
00063 /Subtype/CIDFontType0 \
00064 /CIDSystemInfo << /Registry (Adobe) /Ordering (Japan1) /Supplement 2 >> \
00065 /DW 1000 \
00066 /W [\
00067   231   632 500 \
00068  8718 [500 500] \
00069 ]\
00070 >>",
00071     "<< \
00072 /CapHeight 709 /Ascent 723 /Descent -241 /StemV 69 \
00073 /FontBBox [-170 -331 1024 903] \
00074 /ItalicAngle 0 /Flags 6 \
00075 /Style << /Panose <010502020300000000000000> >> \
00076 >>"
00077   },
00078   {
00079     "GothicBBB-Medium",
00080     "<< \
00081 /Subtype/CIDFontType0 \
00082 /CIDSystemInfo <<  /Registry (Adobe) /Ordering (Japan1) /Supplement 2 >> \
00083 /DW 1000 \
00084 /W [\
00085   231   632 500 \
00086  8718 [500 500] \
00087 ]\
00088 >>",
00089     "<< \
00090 /CapHeight 737 /Ascent 752 /Descent -271 /StemV 99 \
00091 /FontBBox [-174 -268 1001 944] \
00092 /ItalicAngle 0 /Flags 4 \
00093 /Style << /Panose <0801020b0500000000000000> >> \
00094 >>"
00095   },
00096 
00097   /* Adobe Asian Font Packs for Acrobat Reader 4 */
00098   {
00099     "MHei-Medium-Acro",
00100     "<< \
00101 /Subtype /CIDFontType0 \
00102 /CIDSystemInfo << /Registry (Adobe) /Ordering (CNS1) /Supplement 0 >> \
00103 /DW 1000 \
00104 /W [\
00105 13648 13742 500 \
00106 17603 [500] \
00107 ]\
00108 >>",
00109     "<< \
00110 /Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
00111 /FontBBox [-45 -250 1015 887] \
00112 /ItalicAngle 0 /Flags 4 /XHeight 553 \
00113 /Style << /Panose <000001000600000000000000> >> \
00114 >>"
00115   },
00116   {
00117     "MSung-Light-Acro",
00118     "<< \
00119 /Subtype /CIDFontType0 \
00120 /CIDSystemInfo << /Registry (Adobe) /Ordering (CNS1) /Supplement 0 >> \
00121 /DW 1000 \
00122 /W [\
00123 13648 13742 500 \
00124 17603 [500] \
00125 ]\
00126 >>",
00127     "<< \
00128 /Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
00129 /FontBBox [-160 -259 1015 888] \
00130 /ItalicAngle 0 /Flags 6 /XHeight 553 \
00131 /Style << /Panose <000000000400000000000000> >> \
00132 >>"
00133   },
00134   {
00135     "STSong-Light-Acro",
00136     "<< \
00137 /Subtype /CIDFontType0 \
00138 /CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 2 >> \
00139 /DW 1000 \
00140 /W [\
00141   814 939 500 \
00142  7716 [500] \
00143 22355 [500 500] \
00144 22357 [500] \
00145 ]\
00146 >>",
00147     "<< \
00148 /Ascent 857 /CapHeight 857 /Descent -143 /StemV 91 \
00149 /FontBBox [-250 -143 600 857] \
00150 /ItalicAngle 0 /Flags 6 /XHeight 599 \
00151 /Style << /Panose <000000000400000000000000> >> \
00152 >>"
00153   },
00154   {
00155     "HeiseiKakuGo-W5-Acro",
00156     "<< \
00157 /Subtype /CIDFontType0 \
00158 /CIDSystemInfo << /Registry (Adobe) /Ordering (Japan1) /Supplement  2 >> \
00159 /DW 1000 \
00160 /W [\
00161   231   632 500 \
00162  8718 [500 500] \
00163 ]\
00164 >>",
00165     "<< \
00166 /Ascent 752 /CapHeight 737 /Descent -221 /StemV 114 \
00167 /FontBBox [-92 -250 1010 922] \
00168 /ItalicAngle 0 /Flags 4 /XHeight 553 \
00169 /Style << /Panose <000001000500000000000000> >> \
00170 >>"
00171   },
00172   {
00173     "HeiseiMin-W3-Acro",
00174     "<< \
00175 /Subtype /CIDFontType0 \
00176 /CIDSystemInfo << /Registry (Adobe) /Ordering (Japan1) /Supplement 2 >> \
00177 /DW 1000 \
00178 /W [\
00179   231   632 500 \
00180  8718 [500 500] \
00181 ]\
00182 >>",
00183     "<< \
00184 /Ascent 723 /CapHeight 709 /Descent -241 /StemV 69 \
00185 /FontBBox [-123 -257 1001 910] \
00186 /ItalicAngle 0 /Flags 6 /XHeight 450 \
00187 /Style << /Panose <000002020500000000000000> >> \
00188 >>"
00189   },
00190   {
00191     "HYGoThic-Medium-Acro",
00192     "<< \
00193 /Subtype /CIDFontType0 \
00194 /CIDSystemInfo << /Registry (Adobe) /Ordering (Korea1) /Supplement 1 >> \
00195 /DW 1000 \
00196 /W [\
00197    97 [500] \
00198  8094  8190 500 \
00199 ]\
00200 >>",
00201     "<< \
00202 /Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
00203 /FontBBox [-6 -145 1003 880] \
00204 /ItalicAngle 0 /Flags 4 /XHeight 553 \
00205 /Style << /Panose <000001000600000000000000> >> \
00206 >>"
00207   },
00208   {
00209     "HYSMyeongJo-Medium-Acro",
00210     "<< \
00211 /Subtype /CIDFontType0 \
00212 /CIDSystemInfo << /Registry (Adobe) /Ordering (Korea1) /Supplement 1 >> \
00213 /DW 1000 \
00214 /W [\
00215    97 [500] \
00216  8094  8190 500 \
00217 ]\
00218 >>",
00219     "<< \
00220 /Ascent 752 /CapHeight 737 /Descent -271 /StemV 58 \
00221 /FontBBox [-0 -148 1001 880] \
00222 /ItalicAngle 0 /Flags 6 /XHeight 553 \
00223 /Style << /Panose <000000000600000000000000> >> \
00224 >>"
00225   },
00226 
00227   /* Acrobat Reader 5 */
00228   {
00229     "MSungStd-Light-Acro",
00230     "<< \
00231 /Subtype /CIDFontType0 \
00232 /CIDSystemInfo << /Registry (Adobe) /Ordering (CNS1) /Supplement 4 >> \
00233 /DW 1000 \
00234 /W [\
00235 13648 13742 500 \
00236 17603 [500] \
00237 ]\
00238 >>",
00239     "<< \
00240 /Ascent 880 /CapHeight 662 /Descent -120 /StemV 54 \
00241 /FontBBox [-160 -249 1015 1071] \
00242 /ItalicAngle 0 /Flags 6 \
00243 /Style << /Panose <000000000400000000000000> >> \
00244 >>"
00245   },
00246   {
00247     "STSongStd-Light-Acro",
00248     "<< \
00249 /Subtype /CIDFontType0 \
00250 /CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 4 >> \
00251 /DW 1000 \
00252 /W [\
00253   814 939 500 \
00254  7716 [500] \
00255 22355 [500 500] \
00256 22357 [500] \
00257 ]\
00258 >>",
00259     "<< \
00260 /Ascent 880 /CapHeight 626 /Descent -120 /StemV 44 \
00261 /FontBBox [-134 -254 1001 905] \
00262 /ItalicAngle 0 /Flags 6 \
00263 /Style << /Panose <000000000400000000000000> >> \
00264 >>"
00265   },
00266   {
00267     "HYSMyeongJoStd-Medium-Acro",
00268     "<< \
00269 /Subtype /CIDFontType0 \
00270 /CIDSystemInfo << /Registry (Adobe) /Ordering (Korea1) /Supplement 2 >> \
00271 /DW 1000 \
00272 /W [\
00273    97 [500] \
00274  8094  8190 500 \
00275 ]\
00276 >>",
00277     "<< \
00278 /Ascent 880 /CapHeight 720 /Descent -120 /StemV 60 \
00279 /FontBBox [-28 -148 1001 880] \
00280 /ItalicAngle 0 /Flags 6 \
00281 /Style << /Panose <000000000600000000000000> >> \
00282 >>"
00283   },
00284 
00285   /* Adobe Asian Font Packs for Adobe Reader 6 */
00286 
00287   /*
00288    * Widths of Adobe-CNS1-4
00289    *     1    95  proportional
00290    * 13648 13742  half-width
00291    * 17601 17601  proportional?
00292    * 17603 17603  half-width?
00293    */
00294   {
00295     "AdobeMingStd-Light-Acro",
00296     "<< \
00297 /Subtype/CIDFontType0 \
00298 /CIDSystemInfo << /Registry (Adobe) /Ordering (CNS1) /Supplement 4 >> \
00299 /DW 1000 \
00300 /W [\
00301 13648 13742 500 \
00302 17603 [500] \
00303 ]\
00304 >>",
00305     "<< \
00306 /Ascent 880 /Descent -120 /StemV 48 /CapHeight 731 \
00307 /FontBBox [-38 -121 1002 918] \
00308 /ItalicAngle 0 /Flags 6 /XHeight 466 \
00309 /Style << /Panose <000002020300000000000000> >> \
00310 >>"
00311   },
00312   /*
00313    * Widths of Adobe-GB1-4
00314    *     1    95  proportional
00315    *   814   939  half-width
00316    *  7712  7715  proportional
00317    *  7716  7716  half-width space
00318    * 22353 22354  proportional
00319    * 22355 22357  half-width
00320    */
00321   {
00322     "AdobeSongStd-Light-Acro",
00323     "<< \
00324 /Subtype/CIDFontType0 \
00325 /CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 4 >> \
00326 /DW 1000 \
00327 /W [\
00328   814 939 500 \
00329  7716 [500] \
00330 22355 [500 500] \
00331 22357 [500] \
00332 ]\
00333 >>",
00334     "<< \
00335 /Ascent 880 /Descent -120 /StemV 66 /CapHeight 626 \
00336 /FontBBox [-134 -254 1001 905] \
00337 /ItalicAngle 0 /Flags 6 /XHeight 416 \
00338 /Style << /Panose <000002020300000000000000> >> \
00339 >>"
00340   },
00341   /*
00342    * Widths of Adobe-Japan1-4
00343    *     1   230  proportional
00344    *   231   632  half-width
00345    *  9354  9737  proportional
00346    *  9738  9757  quater-width
00347    *  9758  9778  third-width
00348    * 12063 12087  half-width
00349    */
00350   {
00351     "KozMinPro-Regular-Acro",
00352     "<< \
00353 /Subtype/CIDFontType0 \
00354 /CIDSystemInfo << /Registry (Adobe) /Ordering (Japan1) /Supplement 4 >> \
00355 /DW 1000 \
00356 /W [\
00357   231   632 500 \
00358  8718 [500 500] \
00359  9738  9757 250 \
00360  9758  9778 333 \
00361 12063 12087 500 \
00362 ]\
00363 >>",
00364     "<< \
00365 /Ascent 880 /Descent -120 /StemV 86 /CapHeight 740 \
00366 /FontBBox [-195 -272 1110 1075] \
00367 /ItalicAngle 0 /Flags 6 /XHeight 502 \
00368 /Style << /Panose <000002020400000000000000> >> \
00369 >>"
00370   },
00371   {
00372     "KozGoPro-Medium-Acro",
00373     "<< \
00374 /Subtype/CIDFontType0 \
00375 /CIDSystemInfo << /Registry (Adobe) /Ordering(Japan1) /Supplement 4 >> \
00376 /DW 1000 \
00377 /W [\
00378   231   632 500 \
00379  8718 [500 500] \
00380  9738  9757 250 \
00381  9758  9778 333 \
00382 12063 12087 500 \
00383 ]\
00384 >>",
00385     "<< \
00386 /Ascent 880 /Descent -120 /StemV 99 /CapHeight 763 \
00387 /FontBBox [-149 -374 1254 1008] \
00388 /ItalicAngle 0 /Flags 4 /XHeight 549 \
00389 /Style << /Panose <0000020b0700000000000000> >> \
00390 >>"
00391   },
00392   /*
00393    * Widths of Adobe-Korea1-2
00394    *     1    95  proportional
00395    *    97    97  half-width?
00396    *  8094  8190  half-width
00397    */
00398   {
00399     "AdobeMyungjoStd-Medium-Acro",
00400     "<< \
00401 /Subtype/CIDFontType0 \
00402 /CIDSystemInfo << /Registry (Adobe) /Ordering (Korea1) /Supplement 2 >> \
00403 /DW 1000 \
00404 /W [\
00405    97 [500] \
00406  8094  8190 500 \
00407 ]\
00408 >>",
00409     "<< \
00410 /Ascent 880 /Descent -120 /StemV 99 /CapHeight 719 \
00411 /FontBBox [-28 -148 1001 880] \
00412 /ItalicAngle 0 /Flags 6 /XHeight 478 \
00413 /Style << /Panose <000002020600000000000000> >> \
00414 >>"
00415   },
00416 
00417   /* Addition in Adobe Reader 7 */
00418   /*
00419    *  Adobe-Japan1-5
00420    *   15449-15911 proportional
00421    *   15912-15975 proportional
00422    *   15976-16192 proportional (vert)
00423    *   16469-16714 pre-rotated proportional
00424    *   16715-16778 pre-rotated proportional
00425    *  Adobe-Japan1-6
00426    *   20317-20371 proportional
00427    *   20372-20426 proportional
00428    *   20958       - (reserved for future use)
00429    *   20961-21015 pre-rotated proportional
00430    *   21016-21070 pre-rotated proportional
00431    */
00432   {
00433     "KozMinProVI-Regular",
00434     "<< \
00435 /Subtype/CIDFontType0 \
00436 /CIDSystemInfo << \
00437   /Registry (Adobe) \
00438   /Ordering (Japan1) \
00439   /Supplement 6 \
00440 >> \
00441 /DW 1000 \
00442 /W [\
00443   231   632 500 \
00444   8718 [500 500] \
00445   9738  9757 250 \
00446   9758  9778 333 \
00447   12063 12087 500 \
00448 ]\
00449         >>",
00450     "<< \
00451 /Ascent 880 /Descent -120 /StemV 86 /CapHeight 742 \
00452 /FontBBox [-437 -340 1144 1317] \
00453 /ItalicAngle 0 /Flags 6 /XHeight 503 \
00454 /Style << \
00455   /Panose <000002020400000000000000> \
00456 >> \
00457      >>"
00458   },
00459 
00460   /* Addition in Adobe Reader 8 */
00461   /*
00462    * Font information of AdobeHeitiStd-Regular.otf may not be correct!
00463    * Just copied the information of AdobeSongStd-Light.otf.
00464    */
00465   {
00466     "AdobeHeitiStd-Regular",
00467     "<< \
00468 /Subtype/CIDFontType0 \
00469 /CIDSystemInfo << /Registry (Adobe) /Ordering (GB1) /Supplement 4 >> \
00470 /DW 1000 \
00471 /W [\
00472   814 939 500 \
00473  7716 [500] \
00474 22355 [500 500] \
00475 22357 [500] \
00476 ]\
00477 >>",
00478     "<< \
00479 /Ascent 880 /Descent -120 /StemV 66 /CapHeight 626 \
00480 /FontBBox [-134 -254 1001 905] \
00481 /ItalicAngle 0 /Flags 6 /XHeight 416 \
00482 /Style << /Panose <000002020300000000000000> >> \
00483 >>"
00484   },
00485   /* END */
00486   {NULL, NULL, NULL}
00487 };
00488 
00489 #endif /* _CID_BASEFONT_H_ */