Skip to content

Commit

Permalink
First Public Release
Browse files Browse the repository at this point in the history
  • Loading branch information
kenlunde committed Jan 19, 2020
0 parents commit c93c958
Show file tree
Hide file tree
Showing 9 changed files with 2,105 additions and 0 deletions.
3 changes: 3 additions & 0 deletions FontMenuNameDB
Original file line number Diff line number Diff line change
@@ -0,0 +1,3 @@
[CJKSymbols-Regular]
f=CJK Symbols
s=Regular
92 changes: 92 additions & 0 deletions LICENSE.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,92 @@
This Font Software is licensed under the SIL Open Font License,
Version 1.1.

This license is copied below, and is also available with a FAQ at:
http://scripts.sil.org/OFL

-----------------------------------------------------------
SIL OPEN FONT LICENSE Version 1.1 - 26 February 2007
-----------------------------------------------------------

PREAMBLE
The goals of the Open Font License (OFL) are to stimulate worldwide
development of collaborative font projects, to support the font
creation efforts of academic and linguistic communities, and to
provide a free and open framework in which fonts may be shared and
improved in partnership with others.

The OFL allows the licensed fonts to be used, studied, modified and
redistributed freely as long as they are not sold by themselves. The
fonts, including any derivative works, can be bundled, embedded,
redistributed and/or sold with any software provided that any reserved
names are not used by derivative works. The fonts and derivatives,
however, cannot be released under any other type of license. The
requirement for fonts to remain under this license does not apply to
any document created using the fonts or their derivatives.

DEFINITIONS
"Font Software" refers to the set of files released by the Copyright
Holder(s) under this license and clearly marked as such. This may
include source files, build scripts and documentation.

"Reserved Font Name" refers to any names specified as such after the
copyright statement(s).

"Original Version" refers to the collection of Font Software
components as distributed by the Copyright Holder(s).

"Modified Version" refers to any derivative made by adding to,
deleting, or substituting -- in part or in whole -- any of the
components of the Original Version, by changing formats or by porting
the Font Software to a new environment.

"Author" refers to any designer, engineer, programmer, technical
writer or other person who contributed to the Font Software.

PERMISSION & CONDITIONS
Permission is hereby granted, free of charge, to any person obtaining
a copy of the Font Software, to use, study, copy, merge, embed,
modify, redistribute, and sell modified and unmodified copies of the
Font Software, subject to the following conditions:

1) Neither the Font Software nor any of its individual components, in
Original or Modified Versions, may be sold by itself.

2) Original or Modified Versions of the Font Software may be bundled,
redistributed and/or sold with any software, provided that each copy
contains the above copyright notice and this license. These can be
included either as stand-alone text files, human-readable headers or
in the appropriate machine-readable metadata fields within text or
binary files as long as those fields can be easily viewed by the user.

3) No Modified Version of the Font Software may use the Reserved Font
Name(s) unless explicit written permission is granted by the
corresponding Copyright Holder. This restriction only applies to the
primary font name as presented to the users.

4) The name(s) of the Copyright Holder(s) or the Author(s) of the Font
Software shall not be used to promote, endorse or advertise any
Modified Version, except to acknowledge the contribution(s) of the
Copyright Holder(s) and the Author(s) or with their explicit written
permission.

5) The Font Software, modified or unmodified, in part or in whole,
must be distributed entirely under this license, and must not be
distributed under any other license. The requirement for fonts to
remain under this license does not apply to any document created using
the Font Software.

TERMINATION
This license becomes null and void if any of the above conditions are
not met.

DISCLAIMER
THE FONT SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO ANY WARRANTIES OF
MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT
OF COPYRIGHT, PATENT, TRADEMARK, OR OTHER RIGHT. IN NO EVENT SHALL THE
COPYRIGHT HOLDER BE LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY,
INCLUDING ANY GENERAL, SPECIAL, INDIRECT, INCIDENTAL, OR CONSEQUENTIAL
DAMAGES, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE, ARISING
FROM, OUT OF THE USE OR INABILITY TO USE THE FONT SOFTWARE OR FROM
OTHER DEALINGS IN THE FONT SOFTWARE.
45 changes: 45 additions & 0 deletions README.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,45 @@
# CJK Symbols

