Skip to content

Commit

Permalink
Add new fonts
Browse files Browse the repository at this point in the history
* Add following fonts to the known font list.
  - Hina Mincho
  - Kaisei Dcol/HarunoUmi/Opti/Tokumin
  - Klee One
  - Rampart One
  - Gowun Batang
  - Gowun Dodum
  - Hahmlet
  - IBM Plex Sans KR
* Bump east-asian-spacing to 1.3.4.
* Change `--print-name` to use name ID 16 if exists to match the east-asian-spacing 1.3.4.
* Renamed `--dump-name` to `--print-name`.
  • Loading branch information
kojiishi committed Aug 27, 2021
1 parent 5a1fd5a commit c8767ce
Show file tree
Hide file tree
Showing 77 changed files with 10,605 additions and 37 deletions.
2 changes: 1 addition & 1 deletion README.md
Original file line number Diff line number Diff line change
Expand Up @@ -98,7 +98,7 @@ When adding new fonts to the known font list,
the following process is recommended:

1. Find the font names.
Running the `add-chws` with `--dump-name` option can print them.
Running the `add-chws` with `--print-name` option can print them.
2. Add them to the [config].
3. Build the font and run the [Visual Test].
4. Tweak the [config] if needed.
Expand Down
30 changes: 30 additions & 0 deletions references/HinaMincho-Regular.ttf-glyphs
Original file line number Diff line number Diff line change
@@ -0,0 +1,30 @@
# left
7807
7813
7842
7846
7852
7868
7904
7922
7924
# right
7841
7845
7851
7867
7905
# middle
7806
7826
7919
# space
7929
# vertical.left

# vertical.right

# vertical.middle

# vertical.space

