1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57
|
<HTML>
<HEAD>
<!-- Created with AOLpress/2.0 -->
<!-- AP: Created on: 10-Aug-2005 -->
<!-- AP: Last modified: 10-Aug-2005 -->
<TITLE>Cidmap files</TITLE>
<LINK REL="icon" href="fftype16.png">
<LINK REL="stylesheet" TYPE="text/css" HREF="FontForge.css">
</HEAD>
<BODY>
<DIV id="in">
<H1 ALIGN=Center>
Cidmap files
</H1>
<P>
These are FontForge's own files which it uses to map from CIDs in one
Registry-Ordering-Supplement to unicode code points.
<P>
Cidmap files generally live in $(PREFIX)/share/fontforge (often
/usr/local/share/fontforge or /usr/share/fontforge), though they will also
be found if they are in the directory containing fontforge itself or the
current directory. They are named
<registry>-<Ordering>-<Supplement>.cidmap. So
"Adobe-Japan1-6.cidmap", or "Adobe-CNS1-4.cidmap".
<P>
The first line of the file consists of two numbers, usually the same, which
are the total number of CIDs defined by this ROS.
<P>
Subsequent lines have one of three formats
<UL>
<LI>
<cid> <unicode>
<LI>
<cid1>..<cid2> <unicode>
<LI>
<cid> <postscript-name>
</UL>
<P>
A <cid> is just a decimal number, <unicode> is a hex number,
and <postscript-name> is a PostScript name token preceded by a slash.
<P>
The first few lines of Adobe-Japan1-6.cidmap look like:
<BLOCKQUOTE>
<PRE>23057 23057
0 /.notdef
1..60 0020
61 00a5
62..92 005d
93 00a6
</PRE>
</BLOCKQUOTE>
<P>
So there are 23057 cids in this ROS. CID 0 is mapped to the postscript name
"/.notdef", cids 1-60 are mapped to space (U+0020), exclam (U+0021), ...,
lbracket (U+005b), CID 61 is mapped to yen (U+00a5), and so forth.
</DIV>
</BODY></HTML>
|