*CJK Symbols* is a special-purpose CID-keyed OpenType/CFF (aka OTF) font that includes the glyphs for the following 21 Unicode blocks, and covers 19 of them in their entirety:

* [Spacing Modifier Letters](https://www.unicode.org/charts/PDF/U02B0.pdf) — only U+02EA and U+02EB
* [Enclosed Alphanumerics](https://unicode.org/charts/PDF/U2460.pdf)
* [Dingbats](https://unicode.org/charts/PDF/U2700.pdf) — only U+2776 through U+2793
* [Ideographic Description Characters](https://unicode.org/charts/PDF/U2FF0.pdf)
* [CJK Symbols and Punctuation](https://unicode.org/charts/PDF/U3000.pdf)
* [Hiragana](https://unicode.org/charts/PDF/U3040.pdf)
* [Katakana](https://unicode.org/charts/PDF/U30A0.pdf)
* [Bopomofo](https://unicode.org/charts/PDF/U3100.pdf)
* [Hangul Compatibility Jamo](https://unicode.org/charts/PDF/U3130.pdf)
* [Kanbun](https://unicode.org/charts/PDF/U3190.pdf)
* [Bopomofo Extended](https://unicode.org/charts/PDF/U31A0.pdf)
* [CJK Strokes](https://unicode.org/charts/PDF/U31C0.pdf)
* [Katakana Phonetic Extensions](https://unicode.org/charts/PDF/U31F0.pdf)
* [Enclosed CJK Letters and Months](https://unicode.org/charts/PDF/U3200.pdf)
* [CJK Compatibility](https://unicode.org/charts/PDF/U3300.pdf)
* [Vertical Forms](https://unicode.org/charts/PDF/UFE10.pdf)
* [CJK Compatibility Forms](https://unicode.org/charts/PDF/UFE30.pdf)
* [Small Form Variants](https://unicode.org/charts/PDF/UFE50.pdf)
* [Halfwidth and Fullwidth Forms](https://unicode.org/charts/PDF/UFF00.pdf)
* [Enclosed Alphanumeric Supplement](https://unicode.org/charts/PDF/U1F100.pdf)
* [Enclosed Ideographic Supplement](https://unicode.org/charts/PDF/U1F200.pdf)

Also included in this project is a TrueType (aka TTF) version of the font that is necessary for Unicode code chart production. The vast majority of its glyphs are derived from [*Source Han Serif*](https://github.com/adobe-fonts/source-han-serif/), specifically the Regular weight.

The latest pre-built binary version of the font, in both OTF and TTF formats, can be easily downloaded from the [Latest Release](https://github.com/unicode-org/cjk-symbols/releases/latest/).

This font is expected to be used as a replacement code chart font starting from Unicode Version 14.0.

## Building the fonts from source

### Requirements

To build the binary font files from source, you need to have installed the [Adobe Font Development Kit for OpenType](https://github.com/adobe-type-tools/afdko/) (AFDKO) tools. The AFDKO tools are widely used for font development today, and are part of most font editor apps.

### Building the fonts

In this repository, all necessary files are in place for building the CID-keyed OpenType/CFF and TrueType fonts, and the *build.sh* file can simply be executed.

## Getting Involved

Send suggestions for changes to the *CJK Symbols* project by submitting a [new issue](https://github.com/unicode-org/cjk-symbols/issues/new).
110 changes: 110 additions & 0 deletions UniCJKSymbols-UTF32-H
Original file line number Diff line number Diff line change
@@ -0,0 +1,110 @@
%!PS-Adobe-3.0 Resource-CMap
%%DocumentNeededResources: ProcSet (CIDInit)
%%IncludeResource: ProcSet (CIDInit)
%%BeginResource: CMap (UniCJKSymbols-UTF32-H)
%%Title: (UniCJKSymbols-UTF32-H Adobe Identity 0)
%%Version: 1.000
%%Copyright: -----------------------------------------------------------
%%Copyright: Copyright 1990-2019 Adobe. All rights reserved.
%%Copyright:
%%Copyright: Redistribution and use in source and binary forms, with or
%%Copyright: without modification, are permitted provided that the
%%Copyright: following conditions are met:
%%Copyright:
%%Copyright: Redistributions of source code must retain the above
%%Copyright: copyright notice, this list of conditions and the following
%%Copyright: disclaimer.
%%Copyright:
%%Copyright: Redistributions in binary form must reproduce the above
%%Copyright: copyright notice, this list of conditions and the following
%%Copyright: disclaimer in the documentation and/or other materials
%%Copyright: provided with the distribution.
%%Copyright:
%%Copyright: Neither the name of Adobe nor the names of its contributors
%%Copyright: may be used to endorse or promote products derived from this
%%Copyright: software without specific prior written permission.
%%Copyright:
%%Copyright: THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND
%%Copyright: CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES,
%%Copyright: INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF
%%Copyright: MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE
%%Copyright: DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT HOLDER OR
%%Copyright: CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL,
%%Copyright: SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
%%Copyright: NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES;
%%Copyright: LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION)
%%Copyright: HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER IN
%%Copyright: CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR
%%Copyright: OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS
%%Copyright: SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
%%Copyright: -----------------------------------------------------------
%%EndComments

/CIDInit /ProcSet findresource begin

12 dict begin

begincmap

/CIDSystemInfo 3 dict dup begin
/Registry (Adobe) def
/Ordering (Identity) def
/Supplement 0 def
end def

/CMapName /UniCJKSymbols-UTF32-H def
/CMapVersion 1.000 def
/CMapType 1 def

/WMode 0 def

1 begincodespacerange
<00000000> <0010FFFF>
endcodespacerange

1 begincidchar
<00000020> 1
endcidchar

32 begincidrange
<000002ea> <000002eb> 2
<00002460> <000024ff> 4
<00002776> <00002793> 164
<00002ff0> <00002ffb> 194
<00003000> <0000303f> 206
<00003041> <00003096> 270
<00003099> <000030ff> 356
<00003105> <0000312f> 459
<00003131> <0000318e> 502
<00003190> <000031e3> 596
<000031f0> <000031ff> 680
<00003200> <0000321e> 696
<00003220> <000032ff> 727
<00003300> <000033ff> 951
<0000fe10> <0000fe19> 1207
<0000fe30> <0000fe52> 1217
<0000fe54> <0000fe66> 1252
<0000fe68> <0000fe6b> 1271
<0000ff01> <0000ffbe> 1275
<0000ffc2> <0000ffc7> 1465
<0000ffca> <0000ffcf> 1471
<0000ffd2> <0000ffd7> 1477
<0000ffda> <0000ffdc> 1483
<0000ffe0> <0000ffe6> 1486
<0000ffe8> <0000ffee> 1493
<0001f100> <0001f1ad> 1500
<0001f1e6> <0001f1ff> 1674
<0001f200> <0001f202> 1700
<0001f210> <0001f23b> 1703
<0001f240> <0001f248> 1747
<0001f250> <0001f251> 1756
<0001f260> <0001f265> 1758
endcidrange

endcmap
CMapName currentdict /CMap defineresource pop
end
end

%%EndResource
%%EOF
13 changes: 13 additions & 0 deletions build.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,13 @@
#!/usr/bin/env sh

# Get the absolute path to the bash script
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" >/dev/null && pwd )"

# Build the CID-keyed OpenType/CFF font (OTF)
makeotf -f cidfont.ps -omitMacNames -ff features -fi cidfontinfo -mf FontMenuNameDB -r -cs 1 -ch UniCJKSymbols-UTF32-H

# Convert the OTF to TTF
otf2ttf CJKSymbols-Regular.otf
sfntedit -d DSIG CJKSymbols-Regular.ttf

# EOF
Binary file added cidfont.ps
Binary file not shown.
21 changes: 21 additions & 0 deletions cidfontinfo
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
FontName (CJKSymbols-Regular)
FullName (CJK Symbols Regular)
FamilyName (CJK Symbols)
Weight (Regular)
version (1.000)
Registry (Adobe)
Ordering (Identity)
Supplement 0
Layout (AI0-CJKSymbols)
FSType 0
isFixedPitch false
UnderlinePosition -150
AdobeCopyright (Copyright 2007-2019 Adobe, But Ko, CMEX, Creative Commons Corporation & GlyphWiki.)
Trademark ()
Serif true
IsBoldStyle false
IsItalicStyle false
PreferOS/2TypoMetrics false
IsOS/2WidthWeigthSlopeOnly false
IsOS/2OBLIQUE false
UseOldNameID4 false
57 changes: 57 additions & 0 deletions features
Original file line number Diff line number Diff line change
@@ -0,0 +1,57 @@
languagesystem DFLT dflt;
languagesystem hani dflt;
languagesystem kana dflt;
languagesystem latn dflt;

table head {
FontRevision 1.000;
} head;

table hhea {
Ascender 880;
Descender -120;
LineGap 200;
} hhea;

table name {
nameid 0 "\00A9 2007-2019 Adobe, But Ko, CMEX, Creative Commons Corporation & GlyphWiki.";
nameid 8 "Unicode";
nameid 9 "Ryoko NISHIZUKA \897F\585A\6DBC\5B50 (kana & ideographs); Frank Grie\00DFhammer (serif-style Latin); Paul D. Hunt (sans serif\2013style Latin); CMEX \8CA1\5718\6CD5\4EBA\4E2D\6587\6578\4F4D\5316\6280\8853\63A8\5EE3\57FA\91D1\6703 & But Ko \67EF\5FD7\6770 (bopomofo)";
nameid 10 "Dr Ken Lunde derived the glyphs from Source Han Serif, Source Han Sans, Source Han Mono, Bopomofo Ruby, CC Unicode & Hanazono Mincho A.";
nameid 13 "This Font Software is licensed under the SIL Open Font License, Version 1.1. This Font Software is distributed on an \0022AS IS\0022 BASIS, WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied. See the SIL Open Font License for the specific language, permissions and limitations governing your use of this Font Software.";
nameid 14 "http://scripts.sil.org/OFL";
} name;

table vhea {
VertTypoLineGap 200;
} vhea;

table BASE {
HorizAxis.BaseTagList icfb icft ideo romn;
HorizAxis.BaseScriptList DFLT ideo -78 838 -120 0,
hani ideo -78 838 -120 0,
kana ideo -78 838 -120 0,
latn romn -78 838 -120 0;

VertAxis.BaseTagList icfb icft ideo romn;
VertAxis.BaseScriptList DFLT ideo 42 958 0 120,
hani ideo 42 958 0 120,
kana ideo 42 958 0 120,
latn romn 42 958 0 120;
} BASE;

table OS/2 {
TypoAscender 880;
TypoDescender -120;
TypoLineGap 200;
XHeight 0;
CapHeight 0;
WeightClass 400;
WidthClass 5;
Panose 2 2 4 9 0 0 0 0 0 0;
UnicodeRange 0 5 42 47 48 49 50 51 52 54 55 57 59 61 68;
FSType 0;
Vendor "UNIC";
winAscent 880;
winDescent 120;
} OS/2;
Loading

0 comments on commit c93c958

Please sign in to comment.