I use GIMP in Windows 7 (http://gimp-win.sourceforge.net) and for a long time I do not see the fontconfig default behavior of puting the cache in the %TMP% directory optimal. (not only for GIMP but other apps too) http://www.gimpusers.com/forums/gimp-user/12287-Loading-indexing-fonts-everytime-GIMP-starts.html#msg56823 http://sourceforge.net/tracker/?func=detail&aid=3289135&group_id=66938&atid=516295 The current behaviour comes from this commit I think: http://cgit.freedesktop.org/fontconfig/commit/configure.in?id=8a3dc4880c1182ea446cdbc0885e956c6517cf83 I am not a programmer, but I have found that VLC people already fixed that with a patch: http://git.videolan.org/?p=vlc.git;a=blob;f=extras/contrib/src/Patches/fontconfig.patch;h=79f7355a2f8a869489c1d8d5cbd4deaeb6ae05f7;hb=1330bc95866006707480ec8dfdddb0bd9d44386b SHGetFolderPath: http://msdn.microsoft.com/en-us/library/bb762181%28v=vs.85%29.aspx It would be very welcome if the above patch got merged in fontconfig. Thanks for your time. Marcos
On Sat, 21 Apr 2012, Marcos Felipe Rasia de Mello wrote:> I use GIMP in Windows 7 (http://gimp-win.sourceforge.net) and for a > long time I do not see the fontconfig default behavior of puting the > cache in the %TMP% directory optimal. (not only for GIMP but other > apps too) > http://www.gimpusers.com/forums/gimp-user/12287-Loading-indexing-fonts-everytime-GIMP-starts.html#msg56823 > http://sourceforge.net/tracker/?func=detail&aid=3289135&group_id=66938&atid=516295 > > The current behaviour comes from this commit I think: > http://cgit.freedesktop.org/fontconfig/commit/configure.in?id=8a3dc4880c1182ea446cdbc0885e956c6517cf83 > > I am not a programmer, but I have found that VLC people already fixed > that with a patch: > http://git.videolan.org/?p=vlc.git;a=blob;f=extras/contrib/src/Patches/fontconfig.patch;h=79f7355a2f8a869489c1d8d5cbd4deaeb6ae05f7;hb=1330bc95866006707480ec8dfdddb0bd9d44386b > > SHGetFolderPath: > http://msdn.microsoft.com/en-us/library/bb762181%28v=vs.85%29.aspx > > It would be very welcome if the above patch got merged in fontconfig.I don''t think that it can be merged in its current shape: 1) no need to patch Makefile.in as it is generated by automake 2) Why is the import library not installed ? 3) I didn''t look at the fontconfig code, but in fcinit.c, one must be sure that the windows specific code is correctly guarded. Vincent Torri
Em 21 de abril de 2012 17:01, Vincent Torri <vtorri at univ-evry.fr> escreveu:> > > On Sat, 21 Apr 2012, Marcos Felipe Rasia de Mello wrote: > >> I use GIMP in Windows 7 (http://gimp-win.sourceforge.net) and for a >> long time I do not see the fontconfig default behavior of puting the >> cache in the %TMP% directory optimal. (not only for GIMP but other >> apps too) >> >> http://www.gimpusers.com/forums/gimp-user/12287-Loading-indexing-fonts-everytime-GIMP-starts.html#msg56823 >> >> http://sourceforge.net/tracker/?func=detail&aid=3289135&group_id=66938&atid=516295 >> >> The current behaviour comes from this commit I think: >> >> http://cgit.freedesktop.org/fontconfig/commit/configure.in?id=8a3dc4880c1182ea446cdbc0885e956c6517cf83 >> >> I am not a programmer, but I have found that VLC people already fixed >> that with a patch: >> >> http://git.videolan.org/?p=vlc.git;a=blob;f=extras/contrib/src/Patches/fontconfig.patch;h=79f7355a2f8a869489c1d8d5cbd4deaeb6ae05f7;hb=1330bc95866006707480ec8dfdddb0bd9d44386b >> >> SHGetFolderPath: >> http://msdn.microsoft.com/en-us/library/bb762181%28v=vs.85%29.aspx >> >> It would be very welcome if the above patch got merged in fontconfig. > > > I don''t think that it can be merged in its current shape: > > 1) no need to patch Makefile.in as it is generated by automake > 2) Why is the import library not installed ? > 3) I didn''t look at the fontconfig code, but in fcinit.c, one must be sure > that the windows specific code is correctly guarded.Yes, probably it is specific to VLC. However, the SHGetFolderPath bits in fcinit.c (correctly guarded) can be used. Marcos
Em 21 de abril de 2012 16:03, Marcos Felipe Rasia de Mello <marcosfrm at gmail.com> escreveu: <snip>> > The current behaviour comes from this commit I think: > http://cgit.freedesktop.org/fontconfig/commit/configure.in?id=8a3dc4880c1182ea446cdbc0885e956c6517cf83 ><...> Full commit: http://cgit.freedesktop.org/fontconfig/commit/?id=8a3dc4880c1182ea446cdbc0885e956c6517cf83
Any patches applicable to current git repo are welcome. On Sun, Apr 22, 2012 at 7:04 AM, Marcos Felipe Rasia de Mello <marcosfrm at gmail.com> wrote:> Em 21 de abril de 2012 16:03, Marcos Felipe Rasia de Mello > <marcosfrm at gmail.com> escreveu: > <snip> >> >> The current behaviour comes from this commit I think: >> http://cgit.freedesktop.org/fontconfig/commit/configure.in?id=8a3dc4880c1182ea446cdbc0885e956c6517cf83 >> > <...> > > Full commit: > http://cgit.freedesktop.org/fontconfig/commit/?id=8a3dc4880c1182ea446cdbc0885e956c6517cf83 > _______________________________________________ > Fontconfig mailing list > Fontconfig at lists.freedesktop.org > http://lists.freedesktop.org/mailman/listinfo/fontconfig-- Akira TAGOH
2012/4/22 Akira TAGOH <akira at tagoh.org>> > Any patches applicable to current git repo are welcome. > > On Sun, Apr 22, 2012 at 7:04 AM, Marcos Felipe Rasia de Mello > <marcosfrm at gmail.com> wrote: > > Em 21 de abril de 2012 16:03, Marcos Felipe Rasia de Mello > > <marcosfrm at gmail.com> escreveu: > > <snip> > >> > >> The current behaviour comes from this commit I think: > >> http://cgit.freedesktop.org/fontconfig/commit/configure.in?id=8a3dc4880c1182ea446cdbc0885e956c6517cf83 > >> > > <...> > > > > Full commit: > > http://cgit.freedesktop.org/fontconfig/commit/?id=8a3dc4880c1182ea446cdbc0885e956c6517cf83Maybe this patch is OK? https://www.libreoffice.org/bugzilla/show_bug.cgi?id=27526
2012/4/28 Marcos Felipe Rasia de Mello <marcosfrm at gmail.com>:> 2012/4/22 Akira TAGOH <akira at tagoh.org> >> >> Any patches applicable to current git repo are welcome. >> >> On Sun, Apr 22, 2012 at 7:04 AM, Marcos Felipe Rasia de Mello >> <marcosfrm at gmail.com> wrote: >> > Em 21 de abril de 2012 16:03, Marcos Felipe Rasia de Mello >> > <marcosfrm at gmail.com> escreveu: >> > <snip> >> >> >> >> The current behaviour comes from this commit I think: >> >> http://cgit.freedesktop.org/fontconfig/commit/configure.in?id=8a3dc4880c1182ea446cdbc0885e956c6517cf83 >> >> >> > <...> >> > >> > Full commit: >> > http://cgit.freedesktop.org/fontconfig/commit/?id=8a3dc4880c1182ea446cdbc0885e956c6517cf83 > > Maybe this patch is OK? > https://www.libreoffice.org/bugzilla/show_bug.cgi?id=27526Errrr, sorry for the noise, the patch has been applied! My read skills needs more work I think... Problem solved!