mirror of
https://github.com/TextPlace/CoreTextPlace.git
synced 2025-07-23 19:12:39 +00:00
fix: dirty fix for char width
This commit is contained in:
parent
4dd8121ebb
commit
7923680e80
3 changed files with 9 additions and 2 deletions
|
@ -10,5 +10,6 @@ export function getCharacterWidth(ch: string): number {
|
|||
);
|
||||
}
|
||||
|
||||
return unicodeWidth(ch);
|
||||
// TODO: Properly fix this.
|
||||
return Math.min(unicodeWidth(ch), 2);
|
||||
}
|
||||
|
|
Loading…
Add table
Add a link
Reference in a new issue