fixed a bug where diacritics with align right would not get positioned correctly

This commit is contained in:
minjaesong
2022-03-22 15:47:24 +09:00
parent 44b2450fbf
commit ac85217998
5 changed files with 41 additions and 28 deletions

View File

@@ -57,11 +57,13 @@ Rightmost vertical column (should be 20 px tall) contains the tags. Tags are def
Y |= Diacritics Anchor Points (see below)
X -'
A -,_ 0 Align 1 Align 0 Align 1 Align before
A -' 0 left 0 right 1 centre 1 the glyph
A -' 0 Left 0 Right 1 Centre* 1 the glyph
D --Diacritics Type Bit (see below; not all diacritics are actually marked as a diacritics on the spritesheet)
S -,_ 0 Stack 1 Stack 0 Before 1 Up &
(MSB) S -' 0 up 0 down 1 &After 1 Down* (e.g. U+0C48)
Align Centre is actually "align to where the anchor point is". Said anchor point default to the X-centre of the glyph.
Up&Down:
1. when two pixels are both #00FF00 it's "don't stack"
2. otherwise, it's actually up&down