GNU bug report logs -
#6303
23.2; Win32 Antialiased fonts
Previous Next
Reported by: Damyan Pepper <damyanp <at> gmail.com>
Date: Sat, 29 May 2010 15:57:01 UTC
Severity: normal
Tags: patch
Found in version 23.2
Done: Juanma Barranquero <lekktu <at> gmail.com>
Bug is archived. No further changes may be made.
Full log
Message #26 received at 6303 <at> debbugs.gnu.org (full text, mbox):
On Tue, Jun 29, 2010 at 10:03 AM, Juanma Barranquero <lekktu <at> gmail.com> wrote:
Thanks for having a look at this.
> Also, your contribution is long enought that it would likely require
> for you to sign papers. Have you done so?
I haven't.
> Another thing. This bit:
>
> char *str = SYMBOLP (val) ? SDATA (SYMBOL_NAME (val)) : NULL;
> if (INTEGERP (val)) str = XINT (val) != 0 ? "true" : "false";
> if (str == NULL) str = "true";
>
> would perhaps be clearer as
>
> char *str;
>
> if (INTEGERP (val))
> str = XINT (val) ? "true" : "false";
> else if (SYMBOLP (val))
> str = SDATA (SYMBOL_NAME (val));
> else
> str = "true";
>
> don't you agree?
I do.
I arranged for the code to be very similar to the code in ftfont.c -
it's pretty much a copy with some renamings and a different list of
properties. The idea was that it should be easy to refactor this so
that the two versions share the same code but pass in different arrays
of property names. Unfortunately I don't have access to a machine to
test any changes to ftfont.c on and so wasn't confident to make it
blind and without some guidance from someone more experience with the
code base.
I'm happy to try and do the refactor myself - perhaps moving the
generic version of w32font_filter_properties/ftfont_filter_properties
into font.h/font.c? At that point I'd be happier about doing a pass
through to clear up any logic in there.
This bug report was last modified 14 years and 224 days ago.
Previous Next
GNU bug tracking system
Copyright (C) 1999 Darren O. Benham,
1997,2003 nCipher Corporation Ltd,
1994-97 Ian Jackson.