[Fontconfig] icon theme weight query ... (fwd)
Dirk Mueller
dmueller at suse.de
Mon Feb 6 17:22:49 PST 2006
On Monday, 6. February 2006 15:22, Patrick Lam wrote:
> Hopefully Dirk will have a patch soon. It should only need to change
> FcCacheReadString. There's a convenient 'len' parameter to
> FcCacheReadString which would be useful in deciding how much to read, so
> it should be something like this:
>
> read (fd, dest, len);
> // iterate though and replace \\ with \, etc
> lseek (fd, strlen(dest)-len, SEEK_SET);
Yes, except that the de-escaping isn't needed, since we don't escape anyway in
FcCacheWriteString(). See patch below (survived my testing):
-------------- next part --------------
A non-text attachment was scrubbed...
Name: string-read-cleanup.diff
Type: text/x-diff
Size: 1912 bytes
Desc: not available
Url : http://lists.freedesktop.org/archives/fontconfig/attachments/20060207/b565bfcd/string-read-cleanup.bin
More information about the Fontconfig
mailing list