Skip to content

Commit

Permalink
Fix glyph position of CID+8271 and CID+8272 in HaranoAjiMincho
Browse files Browse the repository at this point in the history
In HaranoAjiMincho, the glyph position of
CID+8271 (GSUB vert/vrt2,
`゜` U+309C 'KATAKANA-HIRAGANA SEMI-VOICED SOUND MARK')
and
CID+8272 (GSUB vert/vrt2,
`゛` U+309B 'KATAKANA-HIRAGANA VOICED SOUND MARK')
were in the left top corner.

However, in most AJ1 fonts, they are in the right bottom corner.
So this commit fixes the positions.
  • Loading branch information
trueroad committed Jan 29, 2022
1 parent 72cb0ea commit a46765c
Show file tree
Hide file tree
Showing 2 changed files with 14 additions and 2 deletions.
6 changes: 6 additions & 0 deletions common-data/shift_serif.lst
Original file line number Diff line number Diff line change
Expand Up @@ -9,3 +9,9 @@ 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
10 changes: 8 additions & 2 deletions script/make_shift.py
Original file line number Diff line number Diff line change
Expand Up @@ -6,7 +6,7 @@
# make_shift.py:
# create shift parameters from letter face
#
# Copyright (C) 2020 Masamichi Hosoda.
# Copyright (C) 2020, 2022 Masamichi Hosoda.
# All rights reserved.
#
# Redistribution and use in source and binary forms, with or without
Expand Down Expand Up @@ -40,10 +40,16 @@ def calc_shift (name, width, ascender, descender, \
face_width, face_height, lsb, tsb):
if name == "aji08269" or \
name == "aji08273" or \
name == "aji08283":
name == "aji08283" or \
name == "aji08271" or \
name == "aji08272":
# 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 a46765c

Please sign in to comment.