Search code examples
clinuxstringfontspixel

Width of string in Pixels


Can anyone tell how can I calculate width of a string in pixels,provided font size in pixels? I have to do it in C under linux?


Solution

  • You probably need something like the FreeType library