Skip to content

yanlinsun/monospacecharwidth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

7 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

monospacecharwidth

Calculate character width in monospace fonts

This tool will calculate how many character spaces are consumed by the given string. It is useful if you are displaying a file with monospaced fonts. Usually, a Chinese character takes 2 spaces. So the following string will return 10.

"白日依山尽".

I create this tool to calculate the text width, so that I can aligned them using tab.

About

Calculate character width in monospace fonts

Resources

Stars

Watchers

Forks

Releases

Packages

Used by

Contributors

Languages