1372,7 → 1372,7 |
case SpecialChars::CJK_KANJI: |
case SpecialChars::CJK_KANA: |
case SpecialChars::CJK_NOTOP: |
kern = wide / 4; |
kern = charStyle.fontSize() / 10 / 4; |
wide += kern; |
hl->glyph.xadvance += kern; |
} |
1385,7 → 1385,7 |
case SpecialChars::CJK_COMMA: |
case SpecialChars::CJK_PERIOD: |
case SpecialChars::CJK_MIDPOINT: |
kern = -wide / 2; |
kern = -charStyle.fontSize() / 10 / 2; |
wide += kern; |
hl->glyph.xadvance += kern; |
} |
1395,7 → 1395,7 |
switch(nextStat & SpecialChars::CJK_CHAR_MASK){ |
case SpecialChars::CJK_FENCE_BEGIN: |
case SpecialChars::CJK_FENCE_END: |
kern = -wide / 2; |
kern = -charStyle.fontSize() / 10 / 2; |
wide += kern; |
hl->glyph.xadvance += kern; |
} |
1403,7 → 1403,7 |
case SpecialChars::CJK_MIDPOINT: |
switch(nextStat & SpecialChars::CJK_CHAR_MASK){ |
case SpecialChars::CJK_FENCE_BEGIN: |
kern = -wide / 2; |
kern = -charStyle.fontSize() / 10 / 2; |
wide += kern; |
hl->glyph.xadvance += kern; |
} |
1416,7 → 1416,7 |
prevStat = SpecialChars::getCJKAttr(hl2->ch) & SpecialChars::CJK_CHAR_MASK; |
} |
if(prevStat == SpecialChars::CJK_FENCE_BEGIN){ |
kern = -wide / 2; |
kern = -charStyle.fontSize() / 10 / 2; |
wide += kern; |
hl->glyph.xadvance += kern; |
hl->glyph.xoffset += kern; |
1431,7 → 1431,7 |
case SpecialChars::CJK_KANJI: |
case SpecialChars::CJK_KANA: |
case SpecialChars::CJK_NOTOP: |
kern = hl2->glyph.wide() / 4; |
kern = charStyle.fontSize() / 10 / 4; |
wide += kern; |
hl->glyph.xadvance += kern; |
} |