Skip to content

Commit

Permalink
fix: #48
Browse files Browse the repository at this point in the history
  • Loading branch information
SilenceLeo committed Jun 20, 2022
1 parent ddb19ee commit 2c8024b
Showing 1 changed file with 2 additions and 2 deletions.
4 changes: 2 additions & 2 deletions src/file/export/toBmfInfo.ts
Original file line number Diff line number Diff line change
Expand Up @@ -91,8 +91,8 @@ export default function toBmfInfo(project: Project): BMFont {
chnl: 15,
}

info.xoffset = Number(info.xoffset.toFixed(2))
info.yoffset = Number(info.yoffset.toFixed(2))
info.xoffset = Math.round(info.xoffset)
info.yoffset = Math.round(info.yoffset)
chars.list.push(info)

if (opentype) {
Expand Down

0 comments on commit 2c8024b

Please sign in to comment.