Skip to content

vixus0/xftwidth

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

26 Commits
 
 
 
 
 
 
 
 

Repository files navigation

xftwidth

Calculate the width in pixels of a string using a given Xft font:

xftwidth "DejaVu Sans:size=10" "test"

Calculate the maximum possible font size that will fit a given pixel width:

xftwidth "DejaVu Sans" "(╯°□°)╯︵ ┻━┻)" 500

About

Calculates the width in pixels of a string using a given Xft font

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published