From 74dc60da74c62e07f0d63179da9724d705794a6d Mon Sep 17 00:00:00 2001 From: rsc Date: Sun, 25 Jun 2006 18:59:29 +0000 Subject: bye --- src/libdraw/md-string.c | 66 ------------------------------------------------- 1 file changed, 66 deletions(-) delete mode 100644 src/libdraw/md-string.c (limited to 'src/libdraw/md-string.c') diff --git a/src/libdraw/md-string.c b/src/libdraw/md-string.c deleted file mode 100644 index 6ae19c01..00000000 --- a/src/libdraw/md-string.c +++ /dev/null @@ -1,66 +0,0 @@ -#include -#include -#include -#include - -Point -memimagestring(Memimage *b, Point p, Memimage *color, Point cp, Memsubfont *f, char *cs) -{ - int w, width; - uchar *s; - Rune c; - Fontchar *i; - - s = (uchar*)cs; - for(; c=*s; p.x+=width, cp.x+=width){ - width = 0; - if(c < Runeself) - s++; - else{ - w = chartorune(&c, (char*)s); - if(w == 0){ - s++; - continue; - } - s += w; - } - if(c >= f->n) - continue; - i = f->info+c; - width = i->width; - memdraw(b, Rect(p.x+i->left, p.y+i->top, p.x+i->left+(i[1].x-i[0].x), p.y+i->bottom), - color, cp, f->bits, Pt(i->x, i->top), SoverD); - } - return p; -} - -Point -memsubfontwidth(Memsubfont *f, char *cs) -{ - Rune c; - Point p; - uchar *s; - Fontchar *i; - int w, width; - - p = Pt(0, f->height); - s = (uchar*)cs; - for(; c=*s; p.x+=width){ - width = 0; - if(c < Runeself) - s++; - else{ - w = chartorune(&c, (char*)s); - if(w == 0){ - s++; - continue; - } - s += w; - } - if(c >= f->n) - continue; - i = f->info+c; - width = i->width; - } - return p; -} -- cgit v1.2.3