这是indexloc提供的服务,不要输入任何密码
Skip to content
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
78 changes: 78 additions & 0 deletions src/unpatched-fonts/Gohu/14/gohufont-14.patch
Original file line number Diff line number Diff line change
@@ -0,0 +1,78 @@
--- gohufont-14.ttx 2024-06-11 21:49:37.271329386 +0200
+++ gohufont-14_.ttx 2024-06-11 22:01:46.502759124 +0200
@@ -195,7 +195,7 @@
<GlyphID id="189" name="onequarter"/>
<GlyphID id="190" name="onehalf"/>
<GlyphID id="191" name="threequarters"/>
- <GlyphID id="192" name="question#1"/>
+ <GlyphID id="192" name="inverted"/>
<GlyphID id="193" name="Agrave"/>
<GlyphID id="194" name="Aacute"/>
<GlyphID id="195" name="Acircumflex"/>
@@ -532,7 +532,7 @@
<mtx name="plusminus" width="1170" lsb="146"/>
<mtx name="q" width="1170" lsb="146"/>
<mtx name="question" width="1170" lsb="146"/>
- <mtx name="question#1" width="1170" lsb="146"/>
+ <mtx name="inverted" width="1170" lsb="146"/>
<mtx name="quotedbl" width="1170" lsb="293"/>
<mtx name="quotesingle" width="1170" lsb="439"/>
<mtx name="r" width="1170" lsb="146"/>
@@ -701,7 +701,7 @@
<map code="0x3c" name="less"/><!-- LESS-THAN SIGN -->
<map code="0x3d" name="equal"/><!-- EQUALS SIGN -->
<map code="0x3e" name="greater"/><!-- GREATER-THAN SIGN -->
- <map code="0x3f" name="question#1"/><!-- QUESTION MARK -->
+ <map code="0x3f" name="question"/><!-- QUESTION MARK -->
<map code="0x40" name="at"/><!-- COMMERCIAL AT -->
<map code="0x41" name="A"/><!-- LATIN CAPITAL LETTER A -->
<map code="0x42" name="B"/><!-- LATIN CAPITAL LETTER B -->
@@ -828,6 +828,7 @@
<map code="0xbc" name="onequarter"/><!-- VULGAR FRACTION ONE QUARTER -->
<map code="0xbd" name="onehalf"/><!-- VULGAR FRACTION ONE HALF -->
<map code="0xbe" name="threequarters"/><!-- VULGAR FRACTION THREE QUARTERS -->
+ <map code="0xbf" name="inverted"/><!-- INVERTED QUESTION MARK -->
<map code="0xc0" name="Agrave"/><!-- LATIN CAPITAL LETTER A WITH GRAVE -->
<map code="0xc1" name="Aacute"/><!-- LATIN CAPITAL LETTER A WITH ACUTE -->
<map code="0xc2" name="Acircumflex"/><!-- LATIN CAPITAL LETTER A WITH CIRCUMFLEX -->
@@ -1166,7 +1167,7 @@
<map code="0x3c" name="less"/><!-- LESS-THAN SIGN -->
<map code="0x3d" name="equal"/><!-- EQUALS SIGN -->
<map code="0x3e" name="greater"/><!-- GREATER-THAN SIGN -->
- <map code="0x3f" name="question#1"/><!-- QUESTION MARK -->
+ <map code="0x3f" name="question"/><!-- QUESTION MARK -->
<map code="0x40" name="at"/><!-- COMMERCIAL AT -->
<map code="0x41" name="A"/><!-- LATIN CAPITAL LETTER A -->
<map code="0x42" name="B"/><!-- LATIN CAPITAL LETTER B -->
@@ -1293,6 +1294,7 @@
<map code="0xbc" name="onequarter"/><!-- VULGAR FRACTION ONE QUARTER -->
<map code="0xbd" name="onehalf"/><!-- VULGAR FRACTION ONE HALF -->
<map code="0xbe" name="threequarters"/><!-- VULGAR FRACTION THREE QUARTERS -->
+ <map code="0xbf" name="inverted"/><!-- INVERTED QUESTION MARK -->
<map code="0xc0" name="Agrave"/><!-- LATIN CAPITAL LETTER A WITH GRAVE -->
<map code="0xc1" name="Aacute"/><!-- LATIN CAPITAL LETTER A WITH ACUTE -->
<map code="0xc2" name="Acircumflex"/><!-- LATIN CAPITAL LETTER A WITH CIRCUMFLEX -->
@@ -9721,7 +9723,7 @@
<instructions/>
</TTGlyph>

- <TTGlyph name="question#1" xMin="146" yMin="1" xMax="1024" yMax="1464">
+ <TTGlyph name="inverted" xMin="146" yMin="1" xMax="1024" yMax="1464">
<contour>
<pt x="585" y="951" on="1"/>
<pt x="585" y="1025" on="1"/>
@@ -11909,14 +11911,6 @@
<minMemType1 value="0"/>
<maxMemType1 value="0"/>
<psNames>
- <!-- This file uses unique glyph names based on the information
- found in the 'post' table. Since these names might not be unique,
- we have to invent artificial names in case of clashes. In order to
- be able to retain the original information, we need a name to
- ps name mapping for those cases where they differ. That's what
- you see below.
- -->
- <psName name="question#1" psName="question"/>
</psNames>
<extraNames>
<!-- following are the name that are not taken from the standard Mac glyph order -->
Binary file modified src/unpatched-fonts/Gohu/14/gohufont-14.ttf
Binary file not shown.
Binary file added src/unpatched-fonts/Gohu/14/gohufont-14_orig.tt_
Binary file not shown.
14 changes: 0 additions & 14 deletions src/unpatched-fonts/Gohu/README

This file was deleted.

7 changes: 3 additions & 4 deletions src/unpatched-fonts/Gohu/README.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,11 +6,10 @@ TrueType automatically traced, with available bitmaps in heights of 11 and 14 pi
Copyright 2010 by Hugo Chargois (http://font.gohu.eu)
Converted by Guilherme Maeda (github.com/koemaeda)

**Thanks and aknowledgments**
For more information have a look at the upstream websites: http://font.gohu.org/ https://github.com/koemaeda/gohufont-ttf

The Unicode versions of the 11px font are based extensively on the fixed 6x10 font by Markus Kuhn (http://www.cl.cam.ac.uk/~mgk25/ucs-fonts.html).
I used the Terminus font in 14 px with great satisfaction for a long time before I decided to make gohufont 14 px, so it surely inspired me and they may share some similarities in appearance. It is not a derivative work though. Thanks to Dimitar Zhekov for his great font.
## Preprocessed Source Font

For more information have a look at the upstream websites: http://font.gohu.org/ https://github.com/koemaeda/gohufont-ttf
Nerd Fonts corrects the wrong question mark in gohufont-14.

Version: 1.33
10 changes: 10 additions & 0 deletions src/unpatched-fonts/Gohu/fix_gohufont_14.sh
Original file line number Diff line number Diff line change
@@ -0,0 +1,10 @@
#!/usr/bin/env bash

set -e

cd 14
ttx gohufont-14.ttf
patch < gohufont-14.patch
mv gohufont-14.ttf gohufont-14_orig.tt_
ttx gohufont-14.ttx
rm gohufont-14.ttx