Skip to content

Commit

Permalink
fix FNT_DBCS; workflow upd; CrossContinents merge
Browse files Browse the repository at this point in the history
  • Loading branch information
tomchen committed Jun 5, 2020
1 parent e81f913 commit de7471b
Show file tree
Hide file tree
Showing 12 changed files with 900 additions and 15 deletions.
7 changes: 7 additions & 0 deletions .editorconfig
Original file line number Diff line number Diff line change
Expand Up @@ -13,3 +13,10 @@ indent_size = 4
end_of_line = crlf
trim_trailing_whitespace = false
insert_final_newline = false

[*.py]
indent_style = tab
indent_size = 4
end_of_line = crlf
trim_trailing_whitespace = false
insert_final_newline = false
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -9,6 +9,7 @@
/tools/input/
/tools/output/
*.baiduyun.uploading.cfg
/6_setup/prod/
/6_setup/dev/**/*.*
!/6_setup/dev/*/*/mm_i18n.nsi

Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,12 @@ local function dbcsProc(d)
FNT.setCharWidth(fontAddr, highByte, cachedWidth)
end

local function setLowByteInFontAsCached()
FNT.setCharSpaceBefore(fontAddr, lowByte, cachedSpaceBefore)
FNT.setCharSpaceAfter(fontAddr, lowByte, cachedSpaceAfter)
FNT.setCharWidth(fontAddr, lowByte, cachedWidth)
end

local function lastByteCheckAndCache(currentByte)
-- lastByte could be:
-- 0: initial state
Expand Down Expand Up @@ -408,7 +414,7 @@ local function dbcsProc(d)
FNT.getCharShape(fntAddrTemp, lowByte) ..
string.rep("\0", (fontBottomHeightToAdd * widthTemp))
)
setHighByteInFontAsCached()
setLowByteInFontAsCached()
highByte = 0
-- lowByte = 0
-- cachedSpaceBefore = 0
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -350,6 +350,12 @@ local function dbcsProc(d)
FNT.setCharWidth(fontAddr, highByte, cachedWidth)
end

local function setLowByteInFontAsCached()
FNT.setCharSpaceBefore(fontAddr, lowByte, cachedSpaceBefore)
FNT.setCharSpaceAfter(fontAddr, lowByte, cachedSpaceAfter)
FNT.setCharWidth(fontAddr, lowByte, cachedWidth)
end

local function lastByteCheckAndCache(currentByte)
-- lastByte could be:
-- 0: initial state
Expand Down Expand Up @@ -408,7 +414,7 @@ local function dbcsProc(d)
FNT.getCharShape(fntAddrTemp, lowByte) ..
string.rep("\0", (fontBottomHeightToAdd * widthTemp))
)
setHighByteInFontAsCached()
setLowByteInFontAsCached()
highByte = 0
-- lowByte = 0
-- cachedSpaceBefore = 0
Expand Down
Loading

0 comments on commit de7471b

Please sign in to comment.