[Fontconfig-bugs] [Bug 106618] Relocated caches not quite working
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Wed May 23 07:17:21 UTC 2018
https://bugs.freedesktop.org/show_bug.cgi?id=106618
--- Comment #4 from Akira TAGOH <akira at tagoh.org> ---
This works as long as they use APIs which returns something they need to manage
its lifecycle. FcPatternGet* just returns a reference in FcPattern and the
instance of FcPattern in this case is the original cache data which can't be
usually modified. so:
(In reply to Stephan Bergmann from comment #3)
> Then, I wonder why a new fontconfig API would be needed that apps like
> LibreOffice would need to adapt to. Couldn't
> FcPatternGetString(...,FC_FILE,...) be modified to do any necessary pathname
> mapping when fontconfig is in that special mode?
In that way, FcPatternGetString has to create a copy of string. I don't mind
either but LO has to change the code to free it as needed. also this affects
all of applications. plus, such use case in the code isn't common way. thus new
API sounds better to me to keep compatibility.
--
You are receiving this mail because:
You are on the CC list for the bug.
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <https://lists.freedesktop.org/archives/fontconfig-bugs/attachments/20180523/e0b14dd9/attachment.html>
More information about the Fontconfig-bugs
mailing list