210 changes: 210 additions & 0 deletions references/HinaMincho-Regular.ttf.G_P_O_S_.ttx.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,210 @@
@@
<Script>
<DefaultLangSys>
<ReqFeatureIndex value="65535"/>
- <!-- FeatureCount=3 -->
+ <!-- FeatureCount=5 -->
<FeatureIndex index="0" value="0"/>
<FeatureIndex index="1" value="2"/>
<FeatureIndex index="2" value="4"/>
+ <FeatureIndex index="3" value="6"/>
+ <FeatureIndex index="4" value="7"/>
</DefaultLangSys>
<!-- LangSysCount=0 -->
</Script>
@@
<Script>
<DefaultLangSys>
<ReqFeatureIndex value="65535"/>
- <!-- FeatureCount=3 -->
+ <!-- FeatureCount=5 -->
<FeatureIndex index="0" value="1"/>
<FeatureIndex index="1" value="3"/>
<FeatureIndex index="2" value="5"/>
+ <FeatureIndex index="3" value="6"/>
+ <FeatureIndex index="4" value="7"/>
</DefaultLangSys>
<!-- LangSysCount=0 -->
</Script>
</ScriptRecord>
</ScriptList>
<FeatureList>
- <!-- FeatureCount=6 -->
+ <!-- FeatureCount=8 -->
<FeatureRecord index="0">
<FeatureTag value="kern"/>
<Feature>
@@
<LookupListIndex index="3" value="11"/>
</Feature>
</FeatureRecord>
+ <FeatureRecord index="6">
+ <FeatureTag value="halt"/>
+ <Feature>
+ <!-- LookupCount=1 -->
+ <LookupListIndex index="0" value="12"/>
+ </Feature>
+ </FeatureRecord>
+ <FeatureRecord index="7">
+ <FeatureTag value="chws"/>
+ <Feature>
+ <!-- LookupCount=2 -->
+ <LookupListIndex index="0" value="13"/>
+ <LookupListIndex index="1" value="15"/>
+ </Feature>
+ </FeatureRecord>
</FeatureList>
<LookupList>
- <!-- LookupCount=12 -->
+ <!-- LookupCount=16 -->
<Lookup index="0">
<LookupType value="2"/>
<LookupFlag value="8"/><!-- ignoreMarks -->
@@
</Mark2Array>
</MarkMarkPos>
</Lookup>
+ <Lookup index="12">
+ <LookupType value="1"/>
+ <LookupFlag value="0"/>
+ <!-- SubTableCount=3 -->
+ <SinglePos index="0" Format="1">
+ <Coverage>
+ <Glyph value="uniFF0C"/>
+ <Glyph value="uniFF0E"/>
+ <Glyph value="uni3011"/>
+ <Glyph value="uni300D"/>
+ <Glyph value="uni300F"/>
+ <Glyph value="uniFF09"/>
+ <Glyph value="uni301F"/>
+ <Glyph value="uni3001"/>
+ <Glyph value="uni3002"/>
+ </Coverage>
+ <ValueFormat value="4"/>
+ <Value XAdvance="-500"/>
+ </SinglePos>
+ <SinglePos index="1" Format="1">
+ <Coverage>
+ <Glyph value="uni3010"/>
+ <Glyph value="uni300C"/>
+ <Glyph value="uni300E"/>
+ <Glyph value="uniFF08"/>
+ <Glyph value="uni301D"/>
+ </Coverage>
+ <ValueFormat value="5"/>
+ <Value XPlacement="-500" XAdvance="-500"/>
+ </SinglePos>
+ <SinglePos index="2" Format="1">
+ <Coverage>
+ <Glyph value="uniFF1A"/>
+ <Glyph value="uniFF1B"/>
+ <Glyph value="uni30FB"/>
+ </Coverage>
+ <ValueFormat value="5"/>
+ <Value XPlacement="-250" XAdvance="-500"/>
+ </SinglePos>
+ </Lookup>
+ <Lookup index="13">
+ <LookupType value="2"/>
+ <LookupFlag value="0"/>
+ <!-- SubTableCount=1 -->
+ <PairPos index="0" Format="2">
+ <Coverage>
+ <Glyph value="uniFF0C"/>
+ <Glyph value="uniFF0E"/>
+ <Glyph value="uni3011"/>
+ <Glyph value="uni300D"/>
+ <Glyph value="uni300F"/>
+ <Glyph value="uniFF09"/>
+ <Glyph value="uni301F"/>
+ <Glyph value="uni3001"/>
+ <Glyph value="uni3002"/>
+ </Coverage>
+ <ValueFormat1 value="4"/>
+ <ValueFormat2 value="0"/>
+ <ClassDef1>
+ </ClassDef1>
+ <ClassDef2>
+ <ClassDef glyph="space.full" class="1"/>
+ <ClassDef glyph="uni3001" class="1"/>
+ <ClassDef glyph="uni3002" class="1"/>
+ <ClassDef glyph="uni300C" class="1"/>
+ <ClassDef glyph="uni300D" class="1"/>
+ <ClassDef glyph="uni300E" class="1"/>
+ <ClassDef glyph="uni300F" class="1"/>
+ <ClassDef glyph="uni3010" class="1"/>
+ <ClassDef glyph="uni3011" class="1"/>
+ <ClassDef glyph="uni301D" class="1"/>
+ <ClassDef glyph="uni301F" class="1"/>
+ <ClassDef glyph="uni30FB" class="1"/>
+ <ClassDef glyph="uniFF08" class="1"/>
+ <ClassDef glyph="uniFF09" class="1"/>
+ <ClassDef glyph="uniFF0C" class="1"/>
+ <ClassDef glyph="uniFF0E" class="1"/>
+ <ClassDef glyph="uniFF1A" class="1"/>
+ <ClassDef glyph="uniFF1B" class="1"/>
+ </ClassDef2>
+ <!-- Class1Count=1 -->
+ <!-- Class2Count=2 -->
+ <Class1Record index="0">
+ <Class2Record index="0">
+ <Value1 XAdvance="0"/>
+ </Class2Record>
+ <Class2Record index="1">
+ <Value1 XAdvance="-500"/>
+ </Class2Record>
+ </Class1Record>
+ </PairPos>
+ </Lookup>
+ <Lookup index="14">
+ <LookupType value="1"/>
+ <LookupFlag value="0"/>
+ <!-- SubTableCount=1 -->
+ <SinglePos index="0" Format="1">
+ <Coverage>
+ <Glyph value="uni3010"/>
+ <Glyph value="uni300C"/>
+ <Glyph value="uni300E"/>
+ <Glyph value="uniFF08"/>
+ <Glyph value="uni301D"/>
+ </Coverage>
+ <ValueFormat value="5"/>
+ <Value XPlacement="-500" XAdvance="-500"/>
+ </SinglePos>
+ </Lookup>
+ <Lookup index="15">
+ <LookupType value="8"/>
+ <LookupFlag value="0"/>
+ <!-- SubTableCount=1 -->
+ <ChainContextPos index="0" Format="3">
+ <!-- BacktrackGlyphCount=1 -->
+ <BacktrackCoverage index="0">
+ <Glyph value="uniFF1A"/>
+ <Glyph value="uniFF1B"/>
+ <Glyph value="uni3010"/>
+ <Glyph value="uni300C"/>
+ <Glyph value="uni300E"/>
+ <Glyph value="uniFF08"/>
+ <Glyph value="uni301D"/>
+ <Glyph value="uni30FB"/>
+ <Glyph value="space.full"/>
+ </BacktrackCoverage>
+ <!-- InputGlyphCount=1 -->
+ <InputCoverage index="0">
+ <Glyph value="uni3010"/>
+ <Glyph value="uni300C"/>
+ <Glyph value="uni300E"/>
+ <Glyph value="uniFF08"/>
+ <Glyph value="uni301D"/>
+ </InputCoverage>
+ <!-- LookAheadGlyphCount=0 -->
+ <!-- PosCount=1 -->
+ <PosLookupRecord index="0">
+ <SequenceIndex value="0"/>
+ <LookupListIndex value="14"/>
+ </PosLookupRecord>
+ </ChainContextPos>
+ </Lookup>
</LookupList>
</GPOS>

20 changes: 20 additions & 0 deletions references/HinaMincho-Regular.ttf.tables.diff
Original file line number Diff line number Diff line change
@@ -0,0 +1,20 @@
@@ -1,7 +1,7 @@
Font 0: "Hina Mincho" "Regular" PS="HinaMincho-Regular"
Tag Size
GDEF 1,192 [0]
-GPOS 18,418 [0]
+GPOS 18,710 [0]
GSUB 6,740 [0]
OS/2 96 [0]
cmap 95,888 [0]
@@ -16,7 +16,7 @@
post 82,105 [0]
vhea 36 [0]
vmtx 33,066 [0]
-Total: 6,429,512
-Data: 6,429,231
-Gap: 281
+Total: 6,429,802
+Data: 6,429,523
+Gap: 279
Tables: 16
43 changes: 43 additions & 0 deletions references/IBMPlexSansKR-Bold.ttf-glyphs
Original file line number Diff line number Diff line change
@@ -0,0 +1,43 @@
# left
159
161
163
165
167
169
11691
11692
11694
11696
11698
11740
11792
11824
# right
158
160
162
164
166
168
11693
11695
11697
11739
11790
11822
# middle
11743
11745
11757
11758
# space
12054
# vertical.left

# vertical.right

# vertical.middle

# vertical.space

Loading

0 comments on commit c8767ce

Please sign in to comment.