wmii

git clone git://oldgit.suckless.org/wmii/
Log | Files | Refs | README | LICENSE

textwidth_l.c (260B)


      1 /* Copyright ©2007-2010 Kris Maglione <maglione.k at Gmail>
      2  * See LICENSE file for license details.
      3  */
      4 #include "../x11.h"
      5 
      6 uint
      7 textwidth_l(Font *font, const char *text, uint len) {
      8 	Rectangle r;
      9 
     10 	r = textextents_l(font, text, len, nil);
     11 	return Dx(r);
     12 }