[MPlayer-dev-eng] [PATCH] dynamic font generation
Jindrich Makovicka
makovick at KMLinux.fjfi.cvut.cz
Sun Aug 18 09:42:35 CEST 2002
On Fri, Aug 16, 2002 at 11:09:49PM +0200, Arpi wrote:
> Hi,
>
> > > yea, but think of chinese etc. they have very large fontsets with few
> > > thousand chars, it's where it matters.
> > >
> > yes, i've spent about one minute to generate a chinese fonts for mplayer
> > and there even different encoding for chinese chars, other language i
> > think just the same, i don't know how it is done in windows, seems they
> > can generate fonts very fast, maybe they just generate the chars that
> > is needed to display subtitles.
> >
> > --
> > Best Regards,
> > LR
>
> could you please re-test now? should be much faster :)
>
impressive, here's just a small fix
--
Jindrich Makovicka
-------------- next part --------------
--- subfont.c.orig Sat Aug 17 10:51:26 2002
+++ subfont.c Sat Aug 17 21:21:54 2002
@@ -629,7 +629,7 @@
unsigned char *s = buffer;
unsigned short *t = tmp2+1;
for(y=0; y<height; y++){
- memset(t, 0, (width+1)*sizeof(short));
+ memset(t-1, 0, (width+1)*sizeof(short));
// for(x=0; x<width+1; x++)
// t[x]= 128;
More information about the MPlayer-dev-eng
mailing list