Skip to content

Commit

Permalink
Revert Fix glyph position of CID+8271 and CID+8272 in HaranoAjiMincho
Browse files Browse the repository at this point in the history
SourceHanSerif 2.002 fixes
the inconsistent uni309B-V and uni309C-V glyph positions.
adobe-fonts/source-han-serif#157

So this commit reverts its workaround
a46765c
.
  • Loading branch information
trueroad committed Oct 9, 2023
1 parent 2d00f69 commit 796b332
Show file tree
Hide file tree
Showing 3 changed files with 6 additions and 18 deletions.
10 changes: 5 additions & 5 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -299,13 +299,13 @@ AJ1 で全角幅の CID に割り当たったため、
+ AJ1 CID+16327 U+309A 'COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK'

以下については、
源ノ明朝では
源ノ明朝で
[
縦書きグリフも横書きグリフも左上に配置されています
縦書きグリフも横書きグリフも左上に配置されている
](https://github.com/adobe-fonts/source-han-serif/issues/157)
が、
AJ1 の縦書きグリフでは右下に配置されるのが普通のようなので
平行移動して位置調整しました(20220130 版以降)
という問題があったので
原ノ味フォント 20220130 版から平行移動して位置調整していましたが、
源ノ明朝 2.002 で修正されたため原ノ味フォント 202310xx 版から調整していません
源ノ角ゴシックにはこの問題はありませんので調整していません。

+ CID+8271 (GSUB vert/vrt2,
Expand Down
6 changes: 0 additions & 6 deletions common-data/shift_serif.lst
Original file line number Diff line number Diff line change
Expand Up @@ -9,9 +9,3 @@ aji08283 1000
aji16326 1000
# CID+16327 U+309A 'COMBINING KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK'
aji16327 1000
# CID+8271 (GSUB vert/vrt2,
# `゜` U+309C 'KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK')
aji08271 1000
# CID+8272 (GSUB vert/vrt2,
# `゛` U+309B 'KATAKANA-HIRAGANA VOICED SOUND MARK')
aji08272 1000
8 changes: 1 addition & 7 deletions script/make_shift.py
Original file line number Diff line number Diff line change
Expand Up @@ -49,16 +49,10 @@ def calc_shift(name: str, width: int, ascender: int, descender: int,
new_tsb: float
if ((name == "aji08269" or
name == "aji08273" or
name == "aji08283" or
name == "aji08271" or
name == "aji08272")):
name == "aji08283")):
# CID+707 -> CID+8269 (GSUB vert/vrt2, `°` U+00B0 'DEGREE SIGN')
# CID+708 -> CID+8273 (GSUB vert/vrt2, `′` U+2032 'PRIME')
# CID+709 -> CID+8283 (GSUB vert/vrt2, `″` U+2033 'DOUBLE PRIME')
# CID+8271 (GSUB vert/vrt2,
# `゜` U+309C 'KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK')
# CID+8272 (GSUB vert/vrt2,
# `゛` U+309B 'KATAKANA-HIRAGANA VOICED SOUND MARK')
# Top left to bottom right
new_lsb = width - (face_width + lsb)
new_tsb = ascender - (descender + (face_height + tsb))
Expand Down

0 comments on commit 796b332

Please sign in to comment.