Skip to content

Commit

Permalink
Fix regression of diacritic placement of over-the-tie marks (#1092).
Browse files Browse the repository at this point in the history
  • Loading branch information
be5invis committed May 29, 2021
1 parent 8f4c5e7 commit 3e615f4
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 11 deletions.
3 changes: 2 additions & 1 deletion changes/7.0.1.md
Original file line number Diff line number Diff line change
Expand Up @@ -6,4 +6,5 @@
* Fix missing variant of Latin Small Letter Ue (`U+1D6B`) (#1086).
* Fix missing serif of Italic Latin Phi (#1087).
* Remove `U+1FB93` ("Left Half Block and Right Half Inverse Medium Shade") since it is a reserved code point for now (#1088).
* Add Black Rightwards Arrowhead (`U+27A4`) (#1090).
* Add Black Rightwards Arrowhead (`U+27A4`) (#1090).
* Fix regression of diacritic placement of over-the-tie marks (#1092).
1 change: 0 additions & 1 deletion font-src/glyphs/auto-build/composite.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -710,7 +710,6 @@ glyph-block AutoBuild-Enclosure : begin

do "triple-digit dashed-boxed"
createDashedBoxedGlyphs 3 : list
list 0x034F {'C.serifless' 'G.toothedSeriflessHooked' 'J.serifless'} WideWidth1
list 0xFFFC {'O' 'B.standardSerifless' 'J.serifless'} WideWidth1

do "inset boxed"
Expand Down
1 change: 1 addition & 0 deletions font-src/glyphs/space/index.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -41,6 +41,7 @@ glyph-block Symbol-Mosaic-NotDef : begin
set currentGlyph.autoRefPriority (-9999)

alias 'nonmarkingreturn' 0x000D 'zwsp'
alias 'cgj' 0x34F 'zwsp'
alias 'nbsp' 0xA0 'space'

alias 'enquad' 0x2000 'sp1'
Expand Down
9 changes: 2 additions & 7 deletions font-src/otl/gsub-ccmp.ptl
Original file line number Diff line number Diff line change
Expand Up @@ -138,21 +138,16 @@ export : define [buildCCMP sink glyphStore markGlyphs] : begin
object [from {'revCommaAbove' 'perispomeniAbove'}] [to 'dasiaperispomeni']
object [from {'cyrlPsiliAbove' 'cyrlPokrytieAbove'}] [to 'cyrlPsiliPokrytieAbove']

define gnCgjNwid 'dashed-boxed3{847}{C}{G}{J}.NWID'
define gnCgjWwid 'dashed-boxed3{847}{C}{G}{J}.WWID'

define lookupCcmp-TieMarkLigature : add-lookup sink : object
.type 'gsub_ligature'
.substitutions : {}.concat
TieMarkFrom.map : lambda [gnFrom idx]
object [from {gnCgjNwid gnFrom}] [to TieMarkTo.(idx)]
TieMarkFrom.map : lambda [gnFrom idx]
object [from {gnCgjWwid gnFrom}] [to TieMarkTo.(idx)]
object [from {'cgj' gnFrom}] [to TieMarkTo.(idx)]

define lookupCcmp-TieMarkContextual : add-lookup sink : object
.type 'gsub_chaining'
.rules : list : object
match {[TieGlyphs.concat TieMarkTo] {gnCgjNwid gnCgjWwid} TieMarkFrom}
match {[TieGlyphs.concat TieMarkTo] {'cgj'} TieMarkFrom}
inputBegins 1
inputEnds 3
apply {{.at 1 .lookup lookupCcmp-TieMarkLigature}}
Expand Down
4 changes: 2 additions & 2 deletions font-src/support/gr.js
Original file line number Diff line number Diff line change
Expand Up @@ -77,12 +77,12 @@ const TieMark = {

const TieGlyph = {
get(glyph) {
if (glyph && glyph.related) return glyph.related.TieMark;
if (glyph && glyph.related) return glyph.related.TieGlyph;
else return null;
},
set(glyph) {
if (!glyph.related) glyph.related = {};
glyph.related.TieMark = true;
glyph.related.TieGlyph = true;
}
};

Expand Down

0 comments on commit 3e615f4

Please sign in to comment.