From mboxrd@z Thu Jan 1 00:00:00 1970 Message-ID: <98eba27c67917eb14a8d23b7378b3f0b@plan9.escet.urjc.es> To: 9fans@cse.psu.edu From: Gorka Guardiola Múzquiz Date: Thu, 22 Jul 2004 10:09:25 +0200 MIME-Version: 1.0 Content-Type: text/plain; charset="US-ASCII" Content-Transfer-Encoding: 7bit Subject: [9fans] links bug Topicbox-Message-UUID: c49a8aea-eacd-11e9-9e20-41e7f4b1d025 I have been playing a little bit with links and got it working for us with varfont. The problems seems to be with (old code is commented). /sys/src/cmd/links/dip.c:1960 struct style *g_invert_style(struct style *old) { int length; struct style *st; st = mem_alloc(sizeof(struct style)); st->refcount=1; st->r0=old->r1; st->g0=old->g1; st->b0=old->b1; st->r1=old->r0; st->g1=old->g0; st->b1=old->b0; st->height=old->height; st->flags=old->flags; if (st->flags) { /* We have to get a foreground color for underlining */ st->underline_color=dip_get_color_sRGB( (st->r1<<16)|(st->g1<<8)|(st->b1)); } //length=sizeof(*(st->table))*(n_fonts-1); st->table=NULL; //mem_alloc(length); //mem_cpy(st->table,old->table,length); st->mono_space=old->mono_space; st->mono_height=old->mono_height; return st; } Trying to copy a table of fonts which is not reserved nor used anywhere else as far as I have seen. I put it to NULL and everything seems to work for me. Probably the table field isn't used at all and should disappear, but as I am not really sure... Links with varfont works for us now. G.