[Fontconfig-bugs] [Bug 101889] Make fontconfig cache relocatable
bugzilla-daemon at freedesktop.org
bugzilla-daemon at freedesktop.org
Sat Sep 16 05:51:09 UTC 2017
https://bugs.freedesktop.org/show_bug.cgi?id=101889
--- Comment #33 from Akira TAGOH <akira at tagoh.org> ---
(In reply to Alexander Larsson from comment #32)
> However, what if you're loading a font from the runtime, which is properly
> in /usr/share/fonts in the sandbox? This will *also* be mapped via the alias
> table.
That shouldn't be a problem as long as they have different uuid and doesn't
have the same filename of a font there. it tries to call stat() to see if it
really exists before looking up the alias table. only things that it might be a
problem is when the runtime has the same-name-but-different-context things
though, in that case we may need to take similar cost to the creating of cache
for checking. as Behdad's patch has been merged into git for speedup of
creating cache, it might simply works without any trick like this, if the
problem is to take too much time for startup.
> Also, why are all the hashes you added using FcStrHashIgnoreCase for the
> filename? You're using regular strcmp later, so its not like the hash lookup
> will be case insensitive anyway.
That is what fontconfig originally has and used for all of string properties.
--
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/20170916/5ad285f1/attachment.html>
More information about the Fontconfig-bugs
mailing list